delete_customer
Delete a customer by providing their MongoDB ObjectId to remove the record from the legacy CRUD API.
Instructions
Delete a customer 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": "delete_customer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customer_id | Yes | MongoDB ObjectId of the customer to delete |
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 |