biterp

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 leituraDestrutivaIdempotenteMundo aberto
SimNãoSimNã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âmetroTipoObrigatórioDescrição
tenantstringSimDefines 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_monthstringNãoFirst month (YYYY-MM), inclusive. Omit for no lower bound.
to_monthstringNãoLast month (YYYY-MM), inclusive. Omit for no upper bound.
financial_category_idstring (UUID)NãoOnly the budgets of this category (UUID from get_financial_categories_tree). Budgets of its ancestors or descendants are not included.
cursorstringNãoCursor for pagination. Use next_cursor from the previous response.
limitintegerNãoMax 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).

CampoTipoDescrição
dataarray de objetos—
data[].idstring (UUID)—
data[].financial_category_idstring (UUID)—
data[].period_monthstring (date)—
data[].amountstring—
data[].due_dayinteger ou null—
data[].notesstring ou null—
data[].created_atstring (date-time)—
data[].updated_atstring (date-time)—
has_next_pageboolean—
has_previous_pageboolean—
next_cursorstring ou null—
previous_cursorstring 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"
        }
    }
}

Nesta página