get_financial_transaction
Referência da tool get_financial_transaction do MCP Server do bitERP (Lançamentos financeiros).
Get Financial Transaction · 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.
Returns one internal financial transaction entry by ID.
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 financial transaction to retrieve |
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) | — |
tenant_id | string (UUID) | — |
account_id | string (UUID) | — |
transfer_id | string (UUID) ou null | — |
source | string | Valores: manual, ofx, integration, migration, transfer. |
fitid | string ou null | — |
trn_type | string | — |
posted_at | string (date-time) | — |
posted_on | string (date) | — |
user_initiated_at | string (date-time) ou null | — |
amount | string | — |
orig_currency_code | string ou null | — |
orig_amount | string ou null | — |
name | string ou null | — |
extd_name | string ou null | — |
memo | string ou null | — |
account_scope_mask | object ou null | — |
account_scope_mask.counterparty | boolean | — |
account_scope_mask.category | boolean | — |
account_scope_mask.balance | boolean | — |
refnum | string ou null | — |
checknum | string ou null | — |
srvrtid | string ou null | — |
correct_fitid | string ou null | — |
correct_action | string ou null | Valores: REPLACE, DELETE. |
is_reconciled | boolean | — |
reconciled_at | string (date-time) ou null | — |
ignored_at | string (date-time) ou null | — |
ignored_by_user_id | string (UUID) ou null | — |
metadata | object | — |
created_by_user_id | string (UUID) ou null | — |
updated_by_user_id | string (UUID) ou null | — |
deleted_by_user_id | string (UUID) ou null | — |
created_at | string (date-time) | — |
updated_at | string (date-time) | — |
deleted_at | string (date-time) 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": "get_financial_transaction",
"arguments": {
"tenant": "minha-empresa",
"id": "<uuid>"
}
}
}
