biterp

list_supplier_debit_notes

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

List Supplier Debit Notes · 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.

Lists supplier debit notes of one organization. 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. The list includes balance and status and omits the offset history.

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.
searchstringNãoOptional search by supplier name, description, notes, reference code or the record number
statusstringNãoFilter by status Valores: open, partial, used, cancelled.
supplier_idstring (UUID)NãoFilter by supplier ID
issue_date_fromstring (date)NãoNotes issued on or after this date (YYYY-MM-DD)
issue_date_tostring (date)NãoNotes issued on or before this date (YYYY-MM-DD)
cursorstringNãoCursor for pagination. Use next_cursor from the previous response.
limitintegerNãoMax results per page (default 10, 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[].record_numberinteger—
data[].supplier_idstring (UUID)—
data[].supplierobject ou null—
data[].financial_category_idstring (UUID)—
data[].source_purchase_invoice_idstring (UUID) ou null—
data[].originstringValores: manual, overpayment.
data[].statusstringValores: open, partial, used, cancelled.
data[].amountstring—
data[].cancelled_amountstring—
data[].used_amountstring—
data[].balancestring—
data[].has_usageboolean—
data[].issue_datestring (date)—
data[].descriptionstring ou null—
data[].reference_codestring ou null—
data[].notesstring ou null—
data[].cancelled_atstring (date-time) ou null—
data[].cancellation_reasonstring 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_supplier_debit_notes",
        "arguments": {
            "tenant": "minha-empresa"
        }
    }
}

Nesta página