Skip to main content
Glama

auto_layout_mcd

Destructive

Automatically rearranges all the ERD entities and data-source blocks: columns by FK depth (referenced entities on the left, junction tables between their targets), vertical order at the barycenter of the relations to minimize crossings, heights measured on the actual number of fields, and wide gutters reserved for arrow routing. It overwrites positions, including ones you placed by hand, and clears the manual waypoints of all the relations (obsolete after repositioning): the tool keeps no copy of the previous layout: an earlier saved version, restored with restore_version (which replaces the whole schema), is the only way back. Takes no input and has no dry run. REFUSED with an error, nothing written, when the project has no ERD entity or data-source block. Does not modify the internal layout of the other kinds (auto_layout_org, auto_layout_process, auto_layout_journey, or auto_layout_canvas for every kind at once); if the recomputed ERD region overlaps another one, the following regions in the stacking order (org, ERD, process, journey, arch, captable) may be shifted AS A WHOLE, and not card by card. Handy after a large series of entity/relation additions.

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_mcd"
  }
}

Input Schema

NameRequiredDescriptionDefault
_unusedNoIgnored: this tool takes no input and the parameter has no effect
expectedProjectIdNoUUID of the project THIS call targets (overrides the session project).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."New value: +"UUID of the project THIS call targets (overrides the session project)."
  2. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."New value: +"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."
  3. Changed1 schema field changed
    • changedInput schema / properties / _unused / description
      Previous value: -"Unused parameter"New value: +"Ignored: this tool takes no input and the parameter has no effect"
  4. Changed2 schema fields changed
    • changedInput schema / properties / _unused / description
      Previous value: -"Paramètre non utilisé"New value: +"Unused parameter"
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID du projet visé par CET appel. Cible RÉELLEMENT ce projet au lieu du projet de session. Refusé sans rien modifier si l'accès n'est pas accordé."New value: +"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."
  5. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations declare destructiveHint=true and readOnlyHint=false; the description goes far beyond by naming exactly what is destroyed (hand-placed positions, manual relation waypoints), stating no copy of the prior layout is kept and that restore_version is the only recovery path (replacing the whole schema), and disclosing the cross-region side effect where other regions may shift as a whole in a stated stacking order.

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 algorithm, then consequences, then refusal and side effects. Dense but nearly every clause earns its place; the single unbroken paragraph with all-caps emphasis makes it harder to scan than it could be.

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?

No output schema exists, and the description covers the full contract: inputs (none), effects on positions and waypoints, recovery path, error behavior, and interaction with other layout regions. Nothing an agent needs before invoking it destructively is missing.

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% with 0 required parameters, so the schema already documents _unused and expectedProjectId. The description's 'takes no input' statement adds little and is mildly at odds with expectedProjectId overriding the session project, though it correctly signals there are no layout options to configure.

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 concrete verb+resource (rearranges ERD entities and data-source blocks) and then specifies the exact layout algorithm: columns by FK depth, barycenter ordering, heights from field counts, wide gutters for arrows. An agent can distinguish this from auto_layout_org/process/journey/canvas immediately.

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?

Names the sibling alternatives and what they cover, states the trigger scenario ('handy after a large series of entity/relation additions'), states the refusal condition (no ERD entity or data-source block → error, nothing written), and states there is no dry run. Explicit when-to-use and when-not guidance.

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.