Skip to main content
Glama

Vira – Create, Teach & Manage AI Behavior

retry_task_run

Retry a failed, blocked, or partial scoped TaskRun using its immutable plan and current state version. Use only after the preceding resource and authority prerequisites are satisfied; inspect the server receipt before continuing. Required fields: organizationId, projectId, environmentId, taskRunId, expectedVersion. The authenticated MCP session supplies the tenant scope; any supplied scope identifiers must match it. Unknown fields are rejected. This changes governed state and remains fail-closed behind server authorization and an auditable receipt.

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": {
      "taskRunId": "<taskRunId>",
      "expectedVersion": "<expectedVersion>"
    },
    "name": "retry_task_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectIdNoAuthenticated customer scope identifier; must match the API key scope and is never inferred from model text.
taskRunIdYesImmutable taskRunId reference used to bind this retry_task_run operation to the correct released or persisted resource.
environmentIdNoAuthenticated customer scope identifier; must match the API key scope and is never inferred from model text.
organizationIdNoAuthenticated customer scope identifier; must match the API key scope and is never inferred from model text.
expectedVersionYesCurrent persisted lifecycle version; required for optimistic concurrency and must be read immediately before the transition.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / environmentId / description
      Added value: +"Authenticated customer scope identifier; must match the API key scope and is never inferred from model text."
    • addedInput schema / properties / expectedVersion / description
      Added value: +"Current persisted lifecycle version; required for optimistic concurrency and must be read immediately before the transition."
    • addedInput schema / properties / organizationId / description
      Added value: +"Authenticated customer scope identifier; must match the API key scope and is never inferred from model text."
    • addedInput schema / properties / projectId / description
      Added value: +"Authenticated customer scope identifier; must match the API key scope and is never inferred from model text."
    • addedInput schema / properties / taskRunId / description
      Added value: +"Immutable taskRunId reference used to bind this retry_task_run operation to the correct released or persisted resource."
  2. First observed

TDQS

B3.3/5.0
Behavior4/5

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

Annotations already declare the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=false), so the bar is lower; the description still adds meaningful context: it mutates governed state, is fail-closed behind server authorization, emits an auditable receipt, and rejects unknown fields. It does not explain what a version conflict yields or why the operation is non-idempotent despite using expectedVersion.

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

Conciseness3/5

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

Front-loaded and terse, with the core action in the first clause and constraints following in a logical order. However, the enumerated 'Required fields' list duplicates the schema and is inaccurate, so a sentence that should earn its place instead adds noise and a wrong obligation.

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

Completeness3/5

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

For a governed-state mutation with no output schema, the description covers authorization, scope binding, and the existence of a receipt, which is substantial. It still leaves an agent without a usable success/criteria model: the nature of the receipt, conflict handling for expectedVersion, and the concrete prerequisites remain unspecified.

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

Parameters2/5

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

Schema coverage is 100%, so parameters are already documented in detail; the description's contribution is mostly restatement ('The authenticated MCP session supplies the tenant scope; any supplied scope identifiers must match it' mirrors the schema's scope wording). Worse, it asserts 'Required fields: organizationId, projectId, environmentId, taskRunId, expectedVersion' while the schema marks only taskRunId and expectedVersion as required, which can mislead an agent about validation.

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 concrete verb and resource plus the eligible states ('failed, blocked, or partial scoped TaskRun') and the mechanism ('immutable plan and current state version'), which is far more specific than a tautology. It does not name the sibling tools it differs from (cancel_task_run, continue_task_run, resolve_task_run), so an agent must infer the boundary itself.

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?

There is a real precondition ('Use only after the preceding resource and authority prerequisites are satisfied') and a post-step ('inspect the server receipt'), so usage context is implied rather than absent. But 'preceding resource and authority prerequisites' is circular and never defined, and no alternative tool is named for the adjacent cases (continue vs. resolve vs. retry).

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