Skip to main content
Glama

executeBuilderCode

Run PTBuilder JavaScript in Packet Tracer to automate network setup, batch add devices, and configure IPs or IOS devices programmatically.

Instructions

Execute PTBuilder JavaScript code in Packet Tracer. The code can use PTBuilder functions like addDevice, addLink, configurePcIp, configureIosDevice, etc. This is useful for batch operations and programmatic network building.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesJavaScript code to execute. Can use PTBuilder functions: addDevice(name, model, x, y), addLink(dev1, port1, dev2, port2, type), configurePcIp(name, dhcp, ip, mask, gateway, dns), configureIosDevice(name, commands), getDevices(filter, startsWith)
Behavior2/5

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

No annotations are provided, so the description carries the full burden for behavioral disclosure. The description only lists PTBuilder functions and highlights batch operations, but never discloses that arbitrary code execution can have wide-ranging network/workstate effects, whether changes are reversible, whether there are safety risks, or what the execution result looks like. Given that this is a raw-code-execution tool, this is a significant transparency gap.

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?

The description is two sentences with no filler: the first states the core action and the second provides the use case. It is front-loaded and efficient, though it misses an opportunity to add a terse safety or return-value qualifier.

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?

There is no output schema and there are no annotations, so the description must be the single source of context. It fails to mention whether the code returns a value, how failures surface, whether the execution is synchronous, or whether it can mutate the topology in irreversible ways. For a code-execution tool with one parameter and many sibling alternatives, this leaves meaningful gaps for correct invocation.

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

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The code parameter has 100% schema description coverage, explicitly defining function signatures like addDevice(name, model, x, y) and configurePcIp(...). The tool description only repeats 'like addDevice, addLink...' without adding extra syntax, limits, or examples, so it does not add meaningful value beyond the schema.

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 description states a clear verb and resource: 'Execute PTBuilder JavaScript code in Packet Tracer'. It also lists examples like addDevice and configurePcIp, and implicitly differentiates itself from single-action sibling tools via 'batch operations and programmatic network building'. However, it does not explicitly name a sibling tool it is not, so it stops just short of a 5.

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

Usage Guidelines4/5

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

The phrase 'useful for batch operations and programmatic network building' provides a clear use context, suggesting when an agent should combine multiple actions through this tool rather than calling individual add/modify tools. It does not give explicit exclusions or mention alternatives like generateCodeSnippet, so it does not earn a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/2001sithum/cisco-pt-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server