Skip to main content
Glama

Update workflow

update_workflow
DestructiveIdempotent

Replace an existing workflow's graph with an edited definition.

Read the current graph with get_workflow(include_definition=true), edit it, then validate_workflow_definition for the token. Call without confirm first: nothing is written and you get what it replaces plus an edit_token, which confirm=true requires.

Input Schema

NameRequiredDescriptionDefault
confirmNofalse writes nothing and returns what would change. true REPLACES the stored graph.
definitionYesThe graph, as {"graph": {"nodes": [...], "edges": [...]}}. Get the skeleton from get_node_info.
edit_tokenNoFrom this tool's own unconfirmed reply. Proves the user approved replacing THIS graph; expires in 10 minutes.
workflow_idYesThe workflow_id from list_workflows. Never invent one.
validation_tokenYesFrom validate_workflow_definition, for these exact definition bytes. Expires in 10 minutes.

Output Schema

NameRequiredDescriptionDefault
nameNo
noteNo
updatedNo
replacesNo
next_stepNo
edit_tokenNo
console_urlNo
workflow_idNo
workspace_slugNo
content_changesNo
workflow_summaryNo
requires_confirmationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the destructiveHint=true/idempotentHint=true annotations, it discloses the two-phase confirm protocol: an unconfirmed call writes nothing and returns the diff plus an edit_token required by confirm=true. That is substantial behavioral context (dry-run semantics, token dependency) the annotations do not convey.

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?

Purpose is front-loaded in one sentence, followed by a tight procedural paragraph. Every sentence carries load (read source, validate, dry-run, then confirm), with no filler or repetition.

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, nested-object mutation with an output schema, the description covers the required pre-steps, the token chain, and the confirm safety gate, so an agent has everything needed to invoke it correctly. Return values are covered by the output schema.

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 cross-parameter meaning by chaining the params: the edit_token comes from this tool's own unconfirmed reply and confirm=true requires it, and it clarifies what the confirm=false default does. This ties the individually-documented fields into a coherent flow.

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?

"Replace an existing workflow's graph with an edited definition" is a precise verb+resource+scope statement, so the agent knows this is a full-graph replacement rather than a mutation. It does not explicitly contrast with the sibling patch_workflow, so the replace-vs-patch distinction is left implicit.

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 lays out an explicit ordered workflow: read the current graph with get_workflow(include_definition=true), edit, then validate_workflow_definition for the token, then call without confirm first. The condition selecting the safe vs destructive call is spelled out, and alternative tools are named.

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