Find an animal by name
find_patientUse this when someone names an animal of their vet clinic, to get its id before booking it or changing its details. Returns up to five animals whose name contains every word given, with id, name and clinic; namesakes are told apart by the last two digits of the owner's phone. Not for browsing animals or reading an animal's history, records or vaccinations.
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_patient"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search | Yes | The patient'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. | |
| clinicId | No | Only patients of this clinic; every clinic of the account when absent |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| patients | Yes | The patients 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 patients match: none are returned; ask the user for more of the name |