Skip to main content
Glama

Retry failed work

retry_failures

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. Cap 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. Cap 50 per call. Returns { retried, skipped, nextCursor }. Writes an admin event failures.retried. Hosted non-admins are refused.

Input Schema

NameRequiredDescriptionDefault
qNoSame error substring as list_failures
idsNoRetry these rows instead of the current filter; omitted = every match of q/stage/since
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. Addedv0.17.0

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral burden and does so well. It discloses admin-only access, per-item transactions so live-job caps still apply, the 50-item cap, the response shape, the admin event write, and that non-admins are refused.

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?

The description is front-loaded with the admin-only constraint and action, then quickly covers lifecycle behavior, caps, return shape, event logging, and refusal behavior. Every sentence contributes useful context without waste.

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?

Although there is no output schema, the description supplies the return object shape. Combined with full schema parameter coverage and explicit auth, lifecycle, transaction, cap, and event behavior, it is complete enough for an agent to call this mutation tool correctly.

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 the input schema already documents q, ids, limit, since, and stage. The description reinforces the overall filtering model and cap but does not add parameter-level meaning beyond what the schema provides.

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 states a specific verb and resource: retrying matching failed projects and clips. It distinguishes itself from sibling lifecycle operations by saying it goes through the same lifecycle as retry_project / rerender_clip and is never a raw queue poke.

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 clear usage constraints: admins only, hosted non-admins are refused, and each call is capped at 50 items. It also ties its q/stage/since filters to list_failures, but it does not explicitly state when to choose this bulk retry tool over the single-item retry_project or rerender_clip alternatives.

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