Skip to main content
Glama

Arquivix Notas · NFS-e

nfse_query

Read-onlyIdempotent

Returns the status of an NFS-e invoice by its access key. Only for NFS-e (50-digit key): an NF-e or NFC-e (44-digit key) is read by invoice_id with type "nfe" or "nfce".

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": {
      "access_key": "<access_key>"
    },
    "name": "nfse_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
access_keyYesThe NFS-e access key (chave de acesso)

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world behavior, so the safety profile is fully covered. The description adds only the 50-digit key constraint and a rough sense of the return ('status'), without saying what status values or fields come back.

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?

Two sentences, front-loaded with the action and scope, followed by the disambiguation rule. Nothing is redundant or padded.

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?

For a single-parameter, read-only lookup with rich annotations and no output schema, the definition covers access, scope and exclusion adequately. Only the shape of the returned status is unspecified, which is a minor gap here.

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 earns a point by adding meaning the schema lacks: the key must be a 50-digit NFS-e access key, and 44-digit NF-e/NFC-e keys are rejected in favor of a different path.

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?

The description opens with a specific verb and resource ('Returns the status of an NFS-e invoice by its access key') and immediately scopes the tool to one document type, which lets an agent separate it from the broader invoice-reading siblings without opening any schema.

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?

It gives an explicit exclusion ('Only for NFS-e') and names the alternative path for NF-e/NFC-e documents (invoice_id with type 'nfe' or 'nfce'). That is clear routing context, though the pointer is to a parameter rather than a sibling tool, leaving a small ambiguity about how it relates to tools like nfse_get.

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