List accounts
list_accountsRetrieve a plan's accounts with balances, bank link status, and last reconciliation date to spot broken bank links or accounts overdue for reconciliation.
Instructions
List the plan's accounts with their balances, bank link and last reconciliation.
Use it to tell the user when a bank link is broken (no transaction comes in until they fix it in YNAB) or when an account has not been reconciled for months. Its ids are the account_ids other tools take. Balances are in currency units, today's: cleared_balance is the part the bank has shown. Comparing an account with the bank is done in YNAB itself. For the balances of the months before use get_net_worth_trend; for the months ahead, forecast_balance. With several plans, pass the plan id from list_plans: 'last-used' follows the plan last opened in YNAB. Every account comes in one response, closed ones included, in one YNAB request; changes nothing.
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 | YNAB plan id or 'last-used'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |