get_total_spent_by_customer
Compute total spending for a specified customer by name. Returns the aggregate amount spent, helping assess customer value and purchase history.
Instructions
Get the total amount spent by a customer.
Args:
customer_name: The customer name to calculate total spending for
Returns:
Dict containing the total spent or error information
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_name": "<customer_name>"
},
"name": "get_total_spent_by_customer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customer_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |