create_financial_account
Referência da tool create_financial_account do MCP Server do bitERP (Contas financeiras).
Create Financial Account · Contas financeiras
| Somente leitura | Destrutiva | Idempotente | Mundo aberto |
|---|---|---|---|
| Não | Não | Não | 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.
Creates one internal financial account record in the ERP ledger.
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. |
name | string | Sim | Account name (must be unique per tenant) |
type | string | Sim | Account type Valores: checking, savings, cash, digital_wallet, gateway, credit_card. |
bank_id | string (UUID) | Não | Bank ID to associate with this account |
bank_supplier_id | string (UUID) | Não | Supplier representing the card issuer (required when type is credit_card) |
initial_balance | decimal (string ou number) | Não | 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. Defaults to "0". |
description | string | Não | Account description |
is_blocked | boolean | Não | Whether the account is blocked. Defaults to false. |
display_order | integer | Não | Display order for UI sorting (default: 0) |
credit_card_data | object | Não | Required when type is credit_card: closing/due days and optional card metadata |
credit_card_data.credit_limit | decimal (string ou number) | 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 | Sim | Statement closing day (1-31) |
credit_card_data.due_day | integer | Sim | Statement due day (1-31) |
credit_card_data.brand | string | Não | Card brand (e.g. Visa) |
credit_card_data.last_four_digits | string | Não | Last four digits of the card |
credit_card_data.default_debit_account_id | string (UUID) | Sim | UUID of an existing asset financial account that pays the card statements. Required: without it the card cannot take purchases |
br_data | object | Não | Brazil-specific bank data. Only accepted when the organization is in Brazil. |
br_data.branch_number | string | Não | Bank branch number (agencia) |
br_data.branch_digit | string | Não | Branch check digit |
br_data.account_number | string | Não | Bank account number (conta) |
br_data.account_digit | string | Não | Account check digit |
br_data.pix_key | string | Não | PIX key of the account |
br_data.pix_key_type | string | Não | Type of the PIX key 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. |
us_data.routing_number | string | Não | ABA routing number (9 digits) |
us_data.account_number | string | Não | Bank account number |
us_data.wire_routing_number | string | Não | Wire transfer routing number (9 digits) |
us_data.ach_authorized | boolean | Não | Whether ACH is authorized |
us_data.ach_authorization_date | string (date) | Não | Date the ACH authorization was given (YYYY-MM-DD) |
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": "create_financial_account",
"arguments": {
"tenant": "minha-empresa",
"name": "<name>",
"type": "checking"
}
}
}
