Skip to main content
Glama

Update a Wiro workflow

update_workflow
Destructive

Edit a workflow you own by changing its title, description, tags, or step graph; read it first and pass the loaded update time to prevent overwriting newer saves, then confirm step replacements.

Instructions

Change a workflow you own (or your team owns): title, description, tags and/or its whole step graph. Read it with get_workflow first and send the full edited contents, plus that call's updatetime as loaded_updatetime so a newer save by someone else is not overwritten. Leave metadata.input.values out to keep the saved input values; a value shown as [hidden] is restored from the saved workflow. Everyone who can open the workflow can read its saved values, so never save a key or password in one. Wiro checks and prepares the new graph like create_workflow, with the same 40 KB limit on the new graph, also when the saved workflow is larger (removing steps can bring it under). Replacing the steps cannot be undone: without confirm: true the call checks the new graph, reports any problems and the defaults it filled, and returns what would change, saving nothing; show it to the user and repeat the call with confirm: true after they agree. Editing a published workflow takes it out of the public gallery until Wiro reviews it again, so that also needs acknowledge_review_reset: true.

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": {
      "slug": "<slug>"
    },
    "name": "update_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesThe full workflow slug or the workflow page URL.
tagsNoReplaces the tags.
forceNoOverwrite a newer version. Only when the user explicitly wants that.
titleNoNew title.
confirmNoRequired to save new `contents`, after the user approved the change summary.
contentsNoThe workflow graph (version "1"): {version, nodes, output, schema, metadata}. Read get_playbook topic "workflow-graph" for the format and an example.
descriptionNoNew description, 1 to 1000 characters.
loaded_updatetimeNoThe `updatetime` from get_workflow (or the last update). Protects against overwriting newer changes.
acknowledge_review_resetNoRequired to edit a published workflow, after the user agreed it leaves the gallery until reviewed.

Output Schema

NameRequiredDescriptionDefault
urlYes
stateNo
titleYes
inputsYes
changesNo
outputsYes
previewNo
renamedYes
fullSlugYes
warningsYes
discardedNoWith unchanged: Start field changes Wiro does not keep, because it saves Start fields the way the wiro.ai editor writes them.
unchangedYes
nextActionNo
updatetimeNo
reviewResetYes
contentsChangedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.5.3
    • addedInput schema / properties / contents / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / nextAction / properties / arguments / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / outputs / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  2. Changed2 schema fields changedv1.5.1
    • addedOutput schema / properties / changes / properties / stepChanges
      Added value: +{
      +  "description": "What changed inside each step of stepsChanged. Input values are JSON text with object keys sorted and secrets hidden; null means not set. A long value is cut around the first place where the old and new value differ, with ... where text is left out.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "dependsChange": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "from": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "to": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "from",
      +          "to"
      +        ],
      +        "type": "object"
      +      },
      +      "inputs": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "from": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "input": {
      +              "type": "string"
      +            },
      +            "to": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            }
      +          },
      +          "required": [
      +            "input",
      +            "from",
      +            "to"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "modelChange": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "from": {
      +            "type": "string"
      +          },
      +          "to": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "from",
      +          "to"
      +        ],
      +        "type": "object"
      +      },
      +      "step": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "step",
      +      "inputs"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / inputs / items / properties / required
      Added value: +{
      +  "description": "Whether a run must be given this input, as far as Wiro says. Left out when that is not known.",
      +  "type": "boolean"
      +}
  3. Addedv1.4.1

TDQS

A4.9/5.0
Behavior5/5

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

Adds substantial behavior beyond the destructiveHint/openWorldHint annotations: a 40 KB graph limit that still applies when the saved workflow is larger, optimistic-concurrency protection via loaded_updatetime, the fact that omitted metadata.input.values are preserved and [hidden] values are restored, and that published workflows drop out of the public gallery pending review. It also carries a security warning that saved values are readable by anyone who can open the workflow, which is not derivable from any structured field.

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 safety-critical constraint (read first, send updatetime) is front-loaded, followed by data-loss rules and then the confirm workflow, so the ordering serves an agent well. It is a dense single paragraph, and the create_workflow parity clause and the 40 KB aside could be tightened, but no sentence is filler.

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 9-parameter destructive mutation with a nested graph object, the description covers every decision point an agent needs: prerequisites, dry-run gate, concurrency, size limit, hidden-value semantics, secret-handling risk, and the review-reset gate. Return values are covered by the output schema, so nothing material is 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%, so the baseline would be 3, but the description explains cross-parameter semantics the schema cannot: confirm gates only contents replacement, loaded_updatetime guards against a newer save by someone else, and acknowledge_review_reset is tied specifically to the gallery reset. It also clarifies that contents must be the full edited graph, not a patch.

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?

Opens with a specific verb+resource and enumerates exactly what can change: title, description, tags and/or the whole step graph, scoped to a workflow the user or their team owns. It is immediately distinguishable from get_workflow (read) and create_workflow (creation), both of which it names.

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?

Gives an explicit prerequisite (read with get_workflow first and pass back its updatetime), an explicit two-phase call pattern (dry run, show the summary, repeat with confirm: true), and a conditional gate for published workflows (acknowledge_review_reset). The force parameter's 'only when the user explicitly wants that' constraint is also stated in the schema.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.