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

Packet Tracer MCP — Node.js port

pt_save_project

Saves the active Packet Tracer topology as a .pkt file to a chosen folder, optionally replacing an existing file, so you can persist lab work without manual Ctrl+S.

Instructions

Saves Packet Tracer's active topology as a .pkt file.

Closes the loop: until now the MCP built the topology but saving it needed Ctrl+S by hand.

Parameters:

  • filename: file name (.pkt is added if missing)

  • directory: destination folder. Empty = PT's save folder (on Linux, where PT reports a folder that does not exist, ~/pt/saves). An absolute path must be an existing folder (the user's choice of where labs live); a relative one is a folder inside the MCP's working directory.

  • overwrite: replace an existing file (default False: an existing file is an error).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "filename": "<filename>"
    },
    "name": "pt_save_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameYes
directoryNo
overwriteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.11.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the overwrite failure mode (existing file is an error by default), the fallback save location including the Linux ~/pt/saves quirk, and the absolute-vs-relative directory resolution. It omits whether an open project is required and what a successful save returns, which keeps it short of a 5.

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 a clean bulleted parameter block with defaults and edge cases. The 'until now ... needed Ctrl+S by hand' sentence is motivational rather than operational and could be trimmed, but it is short.

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 mutation tool with no annotations and no output schema, the description covers the risky parts: overwrite semantics, path resolution, and extension handling. It stops short of stating preconditions (project must be open) or response shape, a minor gap given there is no output schema to lean on.

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 coverage is 0%, so the description must document all three parameters, and it does: filename with automatic .pkt extension, directory with default-empty semantics plus absolute/relative resolution rules, and overwrite with its default and failure behavior. No parameter meaning is left to the bare schema.

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?

States a specific verb and resource ('Saves Packet Tracer's active topology as a .pkt file') and frames the effect as persisting the topology the MCP built. That is clearly distinct from the load/open siblings without needing to name them.

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?

The 'closes the loop' framing implies you use it after building a topology, but there is no explicit when-to-use/when-not-to-use guidance and no routing to or from alternatives such as pt_backup_config or pt_load_project. Usage must be inferred from context.

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