Skip to main content
Glama

Tidy up the diagram

auto_layout

Tidy up a BPMN diagram by recalculating every shape position and connection route while preserving colors and handling pools, lanes, events, and groups; returns any layout warnings.

Instructions

Recalculates the position of every shape and the route of every connection, like the editor's "Tidy up" button. Handles pools, lanes, message flows, boundary events, expanded subprocesses, annotations and groups. Colors are kept. Returns the layout warnings, if any. The user can undo it in one step.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "auto_layout"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: it discloses that all shapes and connections are repositioned, enumerates the handled constructs (pools, lanes, message flows, boundary events, expanded subprocesses, annotations, groups), states colors are preserved, notes it returns layout warnings, and confirms one-step undoability — covering both side effects and reversibility.

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?

Four short sentences, front-loaded with the core action and its analogy. The element-type list is dense but each item adds real scope information, and the closing sentences on warnings and undo are load-bearing rather than 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 parameterless, no-output-schema tool, the description supplies everything an agent needs: what changes, what is preserved, that it is reversible in one step, and that the response is layout warnings. Nothing essential is missing.

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?

The tool takes zero parameters, so there is no parameter meaning to convey; the baseline for a no-parameter tool applies. The description correctly avoids inventing options and notes the only output of interest, the warnings.

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 scope: 'Recalculates the position of every shape and the route of every connection.' The analogy to the editor's 'Tidy up' button plus 'Colors are kept' makes clear this is purely geometric, distinguishing it from siblings like style_elements or update_elements that change appearance or content.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The 'Tidy up button' analogy implies when an agent should reach for it (messy layout), but there is no explicit when-to-use, when-not-to-use, or named alternative. An agent must infer that layout changes should go here while style/content changes belong to siblings.

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