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

Packet Tracer MCP — Node.js port

pt_screenshot

Captures the Packet Tracer logical canvas and saves it as a PNG, JPG, or BMP image, returning only the file path to avoid bloating context.

Instructions

Captures PT's logical canvas and saves it as an image.

Returns the file's PATH, not the image: a capture weighs tens of thousands of bytes and dumping it in the reply would fill the context without anyone being able to see it.

PNG compresses a diagram much better than JPG (measured: 33 KB versus 105 KB for the same canvas), so it is the default.

Parameters:

  • filename: file name, without extension. It is sanitised.

  • fmt: PNG (default) | JPG | JPEG | BMP.

  • output_dir: destination folder, relative to the project root.

Example: pt_screenshot(filename="lab-ospf")

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

Input Schema

NameRequiredDescriptionDefault
fmtNoPNG
filenameNotopology
output_dirNoprojects

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.11.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description does real work: it explains that the reply contains a path rather than image bytes (and why), that filenames are sanitised, and that output_dir is resolved relative to the project root. Gaps remain: nothing about whether an existing file is overwritten, what happens if the canvas or project directory is missing, or whether the tool is side-effecting on disk.

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 action, then the return contract, then a parameters list and a concrete example — a sensible structure for an agent parsing it. The PNG-versus-JPG size rationale is slightly verbose, though it does justify the default rather than merely restating it.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter, zero-required, no-output-schema tool, the definition covers the return contract, format choices, and path resolution adequately. The main missing piece is failure/overwrite behavior, which matters for a tool that writes to disk.

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% and the schema carries no enum on `fmt`, so the description is doing the heavy lifting. It documents all three parameters: filename (no extension, sanitised), fmt with the accepted PNG/JPG/JPEG/BMP values plus the default, and output_dir's resolution base. It could still clarify whether `fmt` is case-sensitive or whether subdirectories in output_dir are created.

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?

"Captures PT's logical canvas and saves it as an image" states a specific verb and resource, and the definition further pins the output contract (returns a file PATH, not the image). No sibling tool in the list does canvas capture, so the agent can select it unambiguously.

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?

Usage is implied by the purpose statement and demonstrated by the example `pt_screenshot(filename="lab-ospf")`, which is helpful for invocation. However, there is no explicit when-to-use/when-not guidance, no mention of prerequisites (project root must exist, canvas must be open), and no named alternative such as combining with pt_canvas_info or pt_auto_layout before capturing.

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