biterp

update_financial_category

Referência da tool update_financial_category do MCP Server do bitERP (Categorias financeiras).

Update Financial Category · Categorias financeiras

Somente leituraDestrutivaIdempotenteMundo aberto
NãoSimSimNã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 category record. Only the provided fields are changed.

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.
idstring (UUID)SimThe UUID of the financial category to update
namestringNãoNew category name
codestringNãoInternal chart-of-accounts code, two digits per level (e.g. "06.01.03"). Free typing is normalized ("6.1" -> "06.01"). Derived from the parent when omitted.
presentation_rolestringNãoIFRS 18 presentation axis. Must match the parent role. "balance_sheet_movement" is settlement/equity traffic and never reaches the income statement. Valores: gross_revenue, revenue_deduction, cost_of_sales, operating_expense, other_operating_income, investing_income, investing_expense, financing_income, financing_expense, income_tax, balance_sheet_movement.
expense_naturestringNãoExpense nature for the IFRS 18 by-nature note. Required for cost_of_sales and operating_expense, rejected for every other role. Valores: employee_benefits, depreciation, amortisation, impairment, inventory_writedown, materials, services, other.
is_lockedbooleanNãoNew lock status
descriptionstringNãoNew description

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)—
parent_idstring (UUID) ou null—
typestringValores: revenue, expense.
reference_codestring ou null—
namestring—
codestring ou null—
presentation_rolestring ou nullValores: gross_revenue, revenue_deduction, cost_of_sales, operating_expense, other_operating_income, investing_income, investing_expense, financing_income, financing_expense, income_tax, balance_sheet_movement.
expense_naturestring ou nullValores: employee_benefits, depreciation, amortisation, impairment, inventory_writedown, materials, services, other.
is_lockedboolean—
is_systemboolean—
descriptionstring ou null—
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—
parentobject ou null—
parent.idstring (UUID)—
parent.namestring—
parent.codestring ou null—
_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": "update_financial_category",
        "arguments": {
            "tenant": "minha-empresa",
            "id": "<uuid>"
        }
    }
}

Nesta página