Skip to main content
Glama

Monitorar chaves de NF-e

monitorar_chaves_nfe

Coloca chaves de NF-e (modelo 55) no monitor da conta: a FiscalAPI acompanha cada nota na SEFAZ por até 180 dias (prazo_dias, padrão 180) e avisa no webhook da conta quando ela é cancelada, denegada ou recebe um evento (carta de correção, por exemplo). Sem certificado. O webhook é cadastrado pela API REST (PUT /api/monitor-nfe/webhook); sem ele, acompanhe pela listagem. Devolve, por chave, aceita, ja_monitorada ou invalida (com motivo), as aceitas e o valor cobrado. Custo por chave aceita, descontado do saldo em créditos (1 crédito = R$ 1): Starter R$ 0,03; Pro R$ 0,02; Enterprise R$ 0,015 (mesmo preço com créditos extras), uma vez, cobrindo todo o acompanhamento. Chave já monitorada pela conta e chave inválida não são cobradas. Sem saldo para todas as aceitas, nenhuma entra. Precisa de plano ou créditos extras.

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": {
      "chaves": "<chaves>"
    },
    "name": "monitorar_chaves_nfe"
  }
}

Input Schema

NameRequiredDescriptionDefault
chavesYesChaves de acesso de NF-e (44 dígitos cada; separadores são ignorados), de 1 a 1.000.
prazo_diasNoDias de monitoramento, de 1 a 180 (padrão: 180).
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.
status_conhecidoNoSituação que o usuário já conhece (padrão: autorizada). O 1º aviso só sai se mudar.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

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: no certificate required, 180-day ceiling, per-key cost tiers by plan, one-time charge covering the whole monitoring, no charge for already-monitored or invalid keys, and an all-or-nothing rule ('sem saldo para todas as aceitas, nenhuma entra'). It even discloses the per-key return statuses.

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?

Purpose and scope come first, followed by webhook, returns, and pricing in a logical order. It is dense but every clause carries operational weight; only the pricing sentence is slightly redundant in restating that the charge is one-time and covers all monitoring.

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, stateful, batch-mutating tool with four parameters, the description covers cost, prerequisites, webhook dependency, return statuses, and the no-certificate constraint. An output schema exists, so the brief return summary is bonus rather than a gap.

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, but the description adds meaning the schema does not: the billing model that confirmo_custo gates, and the fact that invalid/already-monitored keys cost nothing. The prazo_dias default of 180 is largely a restatement of the schema default, which keeps it from a 5.

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?

Opens with a specific verb and resource — placing NF-e model 55 keys into the account monitor — and names the provider-side mechanism (SEFAZ tracking for up to 180 days). It is clearly distinguishable from siblings like listar_chaves_monitoradas_nfe, which it explicitly points to as the read path.

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?

States the prerequisite (plan or extra credits), the webhook setup path (PUT /api/monitor-nfe/webhook), and the fallback when no webhook exists ('acompanhe pela listagem'). It also gates execution on user cost acceptance, which tells the agent when not to actually call it. Lacks explicit exclusion criteria versus consultar_chave_monitorada_nfe, so not 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.