Skip to main content
Glama

Confirmar e emitir a NFS-e

confirmar_emissao
Destructive

Emite de verdade a nota da prévia: documento fiscal com valor legal, que só se desfaz por cancelamento. Idempotente: o mesmo token nunca emite duas vezes. Autorizada, devolve danfse_url (PDF) e xml_url, links do painel que abrem no navegador do usuário logado.

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": {
      "confirmacao_token": "<confirmacao_token>"
    },
    "name": "confirmar_emissao"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmacao_tokenYesToken devolvido por emitir_nota.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior1/5

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

The description asserts 'Idempotente: o mesmo token nunca emite duas vezes', while the annotations declare idempotentHint=false. That is a direct conflict on the repeated-same-arguments scenario, and it is exactly the property an agent would rely on to retry safely. The remaining context (irreversible except by cancellation, browser-openable links) is useful but does not cure the contradiction.

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?

Three short sentences, front-loaded with the highest-stakes fact (this is a real, legally binding document), then the token guarantee, then the return payload. Nothing is padded or repeated.

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 mutation with no output schema, it covers the important gaps: legal consequence, undo path via cancellation, and the two returned URLs and how they behave for the logged-in user. The one thing it gets wrong is the idempotency claim, which is the most safety-relevant detail.

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 earns above it by explaining the token's behavioral guarantee (the same token will not produce a second emission) rather than just its provenance. That is meaning the schema does not carry.

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 concrete verb and resource ('Emite de verdade a nota da prévia') and immediately contrasts it with the preview step that precedes it, so an agent can distinguish this from emitir_nota without opening either schema. It also pins the legal nature of the artifact.

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?

The phrase 'nota da prévia' plus the token requirement makes the intended flow clear: this is the final step after a preview, and the only way back is cancellation. It does not explicitly name cancelar_nota as the alternative for undoing an emission, but the condition for use is unambiguous.

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