update_customer
Update a customer's name and/or phone number by providing their ID.
Instructions
Update an existing customer's name and/or phone number by their id
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_id": "<customer_id>"
},
"name": "update_customer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Full name of the customer | |
| phone | No | Phone number of the customer | |
| customer_id | Yes | MongoDB ObjectId of the customer |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | MongoDB ObjectId of the customer | |
| isError | No | Indicates if an error occurred | |
| message | No | Confirmation message | |
| customer | No | The found customer | |
| customers | No | List of customers |