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

Packet Tracer MCP — Node.js port

pt_canvas_info

Retrieve canvas dimensions, zoom, and device bounding box to determine valid x/y coordinates before adding, moving, or annotating devices in Packet Tracer topologies.

Instructions

Size of PT's visible logical view and where the devices are, so you know which x/y range to use before pt_add_device / pt_move_device / pt_add_note.

Returns view [width, height] in canvas px (depends on the screen and the window: 1512x599 on a 14" MacBook, about 1900x700 on a maximised 1920x1080), zoom (0 = 100 %), the device count and their bbox [x0, y0, x1, y1]. x/y of a device is the top-left corner of its icon (about 50x40 px, labels below): keep x within [40, width-90] and y within [40, height-90] so everything is visible.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

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?

No annotations exist, so the description carries the load, and it does disclose the return payload shape and the coordinate conventions (top-left corner of a ~50x40 px icon, labels below). The safe-range rule (x within [40, width-90], y within [40, height-90]) is exactly the kind of behavioral constraint an agent needs; it stops short of stating read-only-ness or cost explicitly, but 'info' plus the return description makes that clear.

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 what it returns, followed by the practical constraints, so the most important line comes first. The concrete screen-size examples (1512x599 on a 14" MacBook, ~1900x700 on a maximised 1920x1080) are marginally useful illustration but slightly pad the middle sentence.

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 and no annotations, the description is the sole carrier of return semantics, and it covers dimensions, zoom scale, device count, bbox order and coordinate ranges. Nothing an agent needs in order to place or move devices correctly 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?

Zero parameters, so the schema baseline of 4 applies and there is nothing the description needs to disambiguate. The description adds no parameter noise, which 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?

Names the exact resource (PT's visible logical view) and what it reports: view [width, height], zoom, device count and device bbox. It also states the downstream actions it enables (pt_add_device / pt_move_device / pt_add_note), so it is unambiguous against the sibling mutation tools.

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?

Explicitly frames the call as a prerequisite step: 'so you know which x/y range to use before pt_add_device / pt_move_device / pt_add_note'. That is a clear when-to-use condition, though it gives no explicit when-not-to-use or refresh/caching guidance.

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