biterp

get_supplier_debit_note

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

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

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 one supplier debit note by ID, with balance, status and offsets. 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. Bank funding and refunds are not included.

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)SimThe UUID of the supplier debit note

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
idstring (UUID)—
record_numberinteger—
supplier_idstring (UUID)—
supplierobject ou null—
supplier.idstring (UUID)—
supplier.legal_namestring—
supplier.trade_namestring ou null—
financial_category_idstring (UUID)—
source_purchase_invoice_idstring (UUID) ou null—
originstringValores: manual, overpayment.
statusstringValores: open, partial, used, cancelled.
amountstring—
cancelled_amountstring—
used_amountstring—
balancestring—
has_usageboolean—
issue_datestring (date)—
descriptionstring ou null—
reference_codestring ou null—
notesstring ou null—
cancelled_atstring (date-time) ou null—
cancellation_reasonstring ou null—
created_atstring (date-time)—
updated_atstring (date-time)—
offsetsarray de objetos—
offsets[].idstring (UUID)—
offsets[].supplier_debit_note_idstring (UUID)—
offsets[].supplier_debit_note_record_numberinteger—
offsets[].payable_idstring (UUID)—
offsets[].payable_record_numberinteger—
offsets[].amountstring—
offsets[].kindstringValores: offset, reversal.
offsets[].offset_datestring (date)—
offsets[].reverses_offset_idstring (UUID) ou null—
offsets[].reasonstring ou null—
offsets[].notesstring ou null—
offsets[].created_by_user_idstring (UUID) ou null—
offsets[].created_atstring (date-time)—
offsets[].can_deleteboolean—
offsets[].can_reverseboolean—

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

Nesta página