Skip to main content
Glama

Change a workflow step

edit_step
Idempotent

Change one step: its name, settings (only the fields passed change; for an app step, integration_arguments are merged and null removes one), its messages (prompt steps; they replace the old ones), its app action, or the agent an agent step keeps on the step (agent changes only the fields passed; new_agent replaces it; settings.agent_id switches to a saved agent). Read it with get_step first. Start inputs are changed with update_workflow. The change is saved as a version: the answer's undo.version_id restores the steps from before it.

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": "edit_step"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
agentNoAgent steps that keep their agent on the step (get_step shows it under agent): the fields to change; the rest stay. Same fields as new_agent.
step_idYesThe step id, e.g. "step_2".
messagesNo
settingsNoField names and new values (get_step_type).
new_agentNoAgent steps only: the agent this step uses, kept on the step and not saved in the agents library (use this for an agent only this workflow needs; use settings.agent_id for an existing agent from search_agents, not both). Hosted research tools only (enabled_mcp_tools); an agent that needs a connected app, knowledge base or sub-agent must be a saved agent. The person can save it as a real agent later with Edit agent in the editor.
app_actionNoA different action of the same app (search_actions).
workflow_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / agent
      Added value: +{
      +  "additionalProperties": true,
      +  "description": "Agent steps that keep their agent on the step (get_step shows it under agent): the fields to change; the rest stay. Same fields as new_agent.",
      +  "type": "object"
      +}
    • addedInput schema / properties / new_agent
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Agent steps only: the agent this step uses, kept on the step and not saved in the agents library (use this for an agent only this workflow needs; use settings.agent_id for an existing agent from search_agents, not both). Hosted research tools only (enabled_mcp_tools); an agent that needs a connected app, knowledge base or sub-agent must be a saved agent. The person can save it as a real agent later with Edit agent in the editor.",
      +  "properties": {
      +    "description": {
      +      "type": "string"
      +    },
      +    "enabled_mcp_tools": {
      +      "description": "Hosted research tool keys, e.g. perplexity_search_api, gpt_search, anthropic_web_search, google_search, dataforseo.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "instruction_prompt": {
      +      "type": "string"
      +    },
      +    "llm_model": {
      +      "description": "From list_models.",
      +      "type": "string"
      +    },
      +    "max_token": {
      +      "minimum": 4000,
      +      "type": "integer"
      +    },
      +    "max_tool_calls": {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "name": {
      +      "type": "string"
      +    },
      +    "reasoning_effort": {
      +      "type": "string"
      +    },
      +    "temperature": {
      +      "type": "number"
      +    },
      +    "tool_choice": {
      +      "enum": [
      +        "none",
      +        "auto",
      +        "required"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "instruction_prompt",
      +    "llm_model"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations declare this is a non-read-only but non-destructive, idempotent mutation; the description goes well beyond that by disclosing patch semantics (only passed fields change), null-based removal for integration_arguments, replacement (not append) semantics for messages, and versioning with an undo path via undo.version_id. The only gap is that it does not mention authorization requirements or how the rest of the response is shaped, but the mutation contract itself is unusually well disclosed.

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?

It is front-loaded with the verb and resource and every sentence carries distinct information (purpose, merge rules, prerequisite, sibling routing, undo). The first sentence is very heavily nested with parentheticals, which makes it dense to parse, but nothing is redundant.

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 an 8-parameter mutation tool with nested objects and no output schema, the description covers the mutation semantics, prerequisites, sibling routing, and even the one return field an agent needs (undo.version_id). It stops short of describing the full response shape or permission requirements, which is a minor gap given the depth elsewhere.

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

Parameters5/5

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

With schema coverage at 63% and nested objects present, the description carries real weight: it explains that settings is a partial update and that integration_arguments merge with null deleting an entry, that messages replace existing ones, and it disambiguates the three agent paths (agent for partial edits, new_agent for replacement, settings.agent_id for a saved agent). These merge/replace rules are semantic behavior the schema does not encode.

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?

The description opens with a specific verb and resource ('Change one step') and then enumerates exactly which sub-resources can be changed (name, settings, messages, app action, agent). It explicitly distinguishes itself from siblings by naming get_step for reading and update_workflow for start inputs, so an agent can route correctly without opening another 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?

It gives an explicit prerequisite ('Read it with get_step first') and an explicit exclusion with the correct alternative ('Start inputs are changed with update_workflow'). It also resolves an in-tool choice, noting that new_agent and settings.agent_id are mutually exclusive ('not both'), which is exactly the kind of when-to-use guidance that prevents bad calls.

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