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

Packet Tracer MCP — Node.js port

pt_generate_script

Generates a PTBuilder JavaScript script from a Packet Tracer plan JSON, optionally embedding CLI configs as comments for topology deployment.

Instructions

Generates the PTBuilder JavaScript script.

Parameters:

  • plan_json: plan JSON

  • include_configs: if True, includes the CLI configs as comments

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": {
      "plan_json": "<plan_json>"
    },
    "name": "pt_generate_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
plan_jsonYes
include_configsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.11.0

TDQS

C2.6/5.0
Behavior2/5

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

No annotations and no output schema, so the description carries the full burden, yet it says nothing about whether the script is returned as text or written to disk, whether generating it mutates project state, or whether repeated calls are idempotent. The single behavioral detail offered is that include_configs emits CLI configs as comments, which is useful but far from sufficient.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The one-sentence purpose is front-loaded and waste-free, and a parameter list is a reasonable structure. But one of the two listed parameters merely restates its own name, so the list only partially earns its space.

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

Completeness2/5

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

A generator tool with no annotations, no output schema, and 0% schema coverage needs to explain inputs and the produced artifact. The description leaves the script's destination/return shape and the plan_json requirements unexplained, which is a significant gap for an agent trying to call it correctly.

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

Parameters2/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 compensate. include_configs gains real meaning ('includes the CLI configs as comments'), but 'plan_json: plan JSON' is a pure tautology that leaves the required parameter's expected structure, provenance, and format completely undocumented.

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?

States a specific verb and resource: 'Generates the PTBuilder JavaScript script.' An agent can tell this produces a script artifact rather than configs or topology changes. However, it never distinguishes itself from the sibling pt_generate_configs, so the agent must guess which generator applies to its situation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no prerequisites (does the plan need to have been built first?), and no mention of alternatives such as pt_generate_configs or pt_deploy. The agent must infer invocation conditions entirely.

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