Skip to main content
Glama

Try a task's preview again

retry_preview

Tries a task's preview again when it stopped because of a problem on CodeGene's side (get_task or get_preview_links shows it stopped). It starts the same change again as it is, so nothing new is built or charged; CodeGene also tries again by itself for a day. Answers what happened in plain words: trying again (the preview usually shows up within a few minutes), nothing to try again, or not now and why. A preview that stopped because of something in the change itself needs a new request_change instead.

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": {
      "task_id": "<task_id>",
      "reason": "<reason>"
    },
    "name": "retry_preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYesWhy, in a sentence: kept in the workspace's activity.
task_idYesThe task whose preview to try again (list_tasks gives ids).
workspace_idNoWorkspace id from whoami; omit when there is one.

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?

Beyond the annotations it discloses the key behavioral facts for a retry trigger: nothing new is built or charged, the same change is re-run as-is, the platform retries autonomously for a day, and the three plain-word outcome classes ('trying again', 'nothing to try again', 'not now and why'). This is exactly the cost/idempotency context annotations cannot convey.

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 action and precondition, then the cost implication, then the alternative. Dense and free of filler, though the final sentence on outcome classes slightly overlaps the alternative-routing sentence.

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 compensates by forecasting the possible responses and their plain-word framing. For a mutation-ish retry trigger with three simple params, nothing an agent needs to call it correctly 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 coverage is 100% and the schema already documents all three parameters (reason logged in activity, task ids from list_tasks, workspace from whoami). The description adds essentially no parameter-level detail beyond that, so the 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 and resource ('tries a task's preview again') plus the exact precondition ('stopped because of a problem on CodeGene's side'). It also names the sibling that handles the other failure mode (request_change), so an agent can distinguish it without opening schemas.

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 explicit when-to-use criteria (the preview stopped due to a platform-side problem, provable via get_task or get_preview_links), an exclusion (failures caused by the change itself need request_change), and a note that CodeGene auto-retries for a day, which affects whether calling is worthwhile.

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