Skip to main content
Glama

Update a flow

update_flow
Destructive

Replaces the whole content of an existing flow with a blueprint, usually one from get_flow that you changed. Send the complete flow, not only the changed part. Call with dry_run true first. A copy of the current flow is saved first and its snapshot_id is returned, so restore_snapshot can undo the change. Keep placeholders like <<YOUR_API_KEY>> exactly where get_flow put them; a placeholder moved anywhere else is refused.

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": {
      "flow_id": "<flow_id>",
      "blueprint": "<blueprint>"
    },
    "name": "update_flow"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNotrue: check only and return every problem, nothing is saved. Use true first.
flow_idYesA flow_id from list_flows.
blueprintYesThe blueprint: YAML or JSON text, or the same as an object (get_blueprint_spec has the format). At most 256 KB.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

The annotations already declare destructiveHint=true and readOnlyHint=false, but the description adds concrete behavior beyond them: a copy of the current flow is saved before the write and its snapshot_id is returned, dry_run validates without saving, and placeholder relocation causes refusal. These are exactly the side-effect details an agent needs before a destructive full-replace.

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?

Five short sentences, each carrying distinct information, with the core action and the full-replace warning front-loaded. Nothing is redundant with the title or with what it already said.

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 three-parameter tool with an output schema, the description covers the action, the validation path, the rollback path, and the placeholder constraint. An agent has everything it needs to invoke this correctly and safely.

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 description coverage is 100%, so the baseline is 3. The description still adds meaning beyond the schema by specifying that blueprint must be the *complete* flow and that placeholders must stay exactly where get_flow put them, which is a semantic constraint the schema does not express.

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 first sentence gives a specific verb plus resource plus scope: it replaces the *whole* content of an existing flow with a blueprint, and it names get_flow as the usual blueprint source. This distinguishes it from siblings like create_flow_from_blueprint and get_flow without the agent needing to open any 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?

It gives explicit operational guidance: send the complete flow rather than only the changed part, and call with dry_run=true first. It also names the recovery alternative (restore_snapshot) and the constraint that moved placeholders are refused.

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