Skip to main content
Glama

lookup_api_error

Find code-level troubleshooting guides for LLM API errors by searching an error message or HTTP status code, returning clean Markdown fixes for Claude, OpenAI, Gemini, and related tools.

Instructions

Look up a code-level API troubleshooting guide (31 guides for Claude, OpenAI, Gemini, Claude Code, Codex) and return clean Markdown.

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": {
      "query": "<query>"
    },
    "name": "lookup_api_error"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoen
queryYesError message snippet or HTTP status code (e.g. '529 overloaded', 'temperature 400', '429 rate_limit_exceeded').

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the return format ('clean Markdown') and corpus scope. However, it says nothing about behavior when no guide matches, rate limits, or whether results are cached/static, leaving meaningful behavioral gaps for an unannotated tool.

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?

A single front-loaded sentence that packs purpose, corpus size, supported providers, and return format with no filler. Nothing could be trimmed without losing information.

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?

Since there is no output schema, the description usefully states the return type (Markdown). For a simple two-parameter lookup tool it is nearly complete, with only minor gaps around no-match behavior and language handling.

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 50%: the critical 'query' parameter is well documented in the schema itself, and 'lang' is self-explanatory via its enum and 'en' default. The description adds no parameter meaning beyond this, which fits the baseline for a half-covered two-parameter schema.

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 specifies a clear verb+resource ('Look up a code-level API troubleshooting guide') and scopes the corpus to 31 guides across five named providers, which is enough to tell it apart from benchmark/setup/gateway siblings. It stops short of explicitly naming a sibling it is not, keeping it at 4 rather than 5.

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 only implied: an agent can infer this is for diagnosing API errors, and the schema examples ('529 overloaded', '429 rate_limit_exceeded') reinforce that context. There is no explicit when-to-use/when-not guidance and no mention of alternatives for non-error questions.

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