Find a customer by name
find_customerUse this when someone names a customer to update and you need that customer's id. Returns up to five customers whose name contains every word searched, each with its id, business and last edit time; never their contact details, tax id or address. Not for listing every customer.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"search": "<search>"
},
"name": "find_customer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search | Yes | The customer's name as the user gave it, or part of it. Every word must appear in the stored name, in any order, ignoring case and accents. | |
| businessId | No | Only customers of this business; every business of the account when absent |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| customers | Yes | The customers whose name matches, with the ids the other tools take. Contact details, dates of birth, notes and clinical records are never returned. | |
| tooManyMatches | Yes | More than 5 customers match: none are returned; ask the user for more of the name |