Create expense
create_expenseLog an expense for the business. Optionally link it to an activity, booking, or guide, and attach a receipt image.
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": {
"amount_cents": "<amount_cents>",
"spent_on": "<spent_on>"
},
"name": "create_expense"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Alias for image_base64. | |
| vendor | No | ||
| category | No | A short category, such as food, equipment, transport, lodging, permits, or other. | |
| currency | No | A three-letter currency code. Defaults to the business currency. | |
| filename | No | The receipt file name. Used to infer content_type when it is omitted. | |
| guide_id | No | ||
| spent_on | Yes | The date the money was spent, as YYYY-MM-DD. | |
| booking_id | No | ||
| activity_id | No | ||
| business_id | No | The id of the business to act on, from list_businesses. Optional when this connection covers a single business. | |
| description | No | ||
| amount_cents | Yes | The amount in cents. | |
| content_type | No | The receipt image MIME type, such as image/jpeg. Required with image_base64 unless filename is set. | |
| image_base64 | No | Base64-encoded receipt image (PNG, JPEG, WebP, GIF, or HEIC). | |
| receipt_data_url | No | A data URL for the receipt image, if the image is not sent as base64. |