biterp

get_financial_categories_tree

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

Get Financial Categories Tree · Categorias financeiras

Somente leituraDestrutivaIdempotenteMundo aberto
SimNãoSimNã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.

Returns the internal financial category hierarchy for one organization.

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.
typestringNãoOptional filter by category type Valores: revenue, expense.

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
dataarray de objetos—
data[].idstring (UUID)—
data[].tenant_idstring (UUID)—
data[].parent_idstring (UUID) ou null—
data[].typestringValores: revenue, expense.
data[].reference_codestring ou null—
data[].namestring—
data[].codestring ou null—
data[].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.
data[].expense_naturestring ou nullValores: employee_benefits, depreciation, amortisation, impairment, inventory_writedown, materials, services, other.
data[].is_lockedboolean—
data[].is_systemboolean—
data[].descriptionstring ou null—
data[].metadataobject—
data[].created_by_user_idstring (UUID) ou null—
data[].updated_by_user_idstring (UUID) ou null—
data[].deleted_by_user_idstring (UUID) ou null—
data[].created_atstring (date-time)—
data[].updated_atstring (date-time)—
data[].deleted_atstring (date-time) ou null—
data[].parentobject ou null—
data[].childrenarray de objetos—

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": "get_financial_categories_tree",
        "arguments": {
            "tenant": "minha-empresa"
        }
    }
}

Nesta página