Skip to main content
Glama

Rescue a failing API call

rescue
Read-onlyIdempotent

Live API errors: paste the exact error (429, 402, 529, insufficient_quota, model_not_found) and provider id. Returns cause, fix and fallback, or checks to run. First pick: decide. Stack changes since last cursor: session_brief. Quotes/compare/audit/freshness/outcomes: depot.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "rescue"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoError text, status or SKU
skuNo
jtbdNo
statusNo
providerNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • removedInput schema / properties / jtbd / description
      Removed value: -"Job id"
    • removedInput schema / properties / provider / description
      Removed value: -"Provider id that failed"
    • removedInput schema / properties / sku / description
      Removed value: -"Model or SKU id"
    • removedInput schema / properties / status / description
      Removed value: -"HTTP status, e.g. 429"
  2. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent and non-destructive behavior, so the description's addition of the return contract (cause, fix, fallback, or checks to run) is the useful extra — especially valuable since there is no output schema. It says nothing about rate limits or failure modes of the tool itself, but the safety profile is fully covered by annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is short with no filler sentences, and routing is front-loaded after the core purpose. However the telegraphic keyword style ('Quotes/compare/audit/freshness/outcomes: depot') is compressed to the point of being hard to parse, and routes to siblings occupy roughly half the text.

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

Completeness3/5

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

The return behavior and sibling routing make it usable, and with no required parameters there is no prerequisite flow to describe. Still, a 5-parameter tool with 20% schema coverage and no output schema leaves sku/jtbd/status and the expected input shape underspecified.

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 only 20% across 5 parameters, so the description has to compensate. It clarifies q ('paste the exact error') with concrete example values and identifies provider id, but sku, jtbd and status are left entirely unexplained in both schema and description.

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 states a concrete job: diagnose live API errors (429, 402, 529, insufficient_quota, model_not_found) and return cause, fix and fallback or checks to run. That is specific enough to distinguish it from siblings decide, session_brief and depot, though the opening is a fragment ('Live API errors:') rather than a clean verb+resource.

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?

It gives explicit routing: 'First pick: decide', stack changes go to session_brief, and quotes/compare/audit/freshness/outcomes go to depot. That leaves rescue's own niche (live API errors) clear, but there is no explicit statement of when rescue should NOT be used beyond the 'decide first' rule.

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