Skip to main content
Glama

pt_cli

Runs Cisco IOS commands on Packet Tracer routers, switches, or ASAs, wrapping configuration lines in enable/configure mode or executing privileged commands and returning per-command status and output.

Instructions

Run IOS commands on a router/switch/ASA. With config_mode=True (default) the commands are wrapped in 'enable' / 'configure terminal' ... 'end', so pass only configuration lines, e.g. ['hostname R1', 'interface g0/0', 'ip address 192.168.1.1 255.255.255.0', 'no shutdown']. Set config_mode=False to run privileged-exec commands such as 'show ip interface brief' or 'copy run start'. Boot and the initial setup dialog are handled automatically. Returns per-command status (ok/invalid/incomplete/ambiguous) and output.

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": {
      "device": "<device>",
      "commands": "<commands>"
    },
    "name": "pt_cli"
  }
}

Input Schema

NameRequiredDescriptionDefault
deviceYes
commandsYes
config_modeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/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 full burden and does substantial work: it discloses the automatic enable/configure-terminal wrapping, that boot and the initial setup dialog are handled automatically, and the per-command status vocabulary (ok/invalid/incomplete/ambiguous) plus output. It does not warn about the potentially disruptive effect of pushing configuration lines or any timeouts/rate limits.

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 critical behavior (mode selection and what to pass) is front-loaded, and each sentence contributes concrete information. The inline command example is slightly dense but earns its place by removing ambiguity about command formatting.

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?

There is no output schema, and the description does cover return shape (per-command status plus output) and boot/setup handling, which is the main thing an agent needs. However, for a mutating multi-device CLI tool with zero annotation coverage, it omits any note on required connection/auth prerequisites or what happens when a command fails mid-sequence, leaving meaningful gaps.

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 compensate, and it does for the two semantically tricky parameters: it specifies that 'commands' should contain only configuration lines when config_mode is true (with a worked array example) and defines the config_mode flag's meaning and default. Only 'device' is left without format guidance (e.g. a name from pt_list_devices), which is a minor gap against otherwise strong compensation.

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 opens with a specific verb and resource: "Run IOS commands on a router/switch/ASA." The device-type scoping implicitly separates it from a host-command sibling, but no sibling is named, so the differentiation is inferred rather than stated.

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?

It clearly explains the two operating modes: config_mode=True (default) wraps commands in 'enable'/'configure terminal'/'end' so only configuration lines should be passed, while config_mode=False runs privileged-exec commands like 'show ip interface brief'. Concrete examples make the when-to-use split unambiguous, though no named alternative tool is offered for cases this tool doesn't cover.

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