Save a customer's details
save_customerFor shop owners: change a customer's name, email or phone, or the seller's private note about them. Only what is sent changes. It never merges or deletes customers: an email or phone another customer has is refused. It saves at once and tells the customer nothing.
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": {
"customer": "<customer>",
"request_id": "<request_id>"
},
"name": "save_customer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Their name, replacing the one on file. | |
| note | No | The seller's private note about them, replacing the last one. An empty string clears it. Customers never see it. | |
| No | Their email, replacing the one on file. | ||
| phone | No | Their phone, replacing the one on file. | |
| customer | Yes | The customer: their id (cus_...) or name. | |
| request_id | Yes | Unique per call; the same id again returns the first result. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | No | ||
| error | No | ||
| choices | No | ||
| outcome | No | ||
| customer | No | ||
| timezone | No | ||
| confirmation | No | ||
| orders_reached | No |