Skip to main content
Glama

BlockVectra Docs

Explain Error Code or Reason

explain_error
Read-only

Lookup error code, reason, or HTTP status in the official error reference catalog. Returns meaning, billing implications (whether the call was billed), retryability, retry delay, recommended agent action, and documentation URL.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeNoError code (e.g. -32600, -32005, -32020, or console code string like 'siwe_invalid').
langNoLanguage for explanations: 'en' for English or 'zh' for Chinese. Defaults to 'en'.
reasonNoError reason slug (e.g. 'invalid_request', 'key_rate_limit', 'insufficient_balance', 'not_found').
http_statusNoHTTP status code (e.g. 200, 400, 402, 404, 429, 500, 503).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
countNo
errorsYes
matchedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful behavioral context beyond that: it returns billing implications, retryability, retry delay, and a recommended agent action, which tells the agent why the call is worth making.

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?

Two tight sentences, front-loaded with the action and catalog, followed by the return payload. No filler or redundancy.

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?

The output schema covers return values, so the description need not enumerate them, and the read-only nature is annotated. The one omission is that with zero required parameters it never says whether code, reason, or http_status must be supplied (or whether multiple can be combined), which an agent needs to invoke correctly.

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 coverage is 100% and each parameter carries its own description with examples, so the schema does the heavy lifting. The description only restates the lookup keys and adds nothing about how to combine them or that at least one is needed; baseline 3 applies.

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 specific verb ('Lookup') and resource ('official error reference catalog') and names the three lookup keys (error code, reason, HTTP status), which clearly separates it from sibling doc/search/pricing tools.

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?

Usage is implied by the keys it accepts: call it when you have an error code, reason slug, or HTTP status to interpret. However, it never states when to prefer this over search_docs or read_doc, nor any exclusions, so guidance is only inferred.

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