Skip to main content
Glama

Consultar Inscrição Estadual em todos os estados

consultar_ie_todos_estados

Procura inscrições estaduais nos 27 estados numa chamada, por CPF, CNPJ ou IE (um só), sem informar a UF. Devolve, por UF, as inscrições encontradas e o campo complete (false = algum estado não respondeu, então ausência não prova que não existe inscrição). Conta como 1 consulta. Custo por consulta, descontado do saldo em créditos (1 crédito = R$ 1): Starter R$ 0,10 (R$ 0,12 com créditos extras); Pro R$ 0,065 (R$ 0,085); Enterprise R$ 0,025 (R$ 0,035). Erro não é cobrado. Resposta sem inscrição encontrada, sem_certidao ou nao_contribuinte conta como consulta. Exige plano ou créditos extras.

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_ie_todos_estados"
  }
}

Input Schema

NameRequiredDescriptionDefault
ieNoNúmero da Inscrição Estadual (informe só um documento).
cpfNoCPF, com ou sem pontuação (informe só um documento).
cnpjNoCNPJ, com ou sem pontuação (informe só um documento).
secundariasNoBusca também as atividades secundárias de cada inscrição. Pode somar de alguns a dezenas de segundos, conforme o estado.
confirmo_custoNoObrigatório para executar: true só depois que o usuário aceitou o custo descrito na ferramenta. Sem isso a ferramenta só explica o custo e não consulta nada.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

No annotations are supplied, and the description carries the full burden well: it discloses the billing model (1 consulta), the exact per-plan prices and the extra-credit surcharge, that errors are not charged, that negative results (sem inscrição, sem_certidao, nao_contribuinte) still count as a consulta, and that a plan or credits are required. It also warns about the perf-hit risk of secundarias elsewhere being described. These are substantive facts an agent cannot infer from the schema.

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 structure is front-loaded: purpose first, then the important caveat about the complete flag, then billing. The three-tier price list is verbose, but each figure materially changes what the agent should tell the user before spending credits, so the length is largely justified.

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

Completeness5/5

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

For a paid, multi-state lookup with an output schema, the description covers everything an agent needs: cost and confirmation flow, billing on negative results, the complete flag's meaning, and plan requirements. Return-shape details are correctly left to the output schema.

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%, so the schema already explains ie, cpf, cnpj, secundarias and confirmo_custo. The description reinforces the single-document rule ("um só") but adds no syntax, format or edge-case meaning beyond what the schema states. Baseline 3 applies when the schema does the heavy lifting.

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 opening clause names a specific verb ("Procura"), a specific resource ("inscrições estaduais"), an explicit scope ("nos 27 estados numa chamada"), and the accepted inputs (CPF, CNPJ or IE, one only) while stating the key differentiator from a per-UF lookup ("sem informar a UF"). An agent can distinguish this from the sibling consultar_ie without reading either schema.

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?

The description makes the selecting condition clear: use it when you cannot or do not want to specify a UF, since it sweeps all 27 states in a single call. It also states a prerequisite ("Exige plano ou créditos extras"). It stops short of naming consultar_ie as the alternative for single-state lookups or stating when not to use this broader call.

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.