Skip to main content
Glama

Update workflow

update_workflow
Destructive

Edit one workflow. Pass nodes and edges together to replace its graph, and name or description to change its details; omitted parts stay as they are. Nodes are Start, optional Idea, Batch, optional Delivery, optional Workflow (the step that improves the Workflow itself after a run), and Finish. Start can connect to an existing Batch without Idea, and Batch can connect to Workflow or Finish without Delivery. Start can also connect to Delivery, for a workflow that only creates or adds to a Delivery: Start to Delivery to Finish, or Start to Delivery to Workflow to Finish, with no Batch node. Each edge.data must contain instructionDocumentIds (existing project document IDs) and contextKinds (features and/or dictionary; each adds only a short outline, top-level feature names or dictionary words, that the agent expands with the read tools). edge.data may also carry rulebookIds, an ordered list of the project's ruleset IDs attached to that connection; leaving it out attaches none. Select documents on connections; do not create Instructions, Dictionary, or Features nodes or put text on lines. Updates made during a run's self-improvement stage are described in the report that closes that step. Open runs keep their frozen revision. Graph writes are refused while a vibe coder has the workflow open for editing in the browser, and archived workflows must be restored first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoNew Workflow name.
edgesNoReplacement connections; pass together with nodes.
nodesNoReplacement stages; pass together with edges.
projectIdYesId of the Project.
workflowIdYesId of the Workflow.
descriptionNoNew description of the requests it handles.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false and destructiveHint=true; the description adds substantial context beyond that: partial-update semantics (omitted parts unchanged), concurrency refusal while open in browser, the archived-must-be-restored prerequisite, frozen revisions on open runs, and self-improvement updates surfacing in a report. This is rich behavioral disclosure an agent needs to call it safely.

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 core action and update model are front-loaded in the first sentence. The dense paragraph is long but each clause carries non-redundant meaning given the empty item schemas; a bulleted breakdown of node types and edge.data would improve scannability without cutting content.

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 complex graph-mutation tool with no output schema and empty item schemas, the description supplies the graph grammar, edge payload contract, valid topologies, and all write-precondition behavior. Nothing essential to invoking it correctly appears to be missing.

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

Parameters5/5

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

Schema coverage is 100% but the nodes/edges items are untyped empty objects, so the schema provides almost no structural meaning. The description compensates heavily by defining the node vocabulary (Start, Idea, Batch, Delivery, Workflow, Finish) and the required edge.data fields (instructionDocumentIds, contextKinds, optional ordered rulebookIds), plus the valid connection topologies.

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 description opens with a specific verb+resource ("Edit one workflow") and immediately states the update model: nodes/edges replace the graph, name/description change details, omitted parts stay. An agent can distinguish this from get_workflow, delete_workflow, and archive_workflow without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives concrete when-to-use conditions (pass nodes+edges together to replace the graph; pass name/description to rename) and explicit when-not cases (refused while a vibe coder has it open, archived workflows must be restored first). It also sets exclusions ("do not create Instructions, Dictionary, or Features nodes or put text on lines"), though it never names a sibling tool as an alternative for those cases.

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