list_category_groups
Qué hace
Sección titulada «Qué hace»List the category groups a category can be created in or moved to.
A group is a heading over categories: it holds no amount of its own, so nothing here says what was budgeted or spent. A group id goes to create_category, or to update_category as category_group_id. For the money in each category use get_category_balances; to classify transactions, suggest_categories. With several plans, pass the plan id from list_plans: ‘last-used’ follows the plan last opened in YNAB. Hidden, deleted and system groups are left out. One YNAB request; changes nothing.
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 group, to pass as category_group_id. |
name |
string | Group name. |
Ejemplo
Sección titulada «Ejemplo»Argumentos:
{ "plan_id": "demo-budget"}Respuesta sobre el presupuesto de demostración:
[ { "id": "grp-bills", "name": "Facturas" }, { "id": "grp-everyday", "name": "Día a día" }, { "id": "grp-fun", "name": "Ocio" }, { "id": "grp-savings-goals", "name": "Metas de ahorro" }]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. 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.» No estamos afiliados, asociados ni conectados oficialmente de ninguna manera con YNAB ni con sus filiales o empresas afiliadas. El sitio web oficial de YNAB se encuentra en https://www.ynab.com. Los nombres YNAB y You Need A Budget, así como los nombres, nombres comerciales, marcas, emblemas e imágenes relacionados, son marcas registradas de YNAB. avenir-mcp se ofrece tal cual, sin garantía, y no es asesoramiento financiero. Aviso legal · Privacidad