Skip to main content
Glama
Packet Tracer MCP — Node.js port

Packet Tracer MCP — Node.js port

pt_auto_layout

Rearranges Packet Tracer devices by topology and fits them to the visible view, with an optional preview mode that returns new positions without moving anything.

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.11.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 well: it discloses that it reads live devices and links, that everything is moved in one call, and that each position is read back afterwards — a meaningful atomicity/verification signal. It omits whether prior positions are recoverable and whether permissions or a running/stopped lab state are required, so it stops short of full disclosure.

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?

The action and scope are front-loaded in the first sentence, then usage triggers, then parameters. The middle paragraph detailing topology cases is dense and longer than strictly needed for invocation, but it does earn its place by telling the agent what geometry to expect, so the bulk is justified rather than padding.

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 one-parameter mutation tool with no annotations and no output schema, the description covers the missing pieces: what it mutates, that it is a single atomic pass with read-back, when to invoke it, and what the boolean returns. Nothing an agent needs to call it correctly is absent.

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 coverage is 0% for the single parameter, so the description must compensate, and it does: 'apply: False only returns the new positions without moving anything' fully defines the non-default branch and implies the default is a live mutation. It leaves the default value itself to the schema and says nothing about the shape of the returned positions, so it is strong but not exhaustive.

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 opens with a specific verb+resource: 'Rearrange the devices on the canvas by topology and fit them to the visible view.' It goes beyond that to enumerate concrete layout outcomes (router core, LAN hang-offs, WAN cloud) and explicitly separates itself from pt_full_build / pt_plan_topology by noting those already plan with this layout.

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 concrete triggers — 'after building by hand, after adding devices, or when a lab looks crowded' — which is clear when-to-use guidance. It also implicitly steers agents away from redundant calls by stating that pt_full_build and pt_plan_topology already plan with this layout, though it never states an explicit 'do not use when' condition or name a contrasting alternative tool.

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