biterp

offset_supplier_debit_note

Referência da tool offset_supplier_debit_note do MCP Server do bitERP (Notas de débito do fornecedor).

Offset Supplier Debit Note · Notas de débito do fornecedor

Somente leituraDestrutivaIdempotenteMundo aberto
NãoSimNãoNã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.

Applies a supplier debit note to a payable of the same supplier. A supplier debit note is a financial amount the supplier owes the tenant. It is not a fiscal purchase invoice (nota fiscal) and it does not move money. A date in a closed month is rejected. Requires permission to update both the debit note and the payable.

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.
idstring (UUID)SimSupplier debit note ID
payable_idstring (UUID)SimPayable of the same supplier
amountdecimal (string ou number)SimAmount to offset as decimal string (numeric(18,6), e.g. "1500.000000"); a JSON number with at most 6 decimals is also accepted, must be > 0 and within both balances
offset_datestring (date)SimSettlement date of the offset (YYYY-MM-DD). Not in a closed month.
notesstringNãoNote about this offset

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
offsetobject—
offset.idstring (UUID)—
offset.supplier_debit_note_idstring (UUID)—
offset.payable_idstring (UUID)—
offset.amountstring—
offset.offset_datestring (date)—
offset.reverses_offset_idstring (UUID) ou null—
offset.reasonstring ou null—
offset.notesstring ou null—
offset.created_atstring (date-time)—
noteobject—
note.idstring (UUID)—
note.statusstringValores: open, partial, used, cancelled.
note.balancestring—
note.cancelled_amountstring—
payableobject—
payable.idstring (UUID)—
payable.statusstringValores: pending, partial, paid, overdue, cancelled.
payable.remaining_amountstring—
payable.paid_atstring (date-time) ou null—
_tenantobject—
_tenant.idstring (UUID)—
_tenant.slugstring—
_tenant.company_namestring—

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": "offset_supplier_debit_note",
        "arguments": {
            "tenant": "minha-empresa",
            "id": "<uuid>",
            "payable_id": "<uuid>",
            "amount": "100.00",
            "offset_date": "2026-01-15"
        }
    }
}

Nesta página