find_nearest_clients
Given a PSW employee ID, rank active clients by distance from the PSW's home to identify the closest clients and reduce travel time.
Instructions
Given a PSW, rank all active clients by distance from the PSW's home address. Useful for identifying which clients are geographically closest and reducing travel time.
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": {
"employee_id": "<employee_id>"
},
"name": "find_nearest_clients"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of clients to return | |
| employee_id | Yes | The PSW's AlayaCare employee ID | |
| max_distance_km | No | Only return clients within this distance in kilometers |