create_transaction
Create expense or income transactions in Spendee. Preview to check conversion rates, then confirm with a unique request ID.
Instructions
Preview or create a transaction.
Amount must always be positive. transaction_type controls whether Spendee receives a negative expense or positive income. currency defaults to the selected wallet's currency. For a different currency, preview without an exchange_rate first, then confirm with the returned foreign_rate as exchange_rate. First call with confirm=false; create only after checking the preview, then pass confirm=true and a unique request_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": {
"wallet_id": "<wallet_id>",
"category_id": "<category_id>",
"amount": "<amount>",
"transaction_type": "<transaction_type>"
},
"name": "create_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| amount | Yes | ||
| labels | No | ||
| confirm | No | ||
| currency | No | ||
| wallet_id | Yes | ||
| request_id | No | ||
| category_id | Yes | ||
| occurred_at | No | ||
| exchange_rate | No | ||
| transaction_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||