Skip to main content
Glama

acr_replay_step

Replay a single failed or revised agent step with prior context restored, optionally substituting a new prompt or model to test the change.

Instructions

Reconstitute prior context and re-execute a single failed or revised step in Cursor / IDE.

Args: run_id: The UUID or string ID of the agent run. span_id: The specific span to replay. updated_prompt: Optional revised prompt or instructions to substitute for this step. updated_model: Optional alternative LLM model to test for this step.

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": {
      "run_id": "<run_id>",
      "span_id": "<span_id>"
    },
    "name": "acr_replay_step"
  }
}

Input Schema

NameRequiredDescriptionDefault
run_idYes
span_idYes
updated_modelNo
updated_promptNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It discloses that the tool re-executes a step, implying an LLM call and possible cost, but says nothing about whether the original run/trace is mutated or a new run is created, whether re-execution is idempotent, or what permissions are needed. For an execution-triggering tool this is a significant gap.

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?

The purpose sentence is front-loaded and the Args list is compact, with each line earning its place given the empty schema descriptions. No filler or redundant restatement of the tool name. The indented Args formatting is slightly awkward but not wasteful.

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

Completeness2/5

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

An output schema exists, so return values need not be explained. But for a tool that re-executes a step with an alternative model, the description omits side effects, cost implications, and whether the original trace is preserved — exactly the information an agent needs before calling it, with no annotations to fall back on.

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 0%, so the Args block is doing real work: it defines all four parameters, and 'updated_model: optional alternative LLM model to test for this step' adds genuine meaning beyond the property name. Still, 'run_id' is only described as 'UUID or string ID' and 'span_id' as 'the specific span', leaving format and provenance unclear.

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?

The description names a specific verb and resource: 're-execute a single failed or revised step' with 'reconstitute prior context', scoped to Cursor/IDE. That is far more informative than the tool name alone. It stops short of differentiating itself from nearby siblings such as acr_diagnose_failure or acr_get_run_trace, so it lands at 4 rather than 5.

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?

Usage is implied by 'a single failed or revised step' and the optional 'updated_prompt'/'updated_model' args, which suggest the retry-with-changes scenario. However, there is no explicit statement of when to pick this over acr_diagnose_failure, what prerequisites exist (e.g. a completed run), or when not to use it.

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