Skip to main content
Glama
@omnidim-ai/mcp-server

@omnidim-ai/mcp-server

by Omnidim

editWorkflow

Destructive

Apply atomic add, update, move, delete, connect, or disconnect operations to a workflow draft using its current revision. Retry on revision conflicts and publish separately to make changes live.

Instructions

Change the draft with a list of ops.

Ops add, update, move or delete nodes, and connect or disconnect them. They apply all together or not at all. Send the revision from your last read. On 409 revision_conflict, read the workflow again and retry.

Secrets read back as ********. Send them back unchanged to keep the stored value. This edits the draft only. Use publishWorkflow to make it live.

(Tags: Workflows)

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>",
      "revision": "<revision>",
      "ops": "<ops>"
    },
    "name": "editWorkflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
opsYes
nameNoRename the workflow.
revisionYesThe `draft.revision` from your last `getWorkflow` or edit.
workflow_idYesId of the workflow.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.22.0
    • addedInput schema / properties / name
      Added value: +{
      +  "description": "Rename the workflow.",
      +  "type": "string"
      +}
    • addedInput schema / properties / ops
      Added value: +{
      +  "items": {
      +    "description": "One edit to the draft. Set `op` and the fields that op uses.\n\n| `op` | Fields | Effect |\n|---|---|---|\n| `add_node` | `id`, `type`, `label?`, `config?`, `after?`, `handle?`, `position?` | Adds a node. With `after`, it also connects it to that node (on output `handle`). |\n| `update_node` | `id`, `config?`, `label?` | Merges `config` keys into the node. A `null` value removes a key. |\n| `move_node` | `id`, `position` | Moves a node on the canvas. |\n| `delete_node` | `id` | Deletes a node and its edges. |\n| `connect` | `from`, `to`, `handle?` | Adds an edge. |\n| `disconnect` | `from`, `to`, `handle?` | Removes an edge. |\n",
      +    "properties": {
      +      "after": {
      +        "description": "`add_node`: id of the node to connect the new node to.",
      +        "type": "string"
      +      },
      +      "config": {
      +        "additionalProperties": true,
      +        "description": "`add_node`, `update_node`: the node's settings. The fields come from\n`getWorkflowNodeType`. Send a secret back as `********` to keep the\nstored value.\n",
      +        "type": "object"
      +      },
      +      "from": {
      +        "description": "`connect`, `disconnect`: id of the node the edge starts at.",
      +        "type": "string"
      +      },
      +      "handle": {
      +        "description": "`add_node`, `connect`, `disconnect`: the output of the source node. Omit for the default output.",
      +        "type": "string"
      +      },
      +      "id": {
      +        "description": "Node id. For `add_node`, lowercase letters, digits and underscores, starting with a letter. It must be new.",
      +        "type": "string"
      +      },
      +      "label": {
      +        "description": "`add_node`, `update_node`: the name shown on the canvas.",
      +        "type": "string"
      +      },
      +      "op": {
      +        "enum": [
      +          "add_node",
      +          "update_node",
      +          "move_node",
      +          "delete_node",
      +          "connect",
      +          "disconnect"
      +        ],
      +        "type": "string"
      +      },
      +      "position": {
      +        "description": "`add_node`, `move_node`: canvas position. `add_node` places the node for you if you omit it.",
      +        "properties": {
      +          "x": {
      +            "type": "number"
      +          },
      +          "y": {
      +            "type": "number"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "to": {
      +        "description": "`connect`, `disconnect`: id of the node the edge ends at.",
      +        "type": "string"
      +      },
      +      "type": {
      +        "description": "`add_node`: a node type from `listWorkflowNodeTypes`.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "op"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • removedInput schema / properties / requestBody
      Removed value: -{
      -  "description": "The JSON request body.",
      -  "properties": {
      -    "name": {
      -      "description": "Rename the workflow.",
      -      "type": "string"
      -    },
      -    "ops": {
      -      "items": {
      -        "description": "One edit to the draft. Set `op` and the fields that op uses.\n\n| `op` | Fields | Effect |\n|---|---|---|\n| `add_node` | `id`, `type`, `label?`, `config?`, `after?`, `handle?`, `position?` | Adds a node. With `after`, it also connects it to that node (on output `handle`). |\n| `update_node` | `id`, `config?`, `label?` | Merges `config` keys into the node. A `null` value removes a key. |\n| `move_node` | `id`, `position` | Moves a node on the canvas. |\n| `delete_node` | `id` | Deletes a node and its edges. |\n| `connect` | `from`, `to`, `handle?` | Adds an edge. |\n| `disconnect` | `from`, `to`, `handle?` | Removes an edge. |\n",
      -        "properties": {
      -          "after": {
      -            "description": "`add_node`: id of the node to connect the new node to.",
      -            "type": "string"
      -          },
      -          "config": {
      -            "additionalProperties": true,
      -            "description": "`add_node`, `update_node`: the node's settings. The fields come from\n`getWorkflowNodeType`. Send a secret back as `********` to keep the\nstored value.\n",
      -            "type": "object"
      -          },
      -          "from": {
      -            "description": "`connect`, `disconnect`: id of the node the edge starts at.",
      -            "type": "string"
      -          },
      -          "handle": {
      -            "description": "`add_node`, `connect`, `disconnect`: the output of the source node. Omit for the default output.",
      -            "type": "string"
      -          },
      -          "id": {
      -            "description": "Node id. For `add_node`, lowercase letters, digits and underscores, starting with a letter. It must be new.",
      -            "type": "string"
      -          },
      -          "label": {
      -            "description": "`add_node`, `update_node`: the name shown on the canvas.",
      -            "type": "string"
      -          },
      -          "op": {
      -            "enum": [
      -              "add_node",
      -              "update_node",
      -              "move_node",
      -              "delete_node",
      -              "connect",
      -              "disconnect"
      -            ],
      -            "type": "string"
      -          },
      -          "position": {
      -            "description": "`add_node`, `move_node`: canvas position. `add_node` places the node for you if you omit it.",
      -            "properties": {
      -              "x": {
      -                "type": "number"
      -              },
      -              "y": {
      -                "type": "number"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "to": {
      -            "description": "`connect`, `disconnect`: id of the node the edge ends at.",
      -            "type": "string"
      -          },
      -          "type": {
      -            "description": "`add_node`: a node type from `listWorkflowNodeTypes`.",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "op"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "revision": {
      -      "description": "The `draft.revision` from your last `getWorkflow` or edit.",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "revision",
      -    "ops"
      -  ],
      -  "type": "object"
      -}
    • addedInput schema / properties / revision
      Added value: +{
      +  "description": "The `draft.revision` from your last `getWorkflow` or edit.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "workflow_id",
      -  "requestBody"
      -]New value: +[
      +  "workflow_id",
      +  "revision",
      +  "ops"
      +]
  2. Addedv0.14.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is known; the description adds genuinely new behavior: the op batch is atomic ("apply all together or not at all"), edits are draft-scoped, and secrets are masked as `********` and must be echoed back unchanged to preserve stored values. The one gap is that it never says what the call returns (presumably the new revision), which matters for chaining a subsequent edit.

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?

Four short paragraphs, front-loaded with what the tool does, then atomicity, then concurrency, then secrets, then scope. No sentence is filler; even the `********` masking note prevents a concrete data-loss mistake.

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 destructive, multi-op mutation tool with no output schema, this is close to complete: atomicity, draft vs publish scope, concurrency handling and secret handling are all disclosed. Remaining gaps are the return value and whether ops within a batch may reference nodes created earlier in the same batch.

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 75% and the schema already carries a detailed per-op field table, so most semantics are structured data. The description still adds meaning the schema does not: the revision parameter's role as an optimistic-concurrency token with a defined 409 retry protocol, and the secret round-trip convention for `config` values.

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?

Opens with a specific verb and resource ("Change the draft with a list of `ops`") and immediately enumerates the operation space: add, update, move, delete nodes, connect or disconnect them. It also distinguishes itself from `publishWorkflow` by stating "This edits the draft only. Use `publishWorkflow` to make it live," so an agent can separate it from its sibling without opening either 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?

Gives explicit preconditions ("Send the `revision` from your last read") and an explicit recovery path for the failure case ("On `409 revision_conflict`, read the workflow again and retry"). It also names the alternative tool and the condition that selects it, so both when-to-use and when-not-to-use are covered.

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

Deploy Server

Other Tools