Skip to main content
Glama

Autofix & Re-Render Workflow ($0 Free)

autofix_workflow

Deterministic connector healing and full visual re-rendering ($0 compute cost, instant, unlimited). Cleans exact duplicate edges and empty sequence labels, recomputes deterministic orthogonal layout, and returns fresh spec, svg, mermaid, excalidraw, and studioUrl. Missing steps or branches require source-backed edits to the spec; this tool preserves graph meaning and does not perform semantic verification. Use this tool after making direct structural edits to VisualSpec JSON (nodes / edges), or when a user asks to autofix connectors.

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>"
    },
    "name": "autofix_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
specYesThe VisualSpec JSON object to deterministically heal and re-render into SVG, Mermaid, and Excalidraw.
swimlaneNoOptional swimlane layout toggle (defaults to automatic swimlanes when 2+ actor groups exist).
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').
orientationNoOptional layout orientation (defaults to topology auto-orientation). Mermaid emits TD for portrait or LR for landscape; the host controls final geometry.
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).
includeExcalidrawNoExplicitly include or omit inline Excalidraw scene JSON (defaults to true only for 'full').

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / orientation / description
      Previous value: -"Optional layout orientation (defaults to topology auto-orientation)."New value: +"Optional layout orientation (defaults to topology auto-orientation). Mermaid emits TD for portrait or LR for landscape; the host controls final geometry."
    • 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. Changed3 schema fields changed
    • changedInput schema / properties / orientation / description
      Previous value: -"Optional layout orientation (defaults to portrait)."New value: +"Optional layout orientation (defaults to topology auto-orientation)."
    • changedInput schema / properties / orientation / enum
      Previous value: -[
      -  "portrait",
      -  "landscape"
      -]New value: +[
      +  "portrait",
      +  "landscape",
      +  "choose"
      +]
    • addedInput schema / properties / swimlane
      Added value: +{
      +  "description": "Optional swimlane layout toggle (defaults to automatic swimlanes when 2+ actor groups exist).",
      +  "type": "boolean"
      +}
  6. First observed

TDQS

A3.9/5.0
Behavior3/5

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

With no output schema, the description earns credit for listing exactly what is returned and for disclosing cost/latency ('$0 compute cost, instant, unlimited') and a preservation guarantee. However, annotations mark this idempotentHint=false while the text emphasizes determinism, and the description never explains that tension—e.g., whether each call creates a new visual/job, whether the original spec is mutated, or what auth is needed. That leaves meaningful behavior beyond the annotations undisclosed.

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?

It is front-loaded with the core purpose and stays to a handful of dense sentences; the 'heals X, recomputes Y, returns Z' structure is easy to parse. Minor redundancy in '$0 compute cost, instant, unlimited' and the closing usage sentence slightly dilute it.

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 tool with a nested object and no output schema, describing the returned artifacts (spec, svg, mermaid, excalidraw, studioUrl) and the semantic-verification limitation fills the important gaps. What remains thin is the lifecycle/auth story (persistence of results, token handling), which the description only partially covers.

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% across 11 parameters with nested and enum fields, so the schema carries parameter meaning and the baseline is 3. The description adds almost no parameter-specific guidance beyond naming the output keys that map loosely to includeSvg/includeExcalidraw/renderFormat, so it does not meaningfully exceed the schema.

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 gives a specific verb and resource ('Deterministic connector healing and full visual re-rendering') and enumerates concrete operations: removes exact duplicate edges and empty sequence labels, recomputes orthogonal layout, returns spec/svg/mermaid/excalidraw/studioUrl. It also draws a boundary against other tools by stating it 'preserves graph meaning and does not perform semantic verification,' so an agent can tell it apart from enhance/revise-style tools.

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 explicit trigger conditions: 'after making direct structural edits to VisualSpec JSON (nodes/edges), or when a user asks to autofix connectors,' plus a scope exclusion ('Missing steps or branches require source-backed edits to the spec'). It does not name which sibling should handle those missing-step cases, so the routing is implied rather than explicit.

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.