Skip to main content
Glama

Consultar Inscrição Estadual numa UF

consultar_ie

Consulta a Inscrição Estadual na UF informada, por CPF, CNPJ ou IE (um só). Devolve os dados cadastrais de cada inscrição: número, razão social, situação, tipo, endereço, CNAE, regime e datas. Por CPF não funciona em SP (lá, use CNPJ ou IE). 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: as 10 consultas grátis do mês são só no painel, não valem pelo MCP.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "uf": "<uf>"
    },
    "name": "consultar_ie"
  }
}

Input Schema

NameRequiredDescriptionDefault
ieNoNúmero da Inscrição Estadual (informe só um documento).
ufYesSigla da UF, ex.: MT.
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.6/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses per-plan pricing, that errors are not charged, that empty results / sem_certidao / nao_contribuinte still count as billable queries, that plan or extra credits are required, and that the 10 free monthly queries do not apply over MCP. These are exactly the behavioral facts an agent needs before spending a user's credits.

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?

Front-loaded with purpose, then constraints, then cost, then gating — a sensible order with no filler sentences. The three-tier price list is verbose but earns its place because consent to cost depends on it.

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?

Six parameters, one enum, an output schema, and zero annotations — the description covers purpose, cost, billing edge cases, auth/credit requirements, and the human-consent gate. Return-field explanation is redundant given the output schema, but nothing an agent needs to call this correctly is missing.

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 baseline is 3; the description nevertheless adds meaning, notably the 'informe só um documento' exclusivity among cpf/cnpj/ie and the state-specific restriction that CPF is unusable in SP, which is a parameter-conditional constraint not encoded in the schema. Slower comportamento of secundarias is left to the schema.

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 ('Consulta a Inscrição Estadual'), the required scope ('na UF informada') and the accepted document types (CPF, CNPJ ou IE). The per-UF scope also implicitly separates it from consultar_ie_todos_estados, so an agent can route without inspecting the 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?

Gives a concrete constraint on when the tool fails and what to do instead ('Por CPF não funciona em SP (lá, use CNPJ ou IE)') and gates execution on user cost acceptance via confirmo_custo. It does not name a sibling alternative when the user wants all states at once, which keeps it short of a 5.

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.