Skip to main content
Glama

Remove a workflow step

remove_step
Idempotent

Remove one step (a condition or loop goes with the steps inside it). Refused while another step reads its output. The change is saved as a version: the answer's undo.version_id brings it back.

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": {
      "workflow_id": "<workflow_id>",
      "step_id": "<step_id>"
    },
    "name": "remove_step"
  }
}

Input Schema

NameRequiredDescriptionDefault
step_idYes
workflow_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Beyond the annotations (readOnly=false, idempotent=true, destructive=false), it discloses three behaviors the agent could not otherwise infer: cascade deletion of nested steps inside a condition/loop, a runtime refusal condition tied to downstream readers, and versioned persistence with an undo.version_id to restore. The undo detail also reconciles why destructiveHint is false despite a removal.

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?

Three short sentences, each carrying distinct information: scope/cascade, refusal precondition, versioning/undo. The most decision-relevant facts come first with no filler.

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 two-parameter mutation with no output schema, the description covers cascade effects, failure conditions, and recoverability well. It leaves out how errors surface and what identifier the undo reference is tied to, but nothing essential to invoking it correctly is missing.

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 description coverage is 0% and both parameters are required, so the schema supplies names only. The description never explains workflow_id or step_id, nor what format an ID takes; it only refers abstractly to "its output." The description does not compensate for the coverage gap.

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?

Specific verb ("Remove") plus specific resource ("one step"), with a parenthetical clarifying that removing a condition or loop also removes its nested steps. That cascade note makes the tool unambiguous against siblings like edit_step or remove_knowledge_source, 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 Guidelines4/5

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

The description gives a concrete precondition that selects against use: the call is refused while another step reads the removed step's output. That is real when-not guidance rather than vague context, but it says nothing about choosing between remove_step and alternatives such as edit_step or archive_workflow.

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