find_nearest_psw_for_client
Ranks active PSWs by distance from their home to the client's service address, helping you identify travel-efficient caregiver assignments.
Instructions
Given a client, rank all active PSWs by how close their home is to the client's service address. Useful for finding the most travel-efficient PSW assignment.
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": {
"patient_id": "<patient_id>"
},
"name": "find_nearest_psw_for_client"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of PSWs to return | |
| patient_id | Yes | The client's AlayaCare patient ID | |
| max_distance_km | No | Only return PSWs within this distance in kilometers |