list_financial_categories
Referência da tool list_financial_categories do MCP Server do bitERP (Categorias financeiras).
List Financial Categories · Categorias financeiras
| Somente leitura | Destrutiva | Idempotente | Mundo aberto |
|---|---|---|---|
| Sim | Não | Sim | 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.
Lists internal financial category records for one organization with optional filters and cursor-based pagination.
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. |
search | string | Não | Optional search term to filter categories by name, reference code, code, or description |
type | string | Não | Filter by category type Valores: revenue, expense. |
parent_id | string (UUID) | Não | Filter by parent category ID (use null_parent=true for root categories) |
null_parent | boolean | Não | If true, returns only root categories (parent_id is null) |
is_locked | boolean | Não | Filter by lock status |
sort_by | string | Não | Sort field (default: code) Valores: code, name, reference_code, created_at, updated_at. |
sort_order | string | Não | Sort direction (default: asc) Valores: asc, desc. |
cursor | string | Não | Cursor for pagination. Use next_cursor/previous_cursor from previous response. |
limit | integer | Não | Max results per page (default 10, max 100) |
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 |
|---|---|---|
data | array de objetos | — |
data[].id | string (UUID) | — |
data[].tenant_id | string (UUID) | — |
data[].parent_id | string (UUID) ou null | — |
data[].type | string | Valores: revenue, expense. |
data[].reference_code | string ou null | — |
data[].name | string | — |
data[].code | string ou null | — |
data[].presentation_role | string ou null | 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. |
data[].expense_nature | string ou null | Valores: employee_benefits, depreciation, amortisation, impairment, inventory_writedown, materials, services, other. |
data[].is_locked | boolean | — |
data[].is_system | boolean | — |
data[].description | string ou null | — |
data[].metadata | object | — |
data[].created_by_user_id | string (UUID) ou null | — |
data[].updated_by_user_id | string (UUID) ou null | — |
data[].deleted_by_user_id | string (UUID) ou null | — |
data[].created_at | string (date-time) | — |
data[].updated_at | string (date-time) | — |
data[].deleted_at | string (date-time) ou null | — |
data[].parent | object ou null | — |
has_next_page | boolean | — |
has_previous_page | boolean | — |
next_cursor | string ou null | — |
previous_cursor | string ou null | — |
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": "list_financial_categories",
"arguments": {
"tenant": "minha-empresa"
}
}
}
