Get expenses total
crunch_get_expenses_totalTotal expenses matching status, date range, supplier, type, payment method, or receipt filters, including gross, underpaid, and overpaid amounts, without listing them.
Instructions
Total the expenses matching the filters (gross amount, plus under- and over-paid amounts) without listing them. Handy for "how much did I spend on travel this year?".
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": {
"status": "<status>"
},
"name": "crunch_get_expenses_total"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | Expense status to total, as Crunch names it in the status field of expenses (see crunch_list_expenses) | |
| end_date | No | Expenses dated on or before (YYYY-MM-DD) | |
| start_date | No | Expenses dated on or after (YYYY-MM-DD) | |
| supplier_id | No | Only this supplier's expenses | |
| expense_type | No | Only this expense type, for example TRAVEL_AND_SUBSISTENCE | |
| has_attachment | No | Only expenses with (true) or without (false) a receipt attached | |
| payment_method | No | Only expenses paid this way, for example EFT | |
| payment_end_date | No | Paid on or before (YYYY-MM-DD) | |
| payment_start_date | No | Paid on or after (YYYY-MM-DD) |