list_receivables
Referência da tool list_receivables do MCP Server do bitERP (Contas a receber).
List Receivables · Contas a receber
| 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.
Lists internal accounts receivable records for one organization with optional filters and cursor-based pagination. A charge title (interest, fine generated during reconciliation) whose origin receivable is also in the slice is represented by that origin instead of being listed; one whose origin the filters exclude is listed as a row. Set flatten_children to list every charge title.
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. |
search | string | Não | Optional search term to filter by reference code, customer name, description, notes, or the record code (CRC-1042 for Brazilian companies; prefix depends on the tenant country; older RECV-1042 still matches, or just 1042) |
status | string | Não | Filter by status Valores: pending, partial, paid, overdue, cancelled. |
customer_id | string (UUID) | Não | Filter by customer ID |
financial_account_id | string (UUID) | Não | Filter by financial account ID |
due_date_from | string | Não | Filter receivables with due date >= this value (ISO 8601) |
due_date_to | string | Não | Filter receivables with due date <= this value (ISO 8601) |
cursor | string | Não | Cursor for pagination. Use next_cursor/previous_cursor from previous response. |
limit | integer | Não | Max results per page (default 10, max 100) |
flatten_children | boolean | Não | When true, every receivable in the slice is returned as a row, charge titles (interest and fine charged to the customer during bank reconciliation) included. By default a charge title whose origin receivable is also in the slice is represented by that origin (get_receivable returns it in charge_titles); a charge title whose origin the filters exclude is returned as a row. |
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 |
|---|---|---|
data | array de objetos | — |
data[].id | string (UUID) | — |
data[].tenant_id | string (UUID) | — |
data[].record_number | integer | — |
data[].customer_id | string (UUID) ou null | — |
data[].customer | object ou null | — |
data[].financial_account_id | string (UUID) | — |
data[].financial_account | object ou null | — |
data[].payment_method_id | string (UUID) ou null | — |
data[].payment_method | object ou null | — |
data[].financial_category_id | string (UUID) ou null | — |
data[].financial_category | object ou null | — |
data[].account_scope_mask | object | — |
data[].reference_code | string ou null | — |
data[].status | string | Valores: pending, partial, paid, overdue, cancelled. |
data[].amount | string | — |
data[].discount_amount | string | — |
data[].surcharge_amount | string | — |
data[].issue_date | string (date) | — |
data[].due_date | string (date) | — |
data[].paid_at | string (date-time) ou null | — |
data[].installment_group_id | string (UUID) ou null | — |
data[].installment_number | integer ou null | — |
data[].installment_count | integer ou null | — |
data[].description | string ou null | — |
data[].notes | string ou null | — |
data[].metadata | object | — |
data[].created_by_user_id | string (UUID) ou null | — |
data[].updated_by_user_id | string (UUID) ou null | — |
data[].deleted_by_user_id | string (UUID) ou null | — |
data[].created_at | string (date-time) | — |
data[].updated_at | string (date-time) | — |
data[].deleted_at | string (date-time) ou null | — |
data[].sales_order_id | string (UUID) ou null | — |
data[].sales_order | object ou null | — |
data[].invoice_id | string (UUID) ou null | — |
data[].invoice | object ou null | — |
data[].parent_receivable_id | string (UUID) ou null | — |
data[].parent | any ou null | — |
data[].type | string | Valores: standard, interest, fine. |
has_next_page | boolean | — |
has_previous_page | boolean | — |
next_cursor | string ou null | — |
previous_cursor | string 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_receivables",
"arguments": {
"tenant": "minha-empresa"
}
}
}
