list_units_of_measurement
Referência da tool list_units_of_measurement do MCP Server do bitERP (Unidades de medida).
List Units of Measurement · Unidades de medida
| 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 units of measurement available for the organization country with optional search 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. |
cursor | string ou null | Não | Opaque base64 cursor for the next page. Omit or null for first page. |
limit | integer | Não | Page size (1-100). Default 10. |
search | string | Não | Optional search term to filter units of measurement |
active_only | boolean | Não | If true, only returns active units. Defaults to false. |
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[].code | string | — |
data[].symbol | string | — |
data[].fiscal_codes | object | — |
data[].country_codes | array de string | — |
data[].titles | object | — |
data[].descriptions | object | — |
data[].is_blocked | boolean | — |
data[].display_order | integer | — |
data[].created_at | string (date-time) | — |
data[].updated_at | string (date-time) | — |
has_next_page | boolean | — |
next_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_units_of_measurement",
"arguments": {
"tenant": "minha-empresa"
}
}
}
