Skip to main content
Glama

Ver se o município usa o Emissor Nacional

consultar_municipio
Read-onlyIdempotent

NÃO PRECISA DE LOGIN. Diz se um município usa o Emissor Nacional da NFS-e ou sistema próprio (e qual), segundo o painel público da Receita Federal, com a data do retrato, e por qual caminho a nota sai conforme o regime (MEI e Simples pelo padrão nacional; fora do Simples, pelo sistema da prefeitura). Informe nome (de preferência com uf) ou codigo_ibge.

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": "consultar_municipio"
  }
}

Input Schema

NameRequiredDescriptionDefault
ufNoSigla do estado, ex.: "SP".
nomeNoNome do município, com ou sem acento.
limiteNoQuantos municípios devolver (1 a 20, padrão 5).
codigo_ibgeNoCódigo IBGE do município, 7 dígitos.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already carry readOnly/idempotent/non-destructive, and the description adds genuinely new context: no authentication is required, the data comes from the Receita Federal public panel, results carry the snapshot date, and it explains the regime-dependent emission path. What is missing is failure behavior for ambiguous or unknown municipalities.

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?

The critical fact ('NÃO PRECISA DE LOGIN') and the core purpose are front-loaded, with nesting used to carry the regime detail compactly. The regime parenthetical is dense but each clause adds real meaning, so nothing is clearly wasteful.

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

Completeness3/5

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

There is no output schema, and the description does describe what comes back (emitter type and name, snapshot date, emission path), which covers the main return semantics. However a lookup tool with four parameters and no output schema could also say what happens on no-match or multiple matches, especially given the limite parameter.

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

Parameters4/5

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

Schema coverage is 100%, so the schema documents uf, nome, limite and codigo_ibge on its own. The description still adds value by framing nome and codigo_ibge as alternatives and recommending uf alongside nome for disambiguation, which the schema does not say.

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?

States a specific verb and resource (tell whether a municipality uses the National Emissor da NFS-e or its own system, and which), plus the authoritative source and the snapshot date. That is clearly a public lookup tool, easy to tell apart from note-emitting siblings like emitir_nota or consultar_nota.

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

Usage Guidelines3/5

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

The definition tells the caller a precondition ('NÃO PRECISA DE LOGIN') and how to identify the municipality, which implicitly frames this as a pre-check before emitting. It never states when to prefer it over a sibling or what to do if the municipality is not found, so usage is implied rather than spelled out.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources