Skip to main content
Glama

Revise Workflow Diagram

revise_workflow
Idempotent

Apply explicit node label/role changes or node removal using node IDs, or request connector autofix. For other changes, including new steps or edges, edit the returned spec with confirmed source evidence and call autofix_workflow. Unsupported instructions return an error; this tool does not perform general natural-language rewrites.

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": {
      "spec": "<spec>",
      "instruction": "<instruction>"
    },
    "name": "revise_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
specYesThe existing VisualSpec object to revise
visualIdNoOwned jobId or visualId of the original workflow, to carry its document evidence coverage forward.
authTokenNoOptional session token (`utok_...`) if not passed via Authorization header.
includeSvgNoExplicitly include or omit inline SVG XML (defaults to true for 'full' and 'svg', false for 'preview'/'compact'/'mermaid').
instructionYesClear revision instruction (e.g. 'Change node-2 role to decision and label to Finance Approval?', 'Remove orphan node-4', 'Autofix layout connections')
renderFormatNoOptional output size control (MCP defaults to 'mermaid' for the host to render). Use 'preview' for a bounded inline PNG on the hosted service, with Mermaid and an owner-only SVG URL when available, or 'svg'/'mermaid' for a single format.
maxPreviewWidthNoTarget preview width bound in px for responsive preview metadata (default 1200).
evidenceCoverageNoOptional document preflight coverage report from the host agent (`pagesExamined`, `totalPages`, `textExtracted`, `tablesExtracted`, `embeddedDiagramsDetected`, `omittedMedia`, `notes`). When omitted media or uninspected diagrams are reported, Unseen flags `EVIDENCE_NOT_INSPECTED`.
maxPreviewHeightNoTarget preview height bound in px for responsive preview metadata (default 900).
additionalSourcesNoOptional additional source evidence excerpts to support the revision
includeExcalidrawNoExplicitly include or omit inline Excalidraw scene JSON (defaults to true only for 'full').

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / renderFormat / description
      Previous value: -"Optional output size control (defaults to 'full'). Use 'preview' for a bounded inline PNG on the hosted service, with Mermaid and an owner-only SVG URL when available, or 'svg'/'mermaid' for a single format."New value: +"Optional output size control (MCP defaults to 'mermaid' for the host to render). Use 'preview' for a bounded inline PNG on the hosted service, with Mermaid and an owner-only SVG URL when available, or 'svg'/'mermaid' for a single format."
  2. Changed2 schema fields changed
    • addedInput schema / properties / evidenceCoverage
      Added value: +{
      +  "description": "Optional document preflight coverage report from the host agent (`pagesExamined`, `totalPages`, `textExtracted`, `tablesExtracted`, `embeddedDiagramsDetected`, `omittedMedia`, `notes`). When omitted media or uninspected diagrams are reported, Unseen flags `EVIDENCE_NOT_INSPECTED`.",
      +  "properties": {
      +    "embeddedDiagramsDetected": {
      +      "type": "number"
      +    },
      +    "notes": {
      +      "type": "string"
      +    },
      +    "omittedMedia": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "pagesExamined": {
      +      "type": "number"
      +    },
      +    "tablesExtracted": {
      +      "type": "boolean"
      +    },
      +    "textExtracted": {
      +      "type": "boolean"
      +    },
      +    "totalPages": {
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / visualId
      Added value: +{
      +  "description": "Owned jobId or visualId of the original workflow, to carry its document evidence coverage forward.",
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • changedInput schema / properties / renderFormat / description
      Previous value: -"Optional output size control (defaults to 'full'). Use 'preview' for compact metadata + svgUrl + mermaid without large inline Excalidraw/SVG blobs, or 'svg'/'mermaid' for a single format."New value: +"Optional output size control (defaults to 'full'). Use 'preview' for a bounded inline PNG on the hosted service, with Mermaid and an owner-only SVG URL when available, or 'svg'/'mermaid' for a single format."
  4. Changed5 schema fields changed
    • addedInput schema / properties / includeExcalidraw
      Added value: +{
      +  "description": "Explicitly include or omit inline Excalidraw scene JSON (defaults to true only for 'full').",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / includeSvg
      Added value: +{
      +  "description": "Explicitly include or omit inline SVG XML (defaults to true for 'full' and 'svg', false for 'preview'/'compact'/'mermaid').",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / maxPreviewHeight
      Added value: +{
      +  "description": "Target preview height bound in px for responsive preview metadata (default 900).",
      +  "type": "number"
      +}
    • addedInput schema / properties / maxPreviewWidth
      Added value: +{
      +  "description": "Target preview width bound in px for responsive preview metadata (default 1200).",
      +  "type": "number"
      +}
    • addedInput schema / properties / renderFormat
      Added value: +{
      +  "description": "Optional output size control (defaults to 'full'). Use 'preview' for compact metadata + svgUrl + mermaid without large inline Excalidraw/SVG blobs, or 'svg'/'mermaid' for a single format.",
      +  "enum": [
      +    "full",
      +    "preview",
      +    "compact",
      +    "svg",
      +    "mermaid"
      +  ],
      +  "type": "string"
      +}
  5. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only cover the safety profile (readOnlyHint=false, idempotentHint=true, destructiveHint=false); the description adds the key behavioral fact that the tool refuses unsupported instructions rather than guessing, and that it is not a general NL rewriter. It also implies a spec is returned for manual editing. It does not address auth/permission needs or what the error payload looks like, so it stops short of a 5.

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?

Three sentences, front-loaded with the supported operations and immediately followed by the escape hatch to autofix_workflow, then the failure mode. No filler and no repetition of schema content.

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?

For an 11-parameter mutation tool with nested objects and no output schema, the description covers supported operations, the alternative path, and error behavior, which is the essential decision surface. It leaves the return value only implied (the spec to be edited) and says nothing about evidence handling, but those details are carried by the schema.

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 the schema already explains spec, instruction, visualId, renderFormat, evidenceCoverage and the rest. The description adds only the notion of addressing nodes by ID and points at the returned spec, which is marginal beyond the schema. Baseline 3 applies.

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 plus the exact scope it operates on: node label/role changes and node removal by node ID, or connector autofix. It explicitly contrasts itself with general natural-language rewriting, so an agent can distinguish it from autofix_workflow and enhance_workflow without opening 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?

Gives an explicit routing rule: use this tool for label/role edits and node removal, and for anything else edit the returned spec with confirmed source evidence and call autofix_workflow. It also states the failure mode (unsupported instructions return an error), leaving nothing to inference.

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.