Skip to main content
Glama

Retry failed work

retry_failures

Retry failed projects and clips through the same lifecycle as normal retries, filtered by stage, cause, or IDs. Skips input and quota failures unless specified, capped at 50 per call.

Instructions

Admins only: retry matching failed projects and clips through the same lifecycle as retry_project / rerender_clip (never a raw queue poke). Each item is its own transaction so live-job caps still apply. By filter it retries platform failures only unless cause is given (input and quota failures fail the same way again); ids retries exactly those rows. Cap 50 per call. Returns { retried, skipped, nextCursor }. Writes an admin event failures.retried. Hosted non-admins are refused.

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": "retry_failures"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoSame error substring as list_failures
idsNoRetry these rows instead of the current filter; omitted = every match of q/stage/since
causeNoSame cause filter as list_failures; default platform
limitNoMax items to retry this call, default 50
sinceNoSame since filter as list_failures
stageNoSame stage filter as list_failures

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.51.1
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changedv0.43.0
    • addedInput schema / properties / cause
      Added value: +{
      +  "description": "Same cause filter as list_failures; default platform",
      +  "enum": [
      +    "platform",
      +    "input",
      +    "quota"
      +  ],
      +  "type": "string"
      +}
  3. Addedv0.17.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations carry only destructiveHint=false, so the description does the heavy lifting and does it well: admin-only access with hosted non-admins refused, per-item transactions so live-job caps still apply, a 50-item cap, a side effect (writes an admin event failures.retried), and the default cause behavior. That is exactly the permission, batching, and side-effect context annotations cannot express.

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

Conciseness4/5

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

Front-loaded with the most decision-relevant fact ('Admins only') and packs auth, lifecycle, transaction, filter, cap, return shape, and side effect into five dense sentences. Every sentence carries information, though the parentheticals and semicolon-chained clauses make it read more like compressed notes than clean prose.

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?

With no output schema, the description supplies the return shape ({ retried, skipped, nextCursor }) and the pagination handle. Combined with authorization rules, retry-cap semantics, default cause behavior, and the emitted admin event, an agent has everything needed to call it correctly and interpret results.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description adds real semantics on top: it explains the ids-vs-filter precedence ('instead of the current filter'), that q/cause/stage/since mirror list_failures, and what cause means operationally. It stops short of elaborating enum values or the kind=project vs kind=clip lifecycle difference beyond the schema's own 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?

States a specific verb and resource (retry matching failed projects and clips) and immediately scopes it against siblings: it runs 'through the same lifecycle as retry_project / rerender_clip (never a raw queue poke)' but is the bulk/filter-driven variant. An agent can distinguish it from the single-item retry tools without opening any schema.

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?

Gives concrete when-to-use routing: 'by filter' retries platform failures only, 'ids retries exactly those rows', and omitted ids means every match of q/stage/since. It also warns when not to bother (input and quota failures fail the same way again unless cause is given). Only gap is no guidance on iterating with nextCursor across repeated calls, so it falls short of a full 5.

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

Deploy Server

Other Tools