biterp

get_payables_summary

Referência da tool get_payables_summary do MCP Server do bitERP (Contas a pagar).

Get Payables Summary · Contas a pagar

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.

Returns aggregated totals for internal accounts payable records grouped by status. Credit card purchases whose statement is still open, and the open statement itself, are not listed nor totaled: they are not payable one by one until the statement closes. suppressed_open_card_cycle reports the count and net amount; see them with get_credit_card_open_statement and list_credit_card_statement_purchases. Never conclude there are no payables while that count is above zero. Totals count a closed statement instead of its purchases.

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.

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[].statusstring—
data[].total_countinteger—
data[].total_amountstring—
suppressed_open_card_cycleobjectCredit card purchases whose statement is still open, and the open statement itself, are not listed nor totaled; see them with get_credit_card_open_statement. Never conclude there are no payables while purchases is above zero.
suppressed_open_card_cycle.statementsintegerOpen credit card statements left out (an open statement is worth 0 until it closes)
suppressed_open_card_cycle.purchasesintegerCredit card purchases left out because their statement is still open
suppressed_open_card_cycle.amountstringFace value of those purchases. NOT the statement total, which also nets credits and the previous balance

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": "get_payables_summary",
        "arguments": {
            "tenant": "minha-empresa"
        }
    }
}

Nesta página