Skip to main content
Glama

Search traps by error text

search_traps
Read-onlyIdempotent

Call when a call to a third-party service fails or behaves unexpectedly. Paste the error text. Returns up to 5 verified traps whose symptoms match it, closest first, each with cause and fix. Returns nothing when no trap matches closely. Use lookup_traps instead before writing code.

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": {
      "error_text": "<error_text>"
    },
    "name": "search_traps"
  }
}

Input Schema

NameRequiredDescriptionDefault
providerNoOptional service slug or name to search within, e.g. "stripe". Omit to search every provider.
error_textYesThe error message or unexpected output, as shown. Known key and secret formats are redacted before matching.
include_staleNoAlso match traps not re-checked recently. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / error_text / description
      Added value: +"The error message or unexpected output, as shown. Known key and secret formats are redacted before matching."
    • addedInput schema / properties / include_stale / description
      Added value: +"Also match traps not re-checked recently. Default false."
    • addedInput schema / properties / provider / description
      Added value: +"Optional service slug or name to search within, e.g. \"stripe\". Omit to search every provider."
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint=false, so safety is covered. The description adds genuinely useful behavior beyond that: a capped result count of 5, closest-first ordering, cause/fix payload shape, and the fact that an empty result is a normal outcome rather than an error. It stops short of noting cost or latency, so not a 5.

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?

Four short sentences, front-loaded with the trigger, then the return contract, then the alternative. Every sentence carries distinct information and none restates the name or title.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, yet the description fully covers the return shape, ordering, cap, and empty-result case, and it routes to the correct sibling. An agent has everything needed to decide to call it and interpret the response.

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 description coverage is 100%, so error_text, provider, and include_stale are already documented with examples and defaults. The description adds only the matching intent ('whose symptoms match it'), which is helpful framing but not new per-parameter semantics. Baseline 3 is appropriate.

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 and resource (search traps by error text) and describes exactly what comes back: up to 5 verified traps whose symptoms match, closest first, each with cause and fix. It also names the sibling lookup_traps, so an agent can distinguish it without opening either 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?

Gives an explicit trigger (a third-party call fails or behaves unexpectedly), an explicit alternative for a different situation (use lookup_traps instead before writing code), and the no-match condition. The when/when-not routing is fully spelled out.

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.