Find a patient by name
find_patientUse this when someone names a patient to book, move, cancel or update, and the patient's id is needed. Returns up to 5 patients whose name holds every word given, with id, name, practice and edit time, plus the last two phone digits when two share a name. Not for listing, browsing or counting patients.
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 practice; every practice 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 |