Method CRM MCP by usefulapi

v1.22.1
io.usefulapi/method-crm Checked 2 days ago Published 1 day ago

Query Method CRM customers, leads, activities and invoices; create and update records.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

method_get_account Get API key owner

Who the API key acts as: the Method user behind it (id and name; use the id as an assignee). Also a cheap check that the key works. GET /api/v1/me.

method_list_tables List tables

List every table on this Method account (standard QuickBooks/Xero/Method tables and custom ones) with its source and whether it can be created, updated or deleted. Tables differ per account: call this before querying a table you are unsure of. GET /api/v1/tables.

method_get_table_fields Get table fields

The exact field names of a table with type, whether required, creatable and mutable, and for dropdowns the table they reference. Use it to pick `select` fields and to name fields in create/update calls (names are case-sensitive and wrong ones are silently ignored). GET /api/v1/tables/{table}/fields.

ParameterTypeDescription
table *stringTable name exactly as method_list_tables shows it, e.g. Customer, Contacts, Activity, Invoice, Estimate.

method_query_records Query records

Query any table (Customer, Contacts, Activity, Invoice, Estimate, Item, Users, custom tables ...). Always pass `select`. `filter` uses OData-style syntax: strings in single quotes, dates as '2026-05-26T00:00:00Z' with Z or an offset, operators eq ne lt gt le ge and or not, functions contains(Name,'x') startswith() endswith(); e.g. "BalanceRemaining gt 0 and DueDate lt '2026-10-01T00:00:00Z'". `apply` runs server-side aggregation instead of listing rows, e.g. "aggregate(BalanceRemaining with sum as Outstanding)" or "groupby((Customer), aggregate(Amount with sum as Total))". Default order is Rec…

ParameterTypeDescription
table *stringTable name exactly as method_list_tables shows it, e.g. Customer, Contacts, Activity, Invoice, Estimate.
applystringAggregation, e.g. "aggregate($count as Total)"; ignores paging.
filterstringFilter expression, e.g. "IsLeadStatusOnly eq true and contains(Name,'Smith')".
orderbystringSort, e.g. "RecordID desc" or "TotalBalance desc,RecordID".
selectarrayField names to return (case-sensitive, from method_get_table_fields). Without a select Method returns hundreds of columns per row.
skipintegerRows to skip (default 0). Pass the previous reply's next_skip.
topintegerRows per page, 1-100 (default 25).

method_count_records Count records

How many records a table has, optionally matching a filter (same filter syntax as method_query_records). Cheap: call it before paging through a big table. GET /api/v1/tables/{table}/count.

ParameterTypeDescription
table *stringTable name exactly as method_list_tables shows it, e.g. Customer, Contacts, Activity, Invoice, Estimate.
filterstringFilter expression.

method_get_record Get record

One record by RecordID from any table. Pass `select` to limit the columns; `expand` names a related CHILD table whose rows are embedded (e.g. InvoiceLine on Invoice; at most 50 rows); a parent such as a contact's Entity is not expanded: read it with its own RecordID (Entity_RecordID). GET /api/v1/tables/{table}/{recordId}.

ParameterTypeDescription
record_id *integerThe record's RecordID.
table *stringTable name exactly as method_list_tables shows it, e.g. Customer, Contacts, Activity, Invoice, Estimate.
expandstringA child table to embed (a table with a dropdown field to this one), e.g. InvoiceLine on Invoice. At most 50 child rows.
selectarrayField names to return (case-sensitive, from method_get_table_fields). Without a select Method returns hundreds of columns per row.

method_search_customers Search customers and leads

Find customers and leads (the Customer table: Customers & Leads in Method) by text in the name or email, by lead/customer type, or list them all. Returns RecordID, name, email, phone, lead flag and status; override `select` for other fields (see method_get_table_fields with table Customer). Page with next_skip. GET /api/v1/tables/Customer.

ParameterTypeDescription
active_onlybooleanOnly active records (IsActive true).
kindstringleads = IsLeadStatusOnly true, customers = false (default all).
selectarrayField names to return (case-sensitive, from method_get_table_fields). Without a select Method returns hundreds of columns per row.
skipintegerRows to skip (default 0). Pass the previous reply's next_skip.
textstringMatches records whose Name or Email contains this text (case-insensitive).
topintegerRows per page, 1-100 (default 25).

method_list_contacts List contacts

List contacts (people), optionally those of one customer/lead entity (entity_id = the Customer's RecordID) or matching text in name/email/phone. Returns RecordID, name, email, phone, the entity link and active flag. Use a Contact's RecordID (not the Customer's) when linking activities. GET /api/v1/tables/Contacts.

ParameterTypeDescription
entity_idintegerOnly contacts of this entity (the Customer/Vendor RecordID).
selectarrayField names to return (case-sensitive, from method_get_table_fields). Without a select Method returns hundreds of columns per row.
skipintegerRows to skip (default 0). Pass the previous reply's next_skip.
textstringMatches contacts whose Name, Email or Phone contains this text.
topintegerRows per page, 1-100 (default 25).

method_list_activities List activities

List activities (calls, emails, to-dos, notes), newest first. Filter by the entity they belong to, the assigned user or a due-date window. The note text is in Comments. Override `select` for other fields (method_get_table_fields with table Activity). GET /api/v1/tables/Activity.

ParameterTypeDescription
assigned_to_idintegerOnly activities assigned to this user id (method_get_account or the Users table).
due_afterstringISO 8601 date-time WITH a timezone (Z or +hh:mm), e.g. 2026-10-01T00:00:00Z.
due_beforestringISO 8601 date-time WITH a timezone (Z or +hh:mm), e.g. 2026-10-01T00:00:00Z.
entity_idintegerOnly activities of this entity (Customer RecordID).
selectarrayField names to return (case-sensitive, from method_get_table_fields). Without a select Method returns hundreds of columns per row.
skipintegerRows to skip (default 0). Pass the previous reply's next_skip.
topintegerRows per page, 1-100 (default 25).

method_list_invoices List invoices

List invoices, newest first, optionally only unpaid ones (BalanceRemaining > 0), one customer's (customer_id = Customer RecordID) or created since a time. Returns reference number, customer, dates, amount and balance; override `select` for other fields. For totals use method_query_records with `apply`. GET /api/v1/tables/Invoice.

ParameterTypeDescription
created_sincestringISO 8601 date-time WITH a timezone (Z or +hh:mm), e.g. 2026-10-01T00:00:00Z.
customer_idintegerOnly invoices of this customer (Customer RecordID).
selectarrayField names to return (case-sensitive, from method_get_table_fields). Without a select Method returns hundreds of columns per row.
skipintegerRows to skip (default 0). Pass the previous reply's next_skip.
topintegerRows per page, 1-100 (default 25).
unpaid_onlybooleanOnly invoices with an outstanding balance.

method_list_files List files on a record

List the files attached to a record (name, size, who added it, id). Use the id with method_get_file_url. GET /api/v1/files.

ParameterTypeDescription
record_id *integerThe record's RecordID.
table *stringTable name exactly as method_list_tables shows it, e.g. Customer, Contacts, Activity, Invoice, Estimate.

method_get_file_url Get file download link

A temporary download link (valid 20 minutes) for an attached file, by the file id from method_list_files. The link works without the API key: share it only with someone allowed to see the file. GET /api/v1/files/{id}/url.

ParameterTypeDescription
file_id *stringFile id (a GUID).

method_create_customer Create customer or lead

WRITE: creates a record in Method's Customer table. is_lead true = a Customer Lead (does not sync to the accounting system); is_lead false = a full customer, which Method syncs to QuickBooks/Xero (it appears there too). Method also creates the primary Contact; its RecordID is returned as contact_id when it could be found (use it, not the customer id, to link activities). Name is required (for a person with no company use "First Last"). `extra_fields` sets other fields by their exact names (see method_get_table_fields, table Customer). Not idempotent: calling twice creates two records, so searc…

ParameterTypeDescription
is_lead *booleantrue = lead (not synced to accounting), false = customer (synced to QuickBooks/Xero).
name *stringDisplay name of the customer or lead.
assigned_to_idintegerOwner: a Method user id (method_get_account, or the Users table).
emailstring
extra_fieldsobjectField name -> value, exactly as method_get_table_fields names them (case-sensitive; a misspelled name is silently ignored by Method). For a dropdown/linked field send the integer id in its `_RecordID`…
first_namestring
last_namestring
lead_statusstringAccount-defined lead status, e.g. Open (leads only).
phonestring

method_create_activity Log an activity

WRITE: logs an activity (call, email, to-do, note) on a customer/lead. entity_id is the Customer RecordID; contact_id is the Contact RecordID (not the Customer's; method_list_contacts finds it). The text goes in Comments. Prefer activity_type_id (read it from an existing activity of that type) over the caption activity_type: a caption that matches zero or several options is silently dropped. Method requires an assignee on standard accounts. The reply re-reads the activity so you can check the links were stored (field names are account-specific; method_get_table_fields with table Activity shows…

ParameterTypeDescription
comments *stringThe note body.
entity_id *integerThe Customer (entity) RecordID the activity belongs to, so it shows in its history.
activity_typestringActivity type caption, e.g. Call. Use only if you have no id.
activity_type_idintegerActivityType_RecordID from an existing activity of the wanted type.
assigned_to_idintegerMethod user id of the owner (method_get_account).
contact_idintegerThe Contact RecordID.
duestringDue/start time, YYYY-MM-DDTHH:mm:ss.
status_idintegerActivityStatus_RecordID (account-defined, e.g. Not Started / Completed).

method_create_record Create a record

WRITE: creates a record in any table that allows it (method_list_tables shows canCreate), e.g. Estimate, Invoice, Item, Vendor. For customers/leads and activities use the dedicated tools. Field names are case-sensitive and a wrong one is silently ignored: read them with method_get_table_fields first, and send dropdown links as their `_RecordID` integer. Creating accounting records (Invoice, Estimate, Customer ...) makes Method sync them to QuickBooks/Xero. Child lines (InvoiceLine ...) are not supported here. Not idempotent. Returns the new RecordID. POST /api/v1/tables/{table}.

ParameterTypeDescription
fields *objectField name -> value, exactly as method_get_table_fields names them (case-sensitive; a misspelled name is silently ignored by Method). For a dropdown/linked field send the integer id in its `_RecordID`…
table *stringTable name exactly as method_list_tables shows it, e.g. Customer, Contacts, Activity, Invoice, Estimate.

method_update_record Update a record

WRITE: changes fields on one record (PATCH: only the fields you pass change). Field names are case-sensitive and Method silently ignores wrong or read-only names, so the reply re-reads the record and shows the stored values of the fields you sent: check them. Linked fields are changed through their `_RecordID` integer field. Updating accounting records (Customer, Invoice ...) makes Method sync the change to QuickBooks/Xero; setting IsLeadStatusOnly to false converts a lead into a synced customer. There is no delete tool. PATCH /api/v1/tables/{table}/{recordId}.

ParameterTypeDescription
fields *objectField name -> value, exactly as method_get_table_fields names them (case-sensitive; a misspelled name is silently ignored by Method). For a dropdown/linked field send the integer id in its `_RecordID`…
record_id *integerThe record's RecordID.
table *stringTable name exactly as method_list_tables shows it, e.g. Customer, Contacts, Activity, Invoice, Estimate.