Explicar un error
explain_errorQué significa un código de error de la API (el error.code de la respuesta, por ejemplo issuer_required) y cómo resolverlo.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | El error.code de la respuesta. |
explain_errorQué significa un código de error de la API (el error.code de la respuesta, por ejemplo issuer_required) y cómo resolverlo.
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | El error.code de la respuesta. |
Changes observed during successful MCP inspections.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds that it also explains how to fix the error (not just the meaning), but does not describe the shape of the answer or whether it includes docs links.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single, front-loaded sentence that names the input, gives an example, and states the outcome. No filler.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a one-parameter read-only lookup with no output schema, the description covers what the tool takes and what kind of answer to expect (meaning plus resolution). Return details are left implicit, but nothing needed to call it is missing.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so the baseline is 3; the description earns a bump by clarifying the parameter's source (the error.code of the response) and giving a concrete example value, issuer_required, which shows the expected format.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb-like intent (explain what an error code means) and the resource (API error.code), plus the resolution angle. It is clearly distinct from siblings like call_api or search_docs, though it doesn't explicitly name them.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The example '(el error.code de la respuesta)' implies it is used after receiving an API error, but there is no explicit 'use when' or 'use instead of search_docs' guidance. Usage is inferable rather than stated.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.