Skip to main content
Glama

undo_step

Resets a workflow step and every downstream dependent step, clearing completion, skip, and failure statuses plus results to enable rework.

Instructions

撤销某步骤及其全部下游(传递依赖)的完成/跳过/失败状态与结果,用于返工。

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": {
      "id": "<id>",
      "stepId": "<stepId>"
    },
    "name": "undo_step"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
stepIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does usefully disclose the cascade behavior: downstream steps with transitive dependencies are also reset, and their results are wiped. That is the key non-obvious trait. But it omits irreversibility, whether confirmation is required, permission needs, and what happens to steps already in a terminal state — significant gaps for what is effectively a broad destructive mutation.

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?

A single compact sentence that front-loads the action and scope, then ends with the use case. No filler or redundancy.

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 cascading undo with no annotations, no output schema, and completely undocumented parameters, the description should say more about safety and the two identifiers. It adequately covers scope and intent but leaves the invocation details underspecified.

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 0%, so the description must compensate, and it does not. It never explains the two required string params, and in particular never disambiguates 'id' from 'stepId' — an agent must guess whether 'id' is the workflow, run, or parent identifier. The description only implies that 'stepId' names the target step.

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 gives a specific verb (撤销 / undo), a specific resource (某步骤 / a step), and states the precise scope (the step plus all transitively dependent downstream steps) and what is reset (completion/skip/failure status and results). This clearly distinguishes it from complete_step and skip_step, though it does not name a sibling 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 closing phrase '用于返工' (used for rework) implies the use case, so the intended situation is inferable. However, it says nothing about when NOT to use it, no prerequisites, no mention of a safer alternative for undoing a single step, and no warning that downstream work is also destroyed.

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