Skip to main content
Glama
grandMA2 MCP
by drohi-r

retry_failed_steps

Re-run a prior task session from its stored original goal to retry all failed steps, then return the retry outcome and new session ID.

Instructions

    Retry all failed steps from a prior task session.

    Loads the session from long-term memory, retrieves its original goal,
    and re-executes the task via run_task. Returns the retry outcome.

    This is a full re-run of the original goal, not a selective step replay.
    For selective step control, use decompose_task + run_task directly.

    Args:
        session_id: 8-char session ID from list_agent_sessions.

    Returns:
        str: JSON with retried, session_id, original_goal, new_session_id,
             failed_steps_before, outcome.
    

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": {
      "session_id": "<session_id>"
    },
    "name": "retry_failed_steps"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior4/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 well: it discloses that the session is loaded from long-term memory, that the original goal is retrieved and re-executed via run_task, and that the action is a full re-run rather than a selective replay — a meaningful caveat for an agent. It stops short of stating what happens when there are no failed steps, whether the original session is mutated, or any cost/latency implications, which keeps it from a 5.

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 the key disambiguation, then Args/Returns sections. Efficient overall, though the Returns block restates fields that an output schema already formalizes, which is mild redundancy rather than harm.

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 single-parameter re-execution tool this is nearly complete: purpose, scope caveat, alternative, input provenance, and outcome fields are all covered. Since an output schema exists, return values need not be explained, and the remaining gap is only edge-case behavior such as a session with no failed steps.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must compensate, and it does: it specifies the session_id is an 8-character ID sourced from list_agent_sessions. That adds both format and provenance beyond the bare 'string' schema. It does not describe validation or what happens with a malformed or unknown ID, but the essential semantic is supplied.

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 ('Retry all failed steps from a prior task session') and immediately clarifies the scope: a full re-run of the original goal rather than a selective step replay. This verb+resource+scope combination lets an agent distinguish it from decompose_task and run_task without opening any 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?

Explicitly routes the agent: use this tool for a full re-run, and use decompose_task + run_task directly for selective step control. It also tells the agent where the session_id comes from (list_agent_sessions), covering both the when-to-use and the input-provenance question.

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

Deploy Server

Other Tools