import_transactions
What it does
Section titled “What it does”Import the latest transactions from the plan’s linked bank accounts into YNAB.
The same as pressing Import in YNAB: nothing is deleted or changed, and YNAB never imports a transaction twice, so it is applied at once, without a preview. Use it before classifying or reconciling, so that the list is complete. Accounts without a bank connection are left as they are. Imported transactions stay unapproved for the user to review; to take one back, delete it in YNAB.
Behaviour
Section titled “Behaviour”| Kind | write — hidden unless AVENIR_MCP_WRITE=1 |
| Confirmation | no |
| Undo | no |
| Destructive | no |
| Idempotent | yes |
| YNAB requests | 1 for the example below, on a cold cache |
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
plan_id |
string | yes | — | YNAB plan id or ‘last-used’. |
Returns
Section titled “Returns”| Field | Type | Description |
|---|---|---|
imported |
integer | Number of transactions YNAB imported from the linked accounts. |
transaction_ids |
array of string | Their ids, e.g. for find_transactions or approve_transactions. |
message |
string | What happened and what to do next, for the agent to relay. |
Example
Section titled “Example”Arguments:
{ "plan_id": "demo-budget"}Answer on the demo budget:
{ "imported": 0, "transaction_ids": [], "message": "No new transaction to import."}Errors
Section titled “Errors”This tool raises no error of its own; YNAB’s errors come back as Error calling tool '<tool>': YNAB <status>: <detail>.
See also
Section titled “See also”Unofficial project. We are not affiliated, associated, or in any way officially connected with YNAB or any of its subsidiaries or affiliates. The official YNAB website can be found at https://www.ynab.com. The names YNAB and You Need A Budget, as well as related names, tradenames, marks, trademarks, emblems, and images are registered trademarks of YNAB. avenir-mcp is provided as is, without warranty, and is not financial advice. Legal notice · Privacy