Create an account
create_accountCreates a new account in a YNAB plan by specifying its name, type, and starting balance in milliunits; use it to add accounts through the API.
Instructions
Creates a new account in a plan. There is no update/delete endpoint for accounts in the YNAB API -- once created, an account's name/type/balance can only be changed from the YNAB app itself. Amounts are in milliunits: 1000 = one unit of currency (e.g. $1.00 is 1000, -$12.34 is -12340). Covers POST /plans/{plan_id}/accounts.
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>",
"name": "<name>",
"type": "<type>",
"balance": "<balance>"
},
"name": "create_account"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the account. | |
| type | Yes | ||
| balance | Yes | The current balance of the account, in milliunits. Amounts are in milliunits: 1000 = one unit of currency (e.g. $1.00 is 1000, -$12.34 is -12340). | |
| 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. |