add_expense
Log an expense in PKR with just the amount. Add date, merchant, category, note, or tags as needed; category is inferred from past expenses when omitted.
Instructions
Log an expense in PKR. Only amount is required.
date accepts YYYY-MM-DD, 'today', 'yesterday', '-3d', or a day number; it
defaults to today. When category is omitted it is inferred from previous
expenses at the same merchant. The returned record reflects what was actually
saved, including anything inferred.
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": "<amount>"
},
"name": "add_expense"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ||
| note | No | ||
| tags | No | ||
| amount | Yes | ||
| category | No | ||
| merchant | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||