Skip to main content
Glama

Baixar XML de NF-e sem certificado (cópia para leitura)

baixar_xml_nfe_sem_certificado

Devolve uma cópia para leitura do XML de UMA NF-e (modelo 55) a partir da chave de acesso de 44 posições, sem certificado digital. A cópia vem sem a assinatura digital (assinado=false, tipo_xml=leitura): traz os dados da nota, mas não serve para validar schema nem assinatura. Status por chave: ok (com o XML), nao_encontrado ou erro. Custo por chave, descontado do saldo em créditos (1 crédito = R$ 1): Starter R$ 0,30 (R$ 0,36 com créditos extras); Pro R$ 0,195 (R$ 0,255); Enterprise R$ 0,05 (R$ 0,05). Cobra o XML entregue e também a chave cuja nota não foi encontrada (nao_encontrado); a mesma chave repetida logo depois de um nao_encontrado, chave inválida e erro não são cobrados. Precisa de plano ou créditos extras.

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": {
      "chave": "<chave>"
    },
    "name": "baixar_xml_nfe_sem_certificado"
  }
}

Input Schema

NameRequiredDescriptionDefault
chaveYesChave de acesso da NF-e (44 posições); separadores são ignorados.
confirmo_custoNoObrigatório para executar: true só depois que o usuário aceitou o custo descrito na ferramenta. Sem isso a ferramenta só explica o custo e não consulta nada.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it discloses that the returned copy lacks the digital signature and cannot be used to validate schema or signature, enumerates the per-key status values (ok, nao_encontrado, erro), and spells out the billing rules including which outcomes are charged and which are not.

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?

The core capability, the signature caveat, and the status set are front-loaded, with cost detail after. The tier-by-tier pricing (Starter/Pro/Enterprise, with and without extra credits) is dense, but on a paid per-call tool that detail earns its place.

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?

An output schema exists, so return shape need not be described, yet the description still tells the agent what statuses to expect. For a single-key, paid, certificate-free download, everything needed to call it correctly — prerequisites, cost gate, and result semantics — is present.

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 description coverage is 100%, so both parameters are already documented, and the description largely restates the 44-position key format. It does add value by tying the per-key charge to the act of confirming, which informs the confirmo_custo decision, but the explicit non-charging cases are the only meaning not already present in the schema.

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 a read-only copy of the XML of ONE NF-e (model 55) built from the 44-position access key, with no digital certificate. It also draws the crucial line between this 'cópia para leitura' and a signed document (assinado=false, tipo_xml=leitura), which is the distinction that matters to an agent choosing among the consultar_*/saldo siblings.

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 states the preconditions clearly: an access key is required, a plan or extra credits is needed, and execution only happens after the user accepts the cost via confirmo_custo. It does not name a sibling alternative or say when NOT to use it, but no sibling in the list performs an XML download, so the practical gap is small.

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.