Skip to main content
Glama

corpusfetch_lookup_exception

Look up operational experience for an exact Python exception class (e.g., KeyError, TimeoutError, ConnectionError). Use when you encounter an unexpected runtime error and need an empirically verified boundary decision rather than a guess. Prefer corpusfetch_search when you have a symptom description but not an exact exception name.

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": {
      "exception_class": "<exception_class>"
    },
    "name": "corpusfetch_lookup_exception"
  }
}

Input Schema

NameRequiredDescriptionDefault
exception_classYesPython exception class, e.g. KeyError, TimeoutError, ValueError

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral burden. It does convey that results are 'operational experience' and 'empirically verified boundary decisions', implying a read-only lookup with curated data, but it never covers what happens for an unrecognized exception class, whether results can be empty, or any rate/availability limits.

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 the core action front-loaded, followed by usage condition and alternative routing. No filler or repetition beyond the illustrative exception names.

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 covers purpose, trigger, and sibling routing well. It only lightly characterizes the returned 'operational experience', leaving the result shape and unknown-input behavior to be discovered at call time.

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 single parameter already documents the expected format with examples. The description adds only the emphasis on 'exact' class names, which is useful but marginal beyond the schema text.

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?

The description names a specific verb and resource ('look up operational experience for an exact Python exception class') and gives representative inputs (KeyError, TimeoutError, ConnectionError). It also distinguishes itself from corpusfetch_search by the exact-name vs symptom distinction, so an agent can route without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the triggering situation ('unexpected runtime error' needing 'an empirically verified boundary decision rather than a guess') and names the alternative (corpusfetch_search) with the condition that selects it. The split between exact-name lookup and symptom-based search is completely explicit.

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