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 leitura | Destrutiva | Idempotente | Mundo aberto |
|---|---|---|---|
| Sim | Não | Sim | Nã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âmetro | Tipo | Obrigatório | Descrição |
|---|---|---|---|
tenant | string | Sim | Defines 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. |
id | string (UUID) | Sim | The 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).
| Campo | Tipo | Descrição |
|---|---|---|
id | string (UUID) | — |
record_number | integer | — |
supplier_id | string (UUID) | — |
supplier | object ou null | — |
supplier.id | string (UUID) | — |
supplier.legal_name | string | — |
supplier.trade_name | string ou null | — |
financial_category_id | string (UUID) | — |
source_purchase_invoice_id | string (UUID) ou null | — |
origin | string | Valores: manual, overpayment. |
status | string | Valores: open, partial, used, cancelled. |
amount | string | — |
cancelled_amount | string | — |
used_amount | string | — |
balance | string | — |
has_usage | boolean | — |
issue_date | string (date) | — |
description | string ou null | — |
reference_code | string ou null | — |
notes | string ou null | — |
cancelled_at | string (date-time) ou null | — |
cancellation_reason | string ou null | — |
created_at | string (date-time) | — |
updated_at | string (date-time) | — |
offsets | array de objetos | — |
offsets[].id | string (UUID) | — |
offsets[].supplier_debit_note_id | string (UUID) | — |
offsets[].supplier_debit_note_record_number | integer | — |
offsets[].payable_id | string (UUID) | — |
offsets[].payable_record_number | integer | — |
offsets[].amount | string | — |
offsets[].kind | string | Valores: offset, reversal. |
offsets[].offset_date | string (date) | — |
offsets[].reverses_offset_id | string (UUID) ou null | — |
offsets[].reason | string ou null | — |
offsets[].notes | string ou null | — |
offsets[].created_by_user_id | string (UUID) ou null | — |
offsets[].created_at | string (date-time) | — |
offsets[].can_delete | boolean | — |
offsets[].can_reverse | boolean | — |
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>"
}
}
}
