Skip to main content
Glama

Registrar evento (bpeRecepcaoEvento)

bpe_registrar_evento

Registers BP-e cancellation, non-boarding, or seat-change events by building the event ID, signing event data, and submitting signed XML to SEFAZ.

Instructions

Registra Cancelamento (110111), Não Embarque (110115) ou Alteração de Poltrona (110116). Monta Id = ID+tpEvento+chBPe+nSeqEvento, assina infEvento e envia XML puro.

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": {
      "tpEvento": "<tpEvento>",
      "chBPe": "<chBPe>",
      "nProt": "<nProt>"
    },
    "name": "bpe_registrar_evento"
  }
}

Input Schema

NameRequiredDescriptionDefault
cnpjNoCNPJ do autor (padrão: BPE_CNPJ_EMITENTE ou CNPJ da chave)
chBPeYes
nProtYesProtocolo de autorização do BP-e
xJustNoObrigatório para 110111 e 110115
dhEventoNo
poltronaNoObrigatório para 110116
tpEventoYes
nSeqEventoNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description usefully discloses that it builds the event Id, signs infEvento, and sends raw XML. However, it omits side effects, idempotency, authorization prerequisites, error behavior, and what a successful registration returns.

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?

The description is two tight sentences, front-loaded with the supported event types and followed by the key implementation behavior. Every phrase carries information and there is no redundant wording.

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?

For a mutation tool with no annotations and no output schema, the description covers the core flow but leaves out important operational context such as required prior authorization, return values, and failure handling. It is adequate for identifying the tool but not fully complete for safe invocation.

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?

The description adds meaning by explaining the Id composition involving tpEvento, chBPe, and nSeqEvento, and by naming the event types. With 50% schema description coverage, it still does not compensate for all parameter semantics, particularly around xJust, poltrona, nProt, and cnpj beyond what the schema already states.

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?

The description names a specific action and the three supported event types (110111, 110115, 110116), making the tool’s purpose clear. It does not explicitly contrast itself with sibling tools such as bpe_autorizar or the consultar tools, so it falls short of full sibling differentiation.

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?

Listing the supported event types implies when the tool applies, but there is no explicit guidance on prerequisites, when not to use it, or which sibling to use instead. For an event-registration tool, that leaves meaningful routing and readiness decisions unstated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.