biterp

move_financial_category

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

Move 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.

Repositions one financial category among its siblings. The set of codes in the level is preserved: the moved category takes the code of its new slot and the categories in between shift one slot each, subtrees included. Never changes the parent.

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 reposition
after_idstring (UUID) ou nullSimSibling the category is placed after. Pass null to make it the first one in the level.

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
movedobject—
moved.idstring (UUID)—
moved.tenant_idstring (UUID)—
moved.parent_idstring (UUID) ou null—
moved.typestringValores: revenue, expense.
moved.reference_codestring ou null—
moved.namestring—
moved.codestring ou null—
moved.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.
moved.expense_naturestring ou nullValores: employee_benefits, depreciation, amortisation, impairment, inventory_writedown, materials, services, other.
moved.is_lockedboolean—
moved.is_systemboolean—
moved.descriptionstring ou null—
moved.metadataobject—
moved.created_by_user_idstring (UUID) ou null—
moved.updated_by_user_idstring (UUID) ou null—
moved.deleted_by_user_idstring (UUID) ou null—
moved.created_atstring (date-time)—
moved.updated_atstring (date-time)—
moved.deleted_atstring (date-time) ou null—
moved.parentobject ou null—
renumberedarray de objetos—
renumbered[].idstring (UUID)—
renumbered[].namestring—
renumbered[].previous_codestring ou null—
renumbered[].codestring—
_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": "move_financial_category",
        "arguments": {
            "tenant": "minha-empresa",
            "id": "<uuid>",
            "after_id": "<uuid>"
        }
    }
}

Nesta página