Skip to main content
Glama

Retry a build

retry_build

Retry a failed build using the same spec (story, acceptance criteria, stack, existing files).

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": {
      "buildId": "<buildId>"
    },
    "name": "retry_build"
  }
}

Input Schema

NameRequiredDescriptionDefault
buildIdYesID of the failed build to retry.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only but non-destructive operation, so the safety bar is partly covered. The description usefully adds that the spec and existing files are reused rather than regenerated, but says nothing about whether a new build ID is produced, whether prior artifacts are overwritten, or what happens if the given build is not in a failed state.

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?

One sentence, front-loaded with the action, and the parenthetical enumerates the reused spec components without padding. Nothing is wasted and nothing essential to the action is buried.

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

Completeness4/5

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

For a one-parameter, non-destructive operation with annotations covering safety and a fully documented schema, the definition supplies what an agent needs to invoke it. The only loose end is the downstream consequence (presumably a new build that must be tracked or streamed), which is minor here.

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% for the single buildId parameter, so the baseline is 3. The description adds one nuance beyond the schema: the ID should refer to a *failed* build, which constrains valid inputs.

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?

States a specific verb and resource (retry a build) and narrows the scope to failed builds, plus spells out what 'same spec' means (story, acceptance criteria, stack, existing files). That spec-reuse clause implicitly separates it from build_from_spec, though no sibling is named explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The trigger condition is clear (only retry a *failed* build), which is real guidance. It does not state what to do instead when the build succeeded, when the spec should change (build_from_spec), or how to check build status first (get_build), leaving the agent to infer alternatives.

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