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

Packet Tracer MCP — Node.js port

pt_apply_voice

Configure Cisco CME voice on a 2811 router through IOS CLI, setting up extensions, DHCP option 150 and voice VLANs so IP phones register, with each command verified and dry-run support.

Instructions

Cisco CME voice (IP phones) through IOS CLI, each line verified. The router MUST be a 2811 (PT's 2911 rejects telephony-service even with the uck9 license). Measured end to end on PT 9 (2811 + 3560-24PS + two 7960): CME, DHCP option 150 and real registration (show ephone: REGISTERED). Not measured: ephone + mac, switchport voice vlan (the reply warns).

  • source_ip: the router's IP on the phones' LAN (checked against PT).

  • extensions: ["1001", "1002"] or [{"number": "1001", "mac"?: "0001.4321.ABCD"}].

  • max_ephones 1-36, max_dn 1-144. auto_assign: auto assign 1 to N.

  • voice_vlan + switch + access_ports: switchport voice vlan on those ports.

  • dhcp_pool: option 150 ip <source_ip>; dhcp_network ("10.10.10.0/24") also sets network + default-router.

  • restart_phones: power-cycle every IP phone, then fast-forward (default True); phones already on keep 0.0.0.0 otherwise.

  • dry_run: validate and return the CLI/payload without sending.

Example: pt_apply_voice(router="R1", source_ip="10.10.10.1", extensions=["1001","1002"], dhcp_pool="VOICE", dhcp_network="10.10.10.0/24") Check: pt_cli(device="R1", commands=["show ephone"]).

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": {
      "router": "<router>",
      "source_ip": "<source_ip>",
      "extensions": "<extensions>"
    },
    "name": "pt_apply_voice"
  }
}

Input Schema

NameRequiredDescriptionDefault
max_dnNo
routerYes
switchNo
dry_runNo
dhcp_poolNo
source_ipYes
extensionsYes
voice_vlanNo
auto_assignNo
max_ephonesNo
access_portsNo
dhcp_networkNo
restart_phonesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.11.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the whole burden and does so well: it discloses that each CLI line is verified end-to-end, which parts were measured on PT 9 versus unmeasured (ephone+mac, switchport voice vlan) and that the reply warns about those. It also explains restart_phones behavior (power-cycle then fast-forward, otherwise phones keep 0.0.0.0) and dry_run's validate-only return, though it says nothing about idempotency, rollback of partially applied config, or the shape of the response.

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 most decision-relevant facts (tool purpose, 2811 requirement), then a tight per-parameter bullet list and a worked example plus a verification command. The telegraphic style costs some clarity in places, e.g. 'Not measured: ephone + mac, switchport voice vlan (the reply warns)' requires inference about what the warning means.

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 13-parameter mutation tool with no annotations and no output schema, the definition supplies hardware constraints, per-parameter semantics, dry-run behavior, a concrete example, and a verification step. Gaps remain around what the successful response contains, whether partial failures leave the router half-configured, and prerequisites such as the uck9 license being installed before calling.

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 documents nearly all 13 parameters with operational meaning: source_ip is the router IP on the phones' LAN and becomes option 150; extensions accepts plain strings or objects with optional mac; max_ephones 1-36 and max_dn 1-144 map to 'auto assign 1 to N'; voice_vlan/switch/access_ports map to switchport voice vlan; dhcp_network sets network plus default-router. Only the router identifier itself is left to the example.

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?

The description states a specific verb and resource: configuring Cisco CME IP telephony (telephony-service, ephones, DHCP option 150) through IOS CLI on a Packet Tracer router. It even scopes the acceptable hardware (2811, not 2911), which lets an agent tell immediately whether this tool applies rather than falling back to generic pt_cli commands.

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 gives a clear gating precondition (router MUST be a 2811 because PT's 2911 rejects telephony-service) and a post-check route via pt_cli(show ephone), plus explicit notes on what was not validated. It stops short of naming sibling alternatives (e.g., pt_configure_dhcp_server vs the dhcp_pool path) for an agent that only needs DHCP or VLAN work, so there is no explicit when-not-to-use guidance.

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