Skip to main content
Glama

Arquivix Notas · NFS-e

nfse_email_resend

Destructive

Resend an authorized NFS-e, NF-e or NFC-e (PDF and XML) by email. By default it goes to the customer email on the invoice; with email it goes to that address instead. Fails when the invoice is not authorized yet, is cancelled, or has no customer email and none is given.

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

Input Schema

NameRequiredDescriptionDefault
typeNoKind of invoice: "nfse" (default, services), "nfe" (goods, model 55) or "nfce" (sale to the consumer, model 65). NF-e and NFC-e are homologação only and need their own release for the account. With "nfe" or "nfce" use invoice_id, not access_key.nfse
emailNoOptional destination address, instead of the customer email on the invoice
invoice_idYesUUID of the authorized invoice

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare the write/external/destructive/non-idempotent profile, and the description adds real context beyond them: what is delivered (PDF and XML), the default destination, and the three failure conditions (not authorized, cancelled, no customer email). It does not explain why the operation is flagged destructive or whether repeated sends are rate-limited, so it stops short of a 5.

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?

Three short sentences, front-loaded with the action, then the routing default, then the failure cases. Every sentence carries information an agent needs; nothing is filler.

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?

With no output schema, the description could state what a successful call returns (send confirmation, delivery status), which is a real gap for a side-effecting tool. Preconditions and delivery content are otherwise well covered for a 3-parameter operation.

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%, so the baseline is 3. The description restates the email override semantics that the schema already documents ('instead of the customer email on the invoice') and says nothing additional about type or invoice_id formats.

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?

States a specific verb (resend), a specific resource (an authorized NFS-e/NF-e/NFC-e, PDF plus XML), and the channel (email). An agent can distinguish this from issue/repeat/download siblings because the operation is explicitly a delivery of an already-authorized document.

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?

The description explains the default recipient and the override, plus the preconditions under which it fails, which implies when to use it. However, it never names an alternative (e.g. nfse_repeat or nfse_get_download_url) or states when an agent should prefer another route to obtain the same document.

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