Skip to main content
Glama

pt_generate_script

Generates a PTBuilder JavaScript script from a network plan JSON, optionally embedding CLI configurations as comments for deployment in Packet Tracer.

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

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It does not say whether the generated script is returned as text or written to a file, what permissions or prior state it needs, or what happens with a malformed plan; only the include_configs comment behavior is disclosed.

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?

Short and front-loaded, with the action stated first and parameters listed compactly. The plan_json line adds no information and could be cut, but there is no bloat overall.

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

Completeness3/5

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

An output schema exists, so return values need not be explained. However, for a code-generation tool with zero annotation coverage and a completely undocumented plan_json format, the definition leaves out what an agent most needs 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 is genuinely clarified ('includes the CLI configs as comments'), but 'plan_json: plan JSON' is circular and gives no hint of the expected plan structure or format.

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 artifact: generates the PTBuilder JavaScript script. It does not differentiate from the sibling pt_generate_configs, so an agent cannot tell from the description alone which generator to pick.

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?

No when-to-use guidance at all. With a close sibling named pt_generate_configs in the catalog, the absence of any routing condition (script vs. configs) leaves selection to guesswork.

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