Skip to main content
Glama

siconfi_entes

Lists and filters Brazilian federative entities in SICONFI by IBGE code, CNPJ, state, sphere, or capital status to find the id_ente needed for fiscal statement queries.

Instructions

Lista e filtra entes federativos brasileiros no SICONFI (códigos IBGE, CNPJ, UF, esfera U/E/M/D, capitais e população) para descoberta do id_ente antes de consultar demonstrativos fiscais.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "siconfi_entes"
  }
}

Input Schema

NameRequiredDescriptionDefault
ufNoSigla da UF com 2 letras (ex.: 'SP', 'MG').
cnpjNoCNPJ principal do ente federativo (14 dígitos numéricos).
nomeNoBusca textual parcial (case/acento-insensível) no nome do ente.
limitNoNúmero máximo de entes retornados (1 a 50, padrão 25).
esferaNoEsfera federativa: U (União), E (Estado), M (Município), D (Distrito Federal).
cod_ibgeNoCódigo IBGE do ente federativo (1 a 7 dígitos; ex.: '3550308' para São Paulo, '1' para União).
capital_onlyNoQuando true, retorna apenas capitais.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the burden. "Lista e filtra" implies a read-only lookup, and the pre-query discovery role is conveyed, but nothing is said about result ordering, pagination/truncation behavior, or whether the limit silently cuts off matches. The important constraint that at least one filter is required lives only in the schema, not in the description text.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single dense sentence with the verb front-loaded and the workflow purpose placed at the end where it serves as routing. The nested parenthetical enumeration is slightly heavy but every element earns its place by naming a filter or returned field.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter, zero-required filter/list tool with full schema coverage and no output schema, the description supplies purpose, scope, and workflow position. The remaining gap is behavioral: it does not restate the at-least-one-filter requirement or explain how results are capped, which an agent would need to call it well without reading the schema description.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with each parameter (uf, cnpj, nome, limit, esfera, cod_ibge, capital_only) documented including patterns and enum meanings. The description's parenthetical list of filterable fields mirrors the schema rather than adding semantics such as match behavior or precedence between filters, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb-plus-resource ("Lista e filtra entes federativos brasileiros no SICONFI") and enumerates the dimensions covered (códigos IBGE, CNPJ, UF, esfera U/E/M/D, capitais, população). It also states the tool's role in the workflow ("descoberta do id_ente antes de consultar demonstrativos fiscais"), which separates it from the demonstrativo siblings like siconfi_dca and siconfi_rgf.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Clear when-to-use: this is the discovery step that yields id_ente before querying fiscal statements, which routes the agent correctly among the siconfi_* siblings. There is no explicit when-not or statement of which filter to prefer, so it stops short of full guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.