Skip to main content
Glama

Consultar nota de produto

consultar_nota_produto
Read-onlyIdempotent

Situação de uma NF-e ou NFC-e desta conta: status, número, chave de acesso e, se rejeitada, o motivo que a SEFAZ deu. Traz xml_url e pdf_url, links que exigem a chave de API da conta.

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": {
      "tipo": "<tipo>",
      "id": "<id>"
    },
    "name": "consultar_nota_produto"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
tipoYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and non-destructive behavior, so the safety profile is covered. The description adds real value by disclosing that xml_url and pdf_url are API-key-gated, and that rejection reasons come from SEFAZ. It does not say what happens on an invalid/unknown id or how soon after emission the nota becomes queryable.

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?

Two sentences with no filler; the core purpose and returned fields come first, with the auth caveat about links placed after. Slightly dense packing of return fields but everything earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

A simple read-only lookup with rich annotations, and the description covers returned fields plus link authentication. The main gap is parameter meaning for id/tipo, which is the one thing an agent must get right before calling it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% for both required params. The description never explains what 'id' is (the pattern ^[a-z0-9]{20,32}$ suggests an internal identifier rather than the 44-digit chave, but this is not confirmed) nor what distinguishes tipo=nfe from tipo=nfce. Because coverage is low, the description should have compensated and does not.

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?

States a concrete resource and scope ('Situação de uma NF-e ou NFC-e desta conta') and enumerates what is returned (status, número, chave de acesso, motivo de rejeição). It does not contrast itself with the near-identically named sibling consultar_nota or with listar_notas_produto, so differentiation is left to inference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains what the tool returns but never says when to choose it over consultar_nota or listar_notas_produto, nor what preconditions apply (e.g., needing an already-issued nota). Usage must be inferred from the noun phrase alone.

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