Skip to main content
Glama

Arquivix Notas · NFS-e

nfse_download_pdf

Read-onlyIdempotent

Get the PDF of an authorized NFS-e invoice, by invoice_id or by access_key. By default it returns a temporary signed download link (valid for one hour), because the PDF itself is large. With inline: true it returns the file content as a base64-encoded string instead. With type "nfe" or "nfce" it takes invoice_id (the DANFE or DANFCE comes only as a link).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "nfse_download_pdf"
  }
}

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
inlineNotrue returns pdf_base64 instead of a link. Default false (link).
access_keyNoThe NFS-e access key. Either this or invoice_id (required for NFS-e when there is no invoice_id).
invoice_idNoUUID of the invoice (NFS-e, NF-e or NFC-e). Either this or access_key.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description adds real behavior beyond them: the default result is a temporary signed link valid for one hour, the reason (PDF is large), the base64 alternative, and that DANFE/DANFCE are link-only. It does not cover error modes or whether links expire earlier if reused, keeping it 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.

Conciseness4/5

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

Four short sentences, front-loaded with the core action and default return shape, then the inline variant, then the type caveat. Minimal waste, though the final sentence partially duplicates the type parameter's schema description.

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 correctly carries the return-value burden by explaining both the link and base64 shapes and the one-hour validity. It covers the main complexity of a 4-parameter read tool; only failure behavior and sibling differentiation are absent.

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 schema already spells out the type enum meanings, the invoice_id-vs-access_key rule for nfe/nfce, and the inline semantics. The description restates most of this; only the 'DANFE or DANFCE comes only as a link' remark adds meaning beyond the schema, so baseline 3 applies.

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 opens with a specific verb and resource ('Get the PDF of an authorized NFS-e invoice') and states the two identification paths (invoice_id or access_key). It stops short of distinguishing this tool from the sibling nfse_get_download_url, which sounds like it does the same default behavior, so an agent cannot fully disambiguate from the text 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?

It gives conditional guidance for choosing inline: true versus the default link, and notes that 'nfe'/'nfce' require invoice_id. However, it never says when to prefer this tool over nfse_get_download_url or nfse_get_package_url, which is the more consequential routing decision for an agent.

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