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).
authTokenNoOptional session token (`utok_...`) if not passed via Authorization header.
orientationNoOptional layout orientation (defaults to topology auto-orientation).

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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"
      +}
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Adds real behavior beyond the annotations: what gets cleaned (duplicate edges, empty sequence labels), that layout is recomputed orthogonally, that graph meaning is preserved, and that no semantic verification occurs. Slight tension with `idempotentHint: false` given the 'deterministic' claim, but that is a nuance rather than a contradiction, and the mutation/no-destruction profile is consistent with the annotations.

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?

Front-loaded with the core action and outputs, then the usage rule, then the limitation. The '$0 compute cost, instant, unlimited' clause is promotional but does convey a useful cost/latency expectation; otherwise there is little waste.

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?

With no output schema, the description carries the burden of stating return values and it does so explicitly. It also covers the important edge case (missing steps cannot be invented) and the auth path is handled by the schema, so an agent has everything needed to call this correctly.

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 coverage is 100%, so `spec`, `swimlane`, `orientation`, and `authToken` are already documented in the schema. The description confirms `spec` is healed and re-rendered but adds no meaning to the layout toggles or auth parameter, so baseline 3 is appropriate.

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 — deterministic connector healing plus full re-render of a VisualSpec — and enumerates the concrete outputs (svg, mermaid, excalidraw, studioUrl). Against siblings like compile_workflow, enhance_workflow, and revise_workflow this is clearly a mechanical heal-and-render pass, not a semantic edit.

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?

Gives explicit triggers: use after direct structural edits to `nodes`/`edges`, or when a user asks to autofix connectors. It also scopes out semantic work by warning that missing steps or branches require source-backed spec edits. No sibling tool is named as an alternative, which keeps it just short of a 5.

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.