search_contacts
Find contact IDs by searching names, emails, customer or vendor numbers, and roles so you can use the correct ID in follow-up contact and accounting operations.
Instructions
Find contacts by name, email address, number or role.
One API call per page. This is how a name becomes an id: every tool
taking a contact_id expects one from here, never a guessed value.
Use get_contact afterwards for the full record with its addresses.
Rows carry the id, name, customer and vendor numbers and one way to
get in touch. A row marked archived is no longer in active use.
Filters combine with AND. Giving none lists the account in name order.
Read page before asking for another one.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search_contacts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Part of the contact's name, matched case-insensitively against company names and person names. At least 3 characters, the API rejects anything shorter. | |
| page | No | Zero-based page number. Read the `page` block of the previous result before asking for another one, rather than paging blindly. | |
| role | No | Restrict to contacts that are customers, or that are vendors. 'any' does not restrict. | any |
| size | No | Rows per page. A larger page costs the same single API call but more of the answer's token budget, so raise it only when the whole list is genuinely needed. | |
| No | Part of any email address on the contact, matched case-insensitively. At least 3 characters. | ||
| number | No | The customer or vendor number a human uses for this contact, for example 10001. This is not the contact id. |