Skip to main content
Glama

pt_auto_layout

Rearrange network devices on the canvas by topology and fit them to the visible view, useful after manual builds, device additions, or when a lab looks crowded.

Instructions

Rearrange the devices on the canvas by topology and fit them to the visible view.

Reads the live devices and links: routers form the core (2 or a chain: a row with the end LANs pointing outward, middle LANs alternating down/up; a ring: a polygon; a hub: a star), each LAN hangs off its router away from the core (switch, then its hosts side by side), a WAN cloud takes the free side. Moves everything in one call and reads each position back.

Use it after building by hand, after adding devices, or when a lab looks crowded. pt_full_build / pt_plan_topology already plan with this layout.

Parameters:

  • apply: False only returns the new positions without moving anything.

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": "pt_auto_layout"
  }
}

Input Schema

NameRequiredDescriptionDefault
applyNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden and mostly succeeds: it discloses that it reads live devices and links, that all devices move in a single call, and that each position is read back afterwards (a verification step). The dry-run behavior is also spelled out. It does not state whether a layout change is reversible, whether it can fail on malformed topologies, or whether any permissions/prerequisites apply.

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 purpose sentence, followed by the layout rules, then usage triggers, then the parameter note — a sensible order. The parenthetical describing core/router/LAN/WAN arrangement is long and dense, but it lets an agent predict the result rather than describing nothing; minor trim possible.

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?

An output schema exists, so return values need not be explained, and the description covers purpose, the layout algorithm, when to invoke it, sibling overlap, and the dry-run flag. For a single-parameter, single-purpose layout tool this is essentially complete.

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?

Schema description coverage is 0%, so the description must compensate, and it does: 'apply: False only returns the new positions without moving anything' gives the boolean real semantic meaning beyond the bare title/default. Only one parameter exists, so there is little more to document.

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?

A specific verb and resource ('Rearrange the devices on the canvas') plus a stated secondary effect ('fit them to the visible view'). The description also names how it relates to siblings pt_full_build and pt_plan_topology, which already plan with this layout, so an agent can distinguish it from those without opening a schema.

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?

Explicit triggers are given: after building by hand, after adding devices, or when a lab looks crowded. It also notes pt_full_build / pt_plan_topology already apply this layout, which implicitly steers an agent away from redundant calls. No hard 'do not use' clause, so a 4 rather than a 5.

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

Deploy Server

Other Tools