Skip to main content
Glama

Consultar CND estadual

consultar_cnd_estadual

Consulta a Certidão Negativa de Débitos estadual (ICMS) de um CPF ou CNPJ (um só) na UF informada. Devolve o status (negativa, positiva, positiva_com_efeitos_de_negativa, nao_contribuinte, sem_certidao ou erro), emissão, validade e protocolo. O PDF não vem pelo MCP. 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_cnd_estadual"
  }
}

Input Schema

NameRequiredDescriptionDefault
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).
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 supplied, the description carries the full burden and does so: per-call pricing by plan tier, extra-credit pricing, that errors are not charged, that empty/no-certificate/non-taxpayer responses still count as billable consultations, and that the confirmo_custo gate blocks execution until the user accepts the cost. The PDF-not-returned caveat is also disclosed.

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-loads what the tool returns and what it does not (no PDF), then layers billing and eligibility rules. The pricing sentence is dense with tier figures, but those numbers are the justification for the confirmo_custo consent step and thus earn their space.

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?

An output schema exists, yet the description still pre-announces the status vocabulary so the agent can interpret results without a round trip. Cost, billing edge cases, credit prerequisites, and the consent gate are all covered for a paid, gated lookup tool.

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 earns above baseline by reinforcing the 'only one document' constraint on cpf/cnpj and by framing confirmo_custo as a user-consent gate rather than a plain boolean. It adds no format or validation detail beyond what the schema already states.

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: consults the state ICMS negative-debt certificate for one CPF or CNPJ in the given UF. It also enumerates the returned status values and notes the PDF is not delivered via MCP, which separates it from document-download siblings.

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?

Makes clear the scope is one document per call and that a plan or extra credits are required, with the 10 free monthly consultations explicitly excluded from MCP use. It does not name a sibling (e.g., consultar_cnd_federal) to route federal-scope requests, so the alternative is only implied by the 'estadual' qualifier.

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.