Skip to main content
Glama
nota-fiscal-mcp

nota-fiscal-mcp

by FAVIOSENGER

consultar_nfe

Check a Brazilian NF-e status using its reference and retrieve XML and DANFE download paths when the invoice is authorized.

Instructions

Consulta o status de uma NF-e pela 'ref'. Quando autorizada, retorna os caminhos de download do XML e do DANFE.

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": {
      "ref": "<ref>"
    },
    "name": "consultar_nfe"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYesA mesma ref usada na emissao.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description must carry behavioral disclosure. It does add real value by disclosing a conditional outcome — XML and DANFE download paths are returned only 'quando autorizada' — which signals the tool is a read-only status lookup. However, it says nothing about behavior when the note is not authorized, authentication needs, rate limits, or whether repeated calls mutate anything.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences with zero redundancy; the core purpose is front-loaded and the conditional return behavior follows. Nothing needs trimming or reordering.

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

Completeness4/5

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

For a one-parameter read tool with no output schema, the description covers purpose and the main return payload (XML and DANFE paths). Minor gaps remain: the set of possible status values and what is returned when the NF-e is not authorized are not described.

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% and the single parameter is documented as 'A mesma ref usada na emissao', so the schema already does the heavy lifting. The description restates the parameter without adding syntax, format, or validation detail, which is acceptable at this coverage level.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ('Consulta o status de uma NF-e') and the keying parameter ('pela ref'), which is enough to tell it apart from mutation siblings like emitir_nfe/cancelar_nfe. It does not explicitly contrast itself with the closest read sibling, consultar_nfse, so sibling differentiation is implied by the NF-e/NFS-e distinction rather than stated.

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?

Usage is only implied: an agent can infer this is the post-emission status check, and the schema note 'A mesma ref usada na emissao' reinforces that. There is no explicit when-to-use/when-not-to-use statement and no mention of prerequisites or what to do when the NF-e is not yet authorized.

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