Skip to main content
Glama

Arquivix Notas · NFS-e

nfe_correct

Destructive

Sends a correction letter (CC-e) for an authorized NF-e. It cannot change values, taxes, the parties or the dates. 15 to 1000 characters. The letter is sent to the SEFAZ and starts as pending; its final status shows in the fiscal events of the note (invoice.fiscalEvents: sequence, text, status, protocol, date). A NFC-e has no correction letter: this tool answers INVOICE_OPERATION_NOT_SUPPORTED for it (a NFC-e can only be cancelled within 30 minutes).

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": {
      "invoice_id": "<invoice_id>",
      "correction": "<correction>"
    },
    "name": "nfe_correct"
  }
}

Input Schema

NameRequiredDescriptionDefault
correctionYesThe correction text.
invoice_idYesUUID of the NF-e

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (destructive, open-world, non-idempotent), it discloses that the letter goes to SEFAZ, starts as pending, and that the final status appears in invoice.fiscalEvents with sequence, text, status, protocol, and date. It also names the exact error code returned for NFC-e, all of which is behavior an agent could not infer from structured fields.

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?

The description leads with the action, then constraints, then behavior. The fiscalEvents field list is slightly dense but pertinent given there is no output schema; nothing is redundant filler.

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 two-parameter mutation with no output schema, it supplies what the response looks like (fiscal events), the asynchronous pending state, and the failure mode for NFC-e. An agent has everything needed to call it correctly and interpret the result.

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 both parameters are documented, so the baseline is 3. The description earns an extra point by giving real semantics to `correction`: it cannot alter values, taxes, parties, or dates, and must stay within 15 to 1000 characters.

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?

The description names a specific verb and resource ('Sends a correction letter (CC-e) for an authorized NF-e') and immediately bounds the scope by saying what it cannot change. The closing note that a NFC-e has no correction letter further separates this tool's domain from adjacent operations.

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?

It states the precondition (the NF-e must be authorized) and an explicit exclusion (NFC-e is not supported; a NFC-e can only be cancelled within 30 minutes), which routes the agent away from misuse. It does not compare against a sibling like cte_correct or cancel, so a small gap remains.

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.

Resources