Skip to main content
Glama

Arquivix Notas · NFS-e

nfe_repeat

Destructive

Issue a new NF-e or NFC-e copying a previous one: same company, recipient, items, payments, nature of operation and additional information. Typical request: "emit the same note as last time". The previous note is identified by its invoice_id and type. It never copies the number, access key, protocol or date: the new note is numbered and dated when it is issued, and goes through the same checks as a new note (data such as prices are copied as they were). Optional additional_info replaces the copied text. It uses a credit like a new note and returns immediately with the queued status. Homologação (test) only for now.

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>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "nfe_repeat"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoKind of the note to copy: "nfe" (default) or "nfce".nfe
invoice_idYesUUID of the NF-e or NFC-e to copy
additional_infoNoNew additional information. Defaults to the copied one.
idempotency_keyYesRepeat the same key to avoid issuing twice.

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?

Goes well beyond the annotations: states that number, access key, protocol and date are never copied, that the new note is re-validated, that prices are copied as-is, that a credit is consumed, that the call returns immediately with a queued status, and that it is homologação-only. This matches destructiveHint=true and openWorldHint=true while adding the operational consequences an agent needs.

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 is copied, then the constraints (what is not copied, revalidation, credit use, async return, homologação). Dense and purposeful, though the sentence about checks and copied prices is slightly tangled and could be split.

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 mutating, credit-consuming, asynchronous issue tool with no output schema, the description covers the side effects, the return mode (queued status), the environment restriction, and the data-copying rules. An agent has enough to call it correctly and set expectations.

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 already 100%, so the baseline is 3; the description still adds value by explaining that invoice_id plus type jointly identify the source note and that additional_info replaces (rather than appends to) the copied text. It does not elaborate on idempotency-key retry semantics beyond what the schema says.

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: "Issue a new NF-e or NFC-e copying a previous one," and enumerates exactly what is carried over (company, recipient, items, payments, nature of operation, additional info). The phrase "copying a previous one" plus the example request "emit the same note as last time" cleanly separates it from correction or fresh-issue 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?

Gives a concrete usage trigger ("emit the same note as last time") and clarifies the semantics of copying versus issuing fresh, which is the main confusion risk. It does not explicitly name when to prefer nfe_correct or a plain issue call instead, so the routing guidance is strong but not exhaustive.

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