Skip to main content
Glama

Change automation steps

edit_automation
DestructiveIdempotent

Read or change the settings of the steps of one automation. Get its id from list_automations. mode "read" (default) returns how it starts, each step, and each field with its value. A field of a kind that can hold a secret, a connection, or a value the schema does not describe reads as "set" or "not set": its value stays in Taskade. To change fields, pass edits (step, field, new value) for fields with editable: true. mode "preview" shows each field before and after, with no change. Show that to the user. mode "apply" with confirm: true and the updatedAt of your read writes the change after the user says yes. If the automation changed after that read, the apply is refused as stale and nothing changes. The next run uses the change. It returns an undo call with the prior values, which is refused as stale after any later change. A change that leaves an On or a complete automation incomplete is refused. To add or remove steps, connect an account, change a hidden field, or pick a different start, open the automation in Taskade.

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": {
      "spaceId": "<spaceId>",
      "flowId": "<flowId>"
    },
    "name": "edit_automation"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo"read" (default), "preview" (check a change), or "apply" (write it)read
editsNoThe field changes, at most 20.
flowIdYesAutomation ID from `list_automations`
confirmNotrue with mode "apply" writes the change. Without it nothing changes.
spaceIdYesSpace ID
updatedAtNoThe `updatedAt` of your read. Required with mode "apply" and confirm: true. The change is refused if the automation changed after that read.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Beyond annotations (destructive=true, idempotent=true), the description discloses redaction behavior (secret/connection fields read as 'set' or 'not set'), optimistic-concurrency refusal on a stale updatedAt, refusal of changes that leave the automation incomplete, an undo handle that itself goes stale after later changes, and when the change takes effect ('the next run'). These are exactly the non-obvious traits an agent needs before writing.

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 definition is front-loaded with the core purpose, then walks modes in order (read → preview → apply) followed by refusal and undo semantics. It is dense and every sentence carries operational content, though the long unbroken prose block makes it slightly harder to scan than a bulleted mode list would be.

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

Completeness5/5

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

For a destructive, stateful write tool with no output schema, the description covers the entire lifecycle: discovery of ids, redacted reads, previewing, user confirmation, stale-write rejection, invariant enforcement, and the undo path. Nothing an agent needs to call it safely appears to be missing.

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 coverage is 100%, so the baseline is 3, but the description adds workflow meaning: edits only apply to fields marked `editable: true`, step/field identifiers come from the preceding read, and updatedAt must come from that same read (with the stale-refusal consequence spelled out). This gives the agent an operational sequence rather than just field glosses.

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 first sentence names a specific verb pair and resource with scope: 'read or change the settings of the steps of one automation.' It also bounds the tool by naming what it cannot do (add/remove steps, connect accounts, change hidden fields), which lets an agent distinguish it from list_automations and from the Taskade UI workflow without inspecting schemas.

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?

Each mode is given an explicit use case: read for inspection, preview to show the user a diff, apply with confirm plus updatedAt for the write. The description also states when NOT to use the tool ('To add or remove steps, connect an account, change a hidden field, or pick a different start, open the automation in Taskade') and directs the agent to list_automations for the required id.

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.