Skip to main content
Glama
nota-fiscal-mcp

nota-fiscal-mcp

by FAVIOSENGER

consultar_nfse

Check the status of a Brazilian NFS-e by its reference, returning whether it is processing, authorized with XML/PDF links, or failed.

Instructions

Consulta o status de uma NFS-e pela sua 'ref'. Retorna se esta em processamento, autorizada (com links de XML/PDF) ou com erro.

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

Input Schema

NameRequiredDescriptionDefault
refYesA mesma ref usada na emissao.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations at all, the description carries the full behavioral burden. It does well to enumerate the three possible outcomes (processing, authorized with XML/PDF links, error), which is the key trait for a status tool, but it omits what happens for an unknown/expired ref, whether repeated calls are safe/rate-limited, and any auth or workspace prerequisites.

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, front-loaded with the action and immediately followed by the possible return states. No filler or redundant phrasing.

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 simple single-parameter read tool with no output schema, the description usefully covers the return states that the schema cannot express. Left out are edge cases such as a nonexistent ref or repeated polling, which keeps it just short of complete.

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 coverage is 100% and the single parameter is documented in the schema as 'A mesma ref usada na emissao'. The description restates the same idea ('pela sua ref') without adding format, source, or retrieval details, so it stays at the baseline for fully-covered schemas.

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?

States a specific verb+resource: checking the status of an NFS-e by its 'ref'. The resource name (NFS-e) implicitly separates it from siblings like consultar_nfe, but the description never explicitly contrasts the two document types, so the agent must rely on the tool names alone.

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: mentioning 'a mesma ref usada na emissao' signals this is the follow-up to emitir_nfse. There is no explicit when-to-use vs. when-not guidance, no mention of polling cadence for the processing state, and no routing to consultar_nfe for a different document type.

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