Skip to main content
Glama

Arquivix Notas · NFS-e

nfse_get_download_url

Read-onlyIdempotent

Generate a temporary signed download URL for the PDF or XML of an authorized NFS-e invoice, by invoice_id or by access_key. The URL expires in one hour. With type "nfe" or "nfce" send invoice_id (the XML is the authorized nfeProc; the PDF is the DANFE, or the DANFCE of 80 mm for a NFC-e).

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": {
      "format": "<format>"
    },
    "name": "nfse_get_download_url"
  }
}

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
formatYesDocument format to download
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

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive/closed-world, so the safety profile is covered. The description adds real behavioral context beyond that: the URL expires in one hour, and nfe/nfce require a separate release for the account. It does not discuss whether the link is reusable after expiry or any rate limiting, but the additions are substantive.

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?

Three sentences, front-loaded with the core action and expiry, then the conditional key rule. Dense but every sentence carries information; the nested parenthetical about DANFE/DANFCE is slightly hard to parse but not wasteful.

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?

No output schema exists, so the description must convey the return value, which it does (a temporary signed URL, valid one hour). It also covers the type-dependent document meaning and the release prerequisite. The only gap is the absence of any routing guidance relative to the download siblings.

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%, so the baseline is 3, but the description adds meaning the schema does not: for nfe/nfce the XML is the authorized nfeProc and the PDF is the DANFE (or the 80 mm DANFCE), telling the agent what the format value actually yields per type. The invoice_id-vs-access_key rule is largely repeated from the schema, which keeps it from a 5.

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?

Specific verb and resource: "Generate a temporary signed download URL for the PDF or XML of an authorized NFS-e invoice," with the lookup keys named (invoice_id or access_key). It also clarifies that the tool extends to nfe/nfce, so an agent knows the scope is broader than NFS-e. It never names a sibling such as nfse_download_pdf, so the boundary with alternatives stays implicit.

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 clear selection rules: use invoice_id or access_key for NFS-e, and use invoice_id (not access_key) when type is nfe/nfce. It also flags that NF-e/NFC-e are homologação only and need their own release for the account, which prevents a failed call. It stops short of saying when to prefer this over nfse_download_pdf or nfse_get_package_url.

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