Skip to main content
Glama

apply_workflow_changes

Apply related Flow changes atomically. Add and configure nodes, connect exact sockets (use @key for new nodes), and optionally lay out a new Flow in one call. Read existing graphs before editing. The tool saves the Flow without executing 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": {
      "workspaceId": "<workspaceId>",
      "workflowId": "<workflowId>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "apply_workflow_changes"
  }
}

Input Schema

NameRequiredDescriptionDefault
connectNoConnections in upstream-to-downstream order, using exact socket IDs.
addNodesNo
autoLayoutNoArrange the graph after changes. Use for a new graph or when the user requests layout.
workflowIdYes
updateNodesNo
workspaceIdYes
idempotencyKeyYesUnique key for this batch. Reuse it if retrying the same changes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/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 disclose two useful traits: changes are applied atomically and the Flow is saved but not executed. It omits the behavior of the optimistic-concurrency fields (what happens on a stale expectedConfigVersion), whether a partial failure rolls back everything, and any permission requirements. For a multi-part mutation tool, these are meaningful gaps.

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 sentences, front-loaded with the atomic-batch purpose, then capabilities, then the read-first prerequisite, then the save-without-execute caveat. Every sentence adds information and none repeats the tool name or schema.

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 7-parameter mutation tool with no annotations and no output schema, the description establishes purpose and the key mental model (atomic, saved-but-not-executed) but leaves failure, rollback, and concurrency-conflict behavior undocumented. An agent could call it correctly for the happy path but would be guessing on error recovery.

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

Parameters3/5

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

Schema coverage is 43%, so the description partially compensates: it explains @key referencing for new nodes, exact socket connection, and autoLayout's purpose. It adds nothing about updateNodes with expectedConfigVersion (a version-conflict contract that is not self-evident) or about how idempotencyKey should be reused on retry. Roughly half the parameters are left to the schema alone.

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?

States a specific verb and resource: apply related Flow changes atomically, adding/configuring nodes and connecting sockets in one call. The word 'atomically' plus 'in one call' implicitly distinguishes it from the granular siblings add_node and connect_nodes, and 'saves the Flow without executing it' separates it from execute_workflow. It never names those alternatives outright, so differentiation is inferential rather than explicit.

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?

'Read existing graphs before editing' is a concrete prerequisite that points at get_workflow, and the autoLayout note gives a clear condition ('use for a new graph or when the user requests layout'). However, there is no statement of when to use this batch tool versus the single-operation siblings (add_node, connect_nodes), which is the most likely routing decision an agent faces. Usage is implied rather than prescribed.

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.