update_financial_account
Referência da tool update_financial_account do MCP Server do bitERP (Contas financeiras).
Update Financial Account · Contas financeiras
| Somente leitura | Destrutiva | Idempotente | Mundo aberto |
|---|---|---|---|
| Não | Sim | 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.
Updates one internal financial account record. Only the provided fields are changed.
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 account to update |
name | string | Não | New account name (must be unique per tenant) |
type | string | Não | New account type Valores: checking, savings, cash, digital_wallet, gateway, credit_card. |
bank_id | string (UUID) ou null | Não | New bank ID (null to remove association) |
bank_supplier_id | string (UUID) ou null | Não | Supplier representing the card issuer (required when type is credit_card) |
initial_balance | decimal (string ou number) | Não | New initial balance as decimal string (numeric(18,6), may be negative, e.g. "-1500.000000"); a JSON number with at most 6 decimals is also accepted |
description | string ou null | Não | New description (null to clear) |
is_blocked | boolean | Não | Whether the account is blocked |
display_order | integer | Não | New display order |
credit_card_data | object | Não | Credit card extension data (when type is or becomes credit_card) |
credit_card_data.credit_limit | decimal (string ou number) ou null | Não | Credit limit as decimal string (numeric(18,6), e.g. "1500.000000"); a JSON number with at most 6 decimals is also accepted |
credit_card_data.closing_day | integer | Não | Statement closing day (1-31) |
credit_card_data.due_day | integer | Não | Statement due day (1-31) |
credit_card_data.brand | string ou null | Não | Card brand |
credit_card_data.last_four_digits | string ou null | Não | Last four digits of the card |
credit_card_data.default_debit_account_id | string (UUID) | Não | UUID of an existing asset financial account that pays the card statements. Can be replaced, never cleared |
br_data | object | Não | Brazil-specific bank data. Only accepted when the organization is in Brazil. Only the given fields change; an omitted field keeps its stored value. |
br_data.branch_number | string ou null | Não | Bank branch number (agencia). null clears it |
br_data.branch_digit | string ou null | Não | Branch check digit. null clears it |
br_data.account_number | string ou null | Não | Bank account number (conta). null clears it |
br_data.account_digit | string ou null | Não | Account check digit. null clears it |
br_data.pix_key | string ou null | Não | PIX key of the account. null clears it |
br_data.pix_key_type | string ou null | Não | Type of the PIX key. null clears it Valores: cpf, cnpj, email, phone, random. |
us_data | object | Não | United States-specific bank data. Only accepted when the organization is in the United States. Only the given fields change; an omitted field keeps its stored value. |
us_data.routing_number | string ou null | Não | ABA routing number (9 digits). null clears it |
us_data.account_number | string ou null | Não | Bank account number. null clears it |
us_data.wire_routing_number | string ou null | Não | Wire transfer routing number (9 digits). null clears it |
us_data.ach_authorized | boolean ou null | Não | Whether ACH is authorized. null resets it to false |
us_data.ach_authorization_date | string (date) ou null | Não | Date the ACH authorization was given (YYYY-MM-DD). null clears it |
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) | — |
bank_id | string (UUID) ou null | — |
bank_supplier_id | string (UUID) ou null | — |
bank_customer_id | string (UUID) ou null | — |
bank | object ou null | — |
bank.id | string (UUID) | — |
bank.name | string ou null | — |
bank.official_name | string ou null | — |
bank.code | string ou null | — |
name | string | — |
reference_code | string ou null | — |
type | string | Valores: checking, savings, cash, digital_wallet, gateway, credit_card. |
initial_balance | string ou null | — |
description | string ou null | — |
is_blocked | boolean | — |
display_order | integer | — |
account_scope_mask | object ou null | — |
account_scope_mask.counterparty | boolean | — |
account_scope_mask.category | boolean | — |
account_scope_mask.balance | boolean | — |
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 | — |
br_data | object ou null | — |
br_data.id | string (UUID) | — |
br_data.financial_account_id | string (UUID) | — |
br_data.tenant_id | string (UUID) | — |
br_data.branch_number | string ou null | — |
br_data.branch_digit | string ou null | — |
br_data.account_number | string ou null | — |
br_data.account_digit | string ou null | — |
br_data.pix_key | string ou null | — |
br_data.pix_key_type | string ou null | Valores: cpf, cnpj, email, phone, random. |
br_data.created_by_user_id | string (UUID) ou null | — |
br_data.updated_by_user_id | string (UUID) ou null | — |
br_data.created_at | string (date-time) | — |
br_data.updated_at | string (date-time) | — |
us_data | object ou null | — |
us_data.id | string (UUID) | — |
us_data.financial_account_id | string (UUID) | — |
us_data.tenant_id | string (UUID) | — |
us_data.routing_number | string ou null | — |
us_data.account_number | string ou null | — |
us_data.wire_routing_number | string ou null | — |
us_data.ach_authorized | boolean | — |
us_data.ach_authorization_date | string (date) ou null | — |
us_data.created_by_user_id | string (UUID) ou null | — |
us_data.updated_by_user_id | string (UUID) ou null | — |
us_data.created_at | string (date-time) | — |
us_data.updated_at | string (date-time) | — |
credit_card_data | object ou null | — |
credit_card_data.id | string (UUID) | — |
credit_card_data.financial_account_id | string (UUID) | — |
credit_card_data.tenant_id | string (UUID) | — |
credit_card_data.credit_limit | string ou null | — |
credit_card_data.closing_day | integer | — |
credit_card_data.due_day | integer | — |
credit_card_data.brand | string ou null | — |
credit_card_data.last_four_digits | string ou null | — |
credit_card_data.default_debit_account_id | string (UUID) ou null | — |
credit_card_data.created_by_user_id | string (UUID) ou null | — |
credit_card_data.updated_by_user_id | string (UUID) ou null | — |
credit_card_data.created_at | string (date-time) | — |
credit_card_data.updated_at | string (date-time) | — |
_tenant | object | — |
_tenant.id | string (UUID) | — |
_tenant.slug | string | — |
_tenant.company_name | string | — |
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": "update_financial_account",
"arguments": {
"tenant": "minha-empresa",
"id": "<uuid>"
}
}
}
