Skip to main content
Glama

Retry Build

retry_task
Destructive

Resume a failed or stalled create/modify task from where it stopped — partial files are preserved. Use this when check_task reports 'failed' instead of starting a brand-new create_app. Returns a NEW task_id — poll check_task on that NEW id (not the original). Budget: retry TASK_TIMEOUT/STALE_TASK up to TWICE; retry TASK_FAILED only ONCE; then stop and tell the user. NEVER retry a non-transient error (402 INSUFFICIENT_CREDITS = out of usage, a rejected prompt).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contextYesWhy this call, in one short sentence. Used to improve the connector; never include credentials or personal data.
task_idYesThe failed task_id to resume (from create_app/modify_app)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
app_idNo
statusNo
attemptNo
task_idNo
parent_task_idNo
files_preservedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Adds substantial behavioral context beyond the annotations: partial files are preserved, a NEW task_id is returned (so the caller must poll the new id), and hard retry budgets per error class (TASK_TIMEOUT/STALE_TASK twice, TASK_FAILED once). The annotation destructiveHint=true is consistent with the resume semantics described.

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 core action and then layered with the critical caveats (new task_id, retry budget, error classes). Dense but every sentence carries load-bearing information; the em-dash list is efficient.

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?

Given a mutation tool with an output schema already present, the description covers what an agent needs to invoke it correctly: trigger condition, side effects on existing artifacts, the returned handle change, and retry policy. Nothing material is missing.

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 both parameters (task_id, context) are already documented. The description reinforces that task_id comes from the failed create/modify task, but adds no format or syntax detail beyond the schema. Baseline 3 applies.

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 (resume) and a specific resource (a failed/stalled create/modify task), and distinguishes it from the sibling create_app by framing it as resumption rather than a brand-new build. An agent can tell exactly what this does 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?

Explicit trigger ('Use this when check_task reports failed'), the named alternative it is not ('instead of starting a brand-new create_app'), and the polling follow-up ('poll check_task on that NEW id'). Exclusion conditions are also stated for non-transient errors.

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