list_financial_transactions
Referência da tool list_financial_transactions do MCP Server do bitERP (Lançamentos financeiros).
List Financial Transactions · Lançamentos financeiros
| 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 financial transaction entries for one organization with optional filters, sorting, and cursor-based pagination.
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 name, extended name, memo, or reference number |
account_id | string (UUID) | Não | Filter by financial account ID |
trn_type | string | Não | Filter by transaction type (e.g., CREDIT, DEBIT) |
source | string | Não | Filter by transaction source Valores: manual, ofx, integration, migration. |
is_reconciled | boolean | Não | Filter by reconciliation status (true = reconciled, false = not reconciled) |
posted_at_from | string | Não | Filter transactions posted on or after this date (ISO 8601) |
posted_at_to | string | Não | Filter transactions posted on or before this date (ISO 8601) |
sort_by | string | Não | Sort field (default: posted_at) Valores: posted_at, amount, created_at. |
sort_order | string | Não | Sort direction (default: desc) Valores: asc, desc. |
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) |
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[].account_id | string (UUID) | — |
data[].transfer_id | string (UUID) ou null | — |
data[].source | string | Valores: manual, ofx, integration, migration, transfer. |
data[].fitid | string ou null | — |
data[].trn_type | string | — |
data[].posted_at | string (date-time) | — |
data[].posted_on | string (date) | — |
data[].user_initiated_at | string (date-time) ou null | — |
data[].amount | string | — |
data[].orig_currency_code | string ou null | — |
data[].orig_amount | string ou null | — |
data[].name | string ou null | — |
data[].extd_name | string ou null | — |
data[].memo | string ou null | — |
data[].account_scope_mask | object ou null | — |
data[].refnum | string ou null | — |
data[].checknum | string ou null | — |
data[].srvrtid | string ou null | — |
data[].correct_fitid | string ou null | — |
data[].correct_action | string ou null | Valores: REPLACE, DELETE. |
data[].is_reconciled | boolean | — |
data[].reconciled_at | string (date-time) ou null | — |
data[].ignored_at | string (date-time) ou null | — |
data[].ignored_by_user_id | string (UUID) 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 | — |
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_financial_transactions",
"arguments": {
"tenant": "minha-empresa"
}
}
}
