Skip to main content
Glama

pt_screenshot

Captures the Packet Tracer logical canvas and saves it as an image file, returning the saved path so diagrams can be reviewed without filling 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

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden and does well: it discloses that the tool returns a file path rather than image bytes, explains the context-cost rationale, warns that the filename is sanitised, and justifies PNG as default with a measured size comparison against JPG. It omits what happens on filename collision (overwrite vs. error) and whether the capture requires PT to be running with a loaded canvas.

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?

It is front-loaded with the action, then the return contract, then the rationale for PNG, then a parameter list and an example — a logical order with no filler sentences. The rationale for not embedding the image is slightly long but directly explains an otherwise surprising return type.

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?

An output schema exists, yet the description still clarifies the return contract (a path), which is the one thing an agent would misread. Combined with full parameter documentation, the definition is nearly complete; only edge behavior for existing files and canvas-absent conditions is unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/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 supply all parameter meaning, and it does: filename is stated to exclude the extension and to be sanitised, fmt is expanded to an explicit value list (PNG, JPG, JPEG, BMP) that the schema itself does not enumerate, and output_dir is defined as relative to the project root. This is meaning the schema alone cannot convey.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence gives a specific verb and resource: captures PT's logical canvas and saves it as an image. It is immediately clear what the tool produces. It does not differentiate itself from any named alternative, though none of the listed siblings appears to be a competing capture tool, so the omission is minor.

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 only implied: the tool is for grabbing a snapshot of the current topology canvas, and the example call suggests a typical workflow. There is no explicit statement of when to prefer this over another approach (for example, exporting a config or reading topology data via another pt_ tool) and no exclusions or prerequisites such as needing a canvas open.

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