Skip to main content
Glama

Patch workflow

patch_workflow
DestructiveIdempotent

Change part of a saved workflow. Everything the operations skip is kept.

Use this over update_workflow for an ordinary edit: a threshold, a config key, a node added or removed, a connection redrawn. Call without confirm for an edit_token, then again with the SAME patch and confirm=true. Voices: set_workflow_voice.

Input Schema

NameRequiredDescriptionDefault
patchYesThe operations to apply. Anything they do not name is kept.
confirmNofalse changes nothing and returns what the patch would do. true applies it.
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.

Output Schema

NameRequiredDescriptionDefault
nameNo
noteNo
validNo
errorsNo
strikeNo
blockedNo
patchedNo
warningsNo
next_stepNo
edit_tokenNo
console_urlNo
workflow_idNo
pre_existingNo
changed_nodesNo
workspace_slugNo
nearest_feasibleNo
workflow_summaryNo
requires_confirmationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $defs / McpGraphPatch / properties / operations / description
      Previous value: -"Only the changes you want, in order. Never restate the graph you are keeping."New value: +"Only the changes you want, in order. Never restate the graph you are keeping. voice_map is refused here — pin a voice with set_workflow_voice."
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the description doesn't need to restate safety. It still adds real behavior: partial-edit semantics, the two-phase confirm/edit_token approval flow with the same patch, and the refusal of voice_map in favor of set_workflow_voice. It never characterizes what removal actually destroys or that all operations are atomic — that detail lives only in the schema.

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?

Front-loads the core idea and the sibling disambiguation in two short paragraphs. 'Everything the operations skip is kept' slightly duplicates the schema's 'Anything they do not name is kept', and the trailing 'Voices: set_workflow_voice' fragment is terse but earns its place as a redirect.

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?

With a rich schema, full annotation coverage and an output schema, the description covers the remaining model-facing decisions: patch vs full update, the confirm/token handshake, and the voice exclusion. Only operational limits (max operations, ordering, all-or-nothing application) are left to the schema, which is acceptable given its depth.

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 description coverage is 100%, so confirm, edit_token, workflow_id and patch are all documented in-schema; the description only reinforces patch semantics and the token round-trip. It adds no syntax or constraint detail (e.g. the 200-operation cap) beyond what the schema already says, so baseline 3 is right.

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?

States a specific verb and resource ('Change part of a saved workflow') plus the defining property of a patch — untouched state is preserved. It names the sibling it replaces (update_workflow) so the agent can separate the two 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?

Explicitly routes ordinary edits (threshold, config key, node add/remove, connection redraw) here rather than to update_workflow, and gives concrete example edits. It also states the required call sequence (unconfirmed call for an edit_token, then repeat with confirm=true) and where voice changes belong instead.

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