biterp

create_financial_account

Referência da tool create_financial_account do MCP Server do bitERP (Contas financeiras).

Create Financial Account · Contas financeiras

Somente leituraDestrutivaIdempotenteMundo aberto
NãoNãoNãoNã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âmetroTipoObrigatórioDescrição
tenantstringSimDefines 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.
namestringSimAccount name (must be unique per tenant)
typestringSimAccount type Valores: checking, savings, cash, digital_wallet, gateway, credit_card.
bank_idstring (UUID)NãoBank ID to associate with this account
bank_supplier_idstring (UUID)NãoSupplier representing the card issuer (required when type is credit_card)
initial_balancedecimal (string ou number)NãoInitial 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".
descriptionstringNãoAccount description
is_blockedbooleanNãoWhether the account is blocked. Defaults to false.
display_orderintegerNãoDisplay order for UI sorting (default: 0)
credit_card_dataobjectNãoRequired when type is credit_card: closing/due days and optional card metadata
credit_card_data.credit_limitdecimal (string ou number)NãoCredit 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_dayintegerSimStatement closing day (1-31)
credit_card_data.due_dayintegerSimStatement due day (1-31)
credit_card_data.brandstringNãoCard brand (e.g. Visa)
credit_card_data.last_four_digitsstringNãoLast four digits of the card
credit_card_data.default_debit_account_idstring (UUID)SimUUID of an existing asset financial account that pays the card statements. Required: without it the card cannot take purchases
br_dataobjectNãoBrazil-specific bank data. Only accepted when the organization is in Brazil.
br_data.branch_numberstringNãoBank branch number (agencia)
br_data.branch_digitstringNãoBranch check digit
br_data.account_numberstringNãoBank account number (conta)
br_data.account_digitstringNãoAccount check digit
br_data.pix_keystringNãoPIX key of the account
br_data.pix_key_typestringNãoType of the PIX key Valores: cpf, cnpj, email, phone, random.
us_dataobjectNãoUnited States-specific bank data. Only accepted when the organization is in the United States.
us_data.routing_numberstringNãoABA routing number (9 digits)
us_data.account_numberstringNãoBank account number
us_data.wire_routing_numberstringNãoWire transfer routing number (9 digits)
us_data.ach_authorizedbooleanNãoWhether ACH is authorized
us_data.ach_authorization_datestring (date)NãoDate 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).

CampoTipoDescrição
idstring (UUID)—
tenant_idstring (UUID)—
bank_idstring (UUID) ou null—
bank_supplier_idstring (UUID) ou null—
bank_customer_idstring (UUID) ou null—
bankobject ou null—
bank.idstring (UUID)—
bank.namestring ou null—
bank.official_namestring ou null—
bank.codestring ou null—
namestring—
reference_codestring ou null—
typestringValores: checking, savings, cash, digital_wallet, gateway, credit_card.
initial_balancestring ou null—
descriptionstring ou null—
is_blockedboolean—
display_orderinteger—
account_scope_maskobject ou null—
account_scope_mask.counterpartyboolean—
account_scope_mask.categoryboolean—
account_scope_mask.balanceboolean—
metadataobject—
created_by_user_idstring (UUID) ou null—
updated_by_user_idstring (UUID) ou null—
deleted_by_user_idstring (UUID) ou null—
created_atstring (date-time)—
updated_atstring (date-time)—
deleted_atstring (date-time) ou null—
br_dataobject ou null—
br_data.idstring (UUID)—
br_data.financial_account_idstring (UUID)—
br_data.tenant_idstring (UUID)—
br_data.branch_numberstring ou null—
br_data.branch_digitstring ou null—
br_data.account_numberstring ou null—
br_data.account_digitstring ou null—
br_data.pix_keystring ou null—
br_data.pix_key_typestring ou nullValores: cpf, cnpj, email, phone, random.
br_data.created_by_user_idstring (UUID) ou null—
br_data.updated_by_user_idstring (UUID) ou null—
br_data.created_atstring (date-time)—
br_data.updated_atstring (date-time)—
us_dataobject ou null—
us_data.idstring (UUID)—
us_data.financial_account_idstring (UUID)—
us_data.tenant_idstring (UUID)—
us_data.routing_numberstring ou null—
us_data.account_numberstring ou null—
us_data.wire_routing_numberstring ou null—
us_data.ach_authorizedboolean—
us_data.ach_authorization_datestring (date) ou null—
us_data.created_by_user_idstring (UUID) ou null—
us_data.updated_by_user_idstring (UUID) ou null—
us_data.created_atstring (date-time)—
us_data.updated_atstring (date-time)—
credit_card_dataobject ou null—
credit_card_data.idstring (UUID)—
credit_card_data.financial_account_idstring (UUID)—
credit_card_data.tenant_idstring (UUID)—
credit_card_data.credit_limitstring ou null—
credit_card_data.closing_dayinteger—
credit_card_data.due_dayinteger—
credit_card_data.brandstring ou null—
credit_card_data.last_four_digitsstring ou null—
credit_card_data.default_debit_account_idstring (UUID) ou null—
credit_card_data.created_by_user_idstring (UUID) ou null—
credit_card_data.updated_by_user_idstring (UUID) ou null—
credit_card_data.created_atstring (date-time)—
credit_card_data.updated_atstring (date-time)—
_tenantobject—
_tenant.idstring (UUID)—
_tenant.slugstring—
_tenant.company_namestring—

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"
        }
    }
}

Nesta página