Create, update, delete, or import transactions
modify_transactionsCreate, update, delete, or import YNAB transactions in a plan, including bulk edits and pending account imports. Use it to correct or add transaction data and keep budgets accurate.
Instructions
Four actions:
create: creates one or more new transactions. Requires "transactions" (each needs account_id, date, amount).
update: updates transaction(s). For a single transaction via PUT, provide "transaction_id" and "transaction". For bulk update via PATCH, provide "transactions" (each item needs "id" or "import_id" to identify the target, plus the fields to change).
delete: deletes a single transaction. Requires "transaction_id".
import: triggers YNAB to import any pending transactions on linked accounts for this plan. No other fields needed. Amounts are in milliunits: 1000 = one unit of currency (e.g. $1.00 is 1000, -$12.34 is -12340).
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": {
"plan_id": "<plan_id>",
"action": "<action>"
},
"name": "modify_transactions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| plan_id | Yes | The id of the plan (formerly "budget"). Use "last-used" for the most recently used plan, or "default" if default plan selection is enabled for this token. | |
| transaction | No | For single "update", used together with "transaction_id". | |
| transactions | No | For "create", or bulk "update". | |
| transaction_id | No | For single "update" (with "transaction") or "delete". |