list_financial_budgets
Referência da tool list_financial_budgets do MCP Server do bitERP (Planejamento orçamentário).
List Financial Budgets · Planejamento orçamentário
| Somente leitura | Destrutiva | Idempotente | Mundo aberto |
|---|---|---|---|
| Sim | Não | Sim | Não |
Descrição
A descrição abaixo é a que o servidor publica, em inglês, e é o texto que o agente lê para decidir quando usar a tool.
Lists the monthly budgets per financial category (budget planning), one row per category and month, with cursor pagination. period_month is the first day of the month; amount is the planned value in the tenant currency; due_day is the expected payment day (null = month end). A budget may sit on any level of the category tree, at most one per root-to-leaf path in a month. Resolve category names with get_financial_categories_tree. For planned vs actual use get_budget_variance.
Parâmetros
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|---|---|---|
tenant | string | Sim | Defines which tenant will have data read or changed. Use list_tenants first and prefer the returned tenant slug. Writes are permanent, so when the user has more than one tenant you must confirm the tenant before any write and never assume or reuse a previous choice without confirmation. UUID is accepted only when already known safely. |
from_month | string | Não | First month (YYYY-MM), inclusive. Omit for no lower bound. |
to_month | string | Não | Last month (YYYY-MM), inclusive. Omit for no upper bound. |
financial_category_id | string (UUID) | Não | Only the budgets of this category (UUID from get_financial_categories_tree). Budgets of its ancestors or descendants are not included. |
cursor | string | Não | Cursor for pagination. Use next_cursor from the previous response. |
limit | integer | Não | Max results per page (default 50, max 100) |
Resposta
O structuredContent da resposta traz os campos abaixo (até dois níveis; o schema completo está no outputSchema publicado no tools/list).
| Campo | Tipo | Descrição |
|---|---|---|
data | array de objetos | — |
data[].id | string (UUID) | — |
data[].financial_category_id | string (UUID) | — |
data[].period_month | string (date) | — |
data[].amount | string | — |
data[].due_day | integer ou null | — |
data[].notes | string ou null | — |
data[].created_at | string (date-time) | — |
data[].updated_at | string (date-time) | — |
has_next_page | boolean | — |
has_previous_page | boolean | — |
next_cursor | string ou null | — |
previous_cursor | string ou null | — |
Exemplo de chamada
Requisição tools/call com os parâmetros obrigatórios. Os valores são ilustrativos: troque minha-empresa pelo tenant devolvido por list_tenants e cada <...> por um valor real.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "list_financial_budgets",
"arguments": {
"tenant": "minha-empresa"
}
}
}
