List accounts
list_accountsFetch every account in a YNAB plan using its plan ID. Use the result to review account balances and support budgeting, transaction, or reconciliation tasks.
Instructions
Returns every account for a plan. Covers GET /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": "list_accounts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| last_knowledge_of_server | No |