Add, change, remove (retire) or restore one pharmacy in the directory with the expected version
summer_pharmacy_calls_directory_updateAdd, change, remove (retire) or restore one pharmacy in the directory with the expected version. Save sends every field; empty fields are cleared. Calls stay off until call_allowed is true, and need a phone number. Retire turns calls off and keeps the record and its history. Starts no call.
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": {
"company": "<company>",
"environment": "<environment>",
"operation": "<operation>",
"version": "<version>"
},
"name": "summer_pharmacy_calls_directory_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The pharmacy to change. Leave out to add a new pharmacy. | |
| entry | No | Every field of the pharmacy, for save. Fields you leave empty are cleared. | |
| company | Yes | ||
| version | Yes | The version you read, or 0 for a new pharmacy. A newer saved version refuses the change. | |
| operation | Yes | save adds a pharmacy (no id, version 0) or replaces all fields of one; retire removes it from use and turns calls off; restore brings a removed one back with calls off. | |
| environment | Yes | ||
| idempotency_key | No | Reuse the same key when retrying the same change |