Skip to main content
Glama

Consultar status do serviço (bpeStatusServicoBP)

bpe_consultar_status

Queries the BP-e authorizer status for a Brazilian state (UF) to show whether it is operational or paralyzed, respecting the 3-minute minimum interval.

Instructions

Consulta o status do autorizador (107 em operação, 108/109 paralisado). Respeita intervalo mínimo de 3 minutos. Em modo mock retorna resposta simulada e o XML que seria enviado.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "bpe_consultar_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
ufNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does a fair job: it discloses the rate limit (3-minute interval), that mock mode returns a simulated response plus the XML that would be sent, and how to interpret status codes. It omits what happens if the interval is violated (error vs. cached result) and any auth/certificate requirement.

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 with zero filler; the core purpose comes first, followed by the rate-limit constraint and the mock-mode caveat. Every sentence carries distinct information.

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 simple one-parameter read tool with no output schema, the status-code semantics and rate limit make it largely usable, but the undefined `uf` parameter and the unspecified consequence of exceeding the interval leave real gaps.

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 the single optional parameter `uf`, and the description never mentions it at all — no indication whether it narrows the query to a specific state's authorizer or what the two-character code should be. With low coverage, the description was expected to compensate 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 specific verb and resource ("Consulta o status do autorizador") and even enumerates the meaning of the returned status codes (107/108/109). It does not explicitly distinguish itself from the sibling bpe_consultar_situacao, which an agent could reasonably confuse with a status query.

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?

Gives an operational rule — the 3-minute minimum interval — which implicitly tells the agent not to poll rapidly, and notes the mock-mode behavior. However, there is no explicit statement of when to prefer this over sibling queries such as bpe_consultar_situacao, and no exclusions or prerequisites.

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