Skip to main content
Glama

Arquivix Notas · NFS-e

nfse_get

Read-onlyIdempotent

Get one NFS-e by its internal invoice id (the id returned when the invoice is issued or listed), including status, amounts, customer and the events timeline (every status change with its reason and time). The timeline explains why a note was rejected or what happened to it. Instead of invoice_id it takes external_id, your own reference sent when issuing: it searches NFS-e, NF-e and NFC-e (type is not needed) and returns the note; since an external_id is not unique, when more than one note has it it returns ambiguous: true with the matches (id, type, status, createdAt) instead of a note. Fails when the id does not exist in this workspace and environment. With type "nfe" or "nfce" it returns the NF-e or NFC-e and its timeline (states and fiscal events); the NFC-e also has qrCode and urlChave.

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_get"
  }
}

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
invoice_idNoInternal invoice id (UUID). Required unless external_id is given.
external_idNoYour own reference of the note (the external_id sent when issuing), exact match, any type. Alternative to invoice_id.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/closed-world, and the description adds substantial behavior on top: non-unique external_id returns ambiguous: true with match stubs instead of a note, lookup fails when the id does not exist in this workspace/environment, and the timeline explains rejection reasons. It also discloses the NFC-e extras (qrCode, urlChave) and that NF-e/NFC-e are homologação-only and require a separate release.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

The primary case (get by invoice_id) is correctly front-loaded, but the text is a dense run-on block with some redundancy, e.g. 'events timeline (every status change with its reason and time)' restates the same thing. It reads as an accumulated changelog rather than a structured definition, which slows parsing even though most sentences carry information.

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?

With no output schema, the description carries the full burden of explaining returns and does so: status, amounts, customer, event timeline, ambiguity payload shape, and type-specific fields. For a three-parameter read tool with zero required params, nothing an agent needs to select or invoke it is missing.

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, and the description still adds real meaning: external_id is an exact match, is not unique, and spans NFS-e/NF-e/NFC-e regardless of type. Minor noise: it warns to use invoice_id 'not access_key' for nfe/nfce, but access_key is not a parameter of this tool, which could momentarily confuse an agent.

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 and resource ('Get one NFS-e') and immediately defines the two lookup keys (internal invoice_id vs. your own external_id), plus what the response carries. The type variants (nfe/nfce) are explained concretely, so an agent knows exactly which retrieval this performs versus a listing/search tool.

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 clear in-tool routing: use invoice_id normally, external_id as the alternative, and type 'nfe'/'nfce' for those documents. What it never says is when an agent should call this at all versus siblings like nfse_query or nfse_list for lookup, nor what to do after receiving ambiguous: true (retry with invoice_id? list first?). Usage guidance is implied rather than stated against alternatives.

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