list_accounts
Qué hace
Sección titulada «Qué hace»List the plan’s accounts with their current balances (in currency units).
Use it to reconcile YNAB with the bank.
Comportamiento
Sección titulada «Comportamiento»| Tipo | solo lectura |
| Confirmación | no |
| Deshacer | no |
| Idempotente | sí |
| Peticiones a YNAB | 1 para el ejemplo de abajo, con la caché vacía |
Parámetros
Sección titulada «Parámetros»| Nombre | Tipo | Obligatorio | Por defecto | Descripción |
|---|---|---|---|---|
plan_id |
string | sí | — | YNAB plan id or ‘last-used’. |
Devuelve
Sección titulada «Devuelve»array of object
| Campo | Tipo | Descripción |
|---|---|---|
id |
string | YNAB id of the account. |
name |
string | Account name. |
type |
string | YNAB account type, e.g. checking, savings, creditCard, otherAsset. |
on_budget |
boolean | False for a tracking account, whose transactions take no category. |
closed |
boolean | True when the account is closed in YNAB. |
balance |
number | Balance of all transactions. |
cleared_balance |
number | Balance of the transactions the bank has shown. |
uncleared_balance |
number | Balance of the transactions the bank has not shown yet. |
Ejemplo
Sección titulada «Ejemplo»Argumentos:
{ "plan_id": "demo-budget"}Respuesta sobre el presupuesto de demostración:
[ { "id": "acc-checking", "name": "Checking", "type": "checking", "on_budget": true, "closed": false, "balance": 3512.66, "cleared_balance": 3512.66, "uncleared_balance": 0.0 }, { "id": "acc-savings", "name": "Savings", "type": "savings", "on_budget": true, "closed": false, "balance": 600.0, "cleared_balance": 600.0, "uncleared_balance": 0.0 }]Errores
Sección titulada «Errores»Esta herramienta no lanza errores propios; los errores de YNAB llegan como Error calling tool '<tool>': YNAB <status>: <detail>.
Proyecto no oficial. «We are not affiliated, associated, or in any way officially connected with YNAB or any of its subsidiaries or affiliates.» No estamos afiliados, asociados ni conectados oficialmente con YNAB. YNAB y You Need A Budget son marcas registradas de YNAB. avenir-mcp se ofrece tal cual, sin garantía, y no es asesoramiento financiero. Aviso legal