Skip to main content
Glama

explain_error

Explain a corsproxy.dev reason key (the code in a rejected response, e.g. API_KEY_ORIGIN_NOT_ALLOWED): status, meaning, and fix.

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": {
      "code": "<code>"
    },
    "name": "explain_error"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesReason key, e.g. RATE_LIMIT_EXCEEDED.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the behavioral burden. It does disclose the response content (status, meaning, and fix), which is the key behavioral fact, but says nothing about whether the lookup is static/deterministic, how unrecognized codes are handled, or that it has no side effects.

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?

One sentence, front-loaded with the action and resource, with the example in a parenthetical where it does not interrupt the main clause. Nothing is wasted and nothing essential is deferred.

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 one-parameter lookup with no output schema, the description tells the agent what goes in and what comes back (status, meaning, fix), which is nearly sufficient. The only real gap is behavior on unknown or malformed codes.

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 the schema already gives an example value, so the baseline is 3. The description adds modest meaning by identifying where the `code` comes from (a rejected response) and supplying a second example, but adds no format or casing rules.

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?

Uses a specific verb ('Explain') on a specific resource ('a corsproxy.dev reason key') and confirms the source of that key as 'the `code` in a rejected response', with two concrete example keys. It is clearly distinguishable from a fetch or quota tool, though it never explicitly contrasts itself with the siblings.

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 trigger is stated concretely: use this on a code found in a rejected response. That gives an agent a clear context for invocation, but there is no explicit when-not guidance and no mention of what to do for codes that aren't from a rejection (e.g. a typo'd or unknown key).

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