Skip to main content
Glama

pt_apply_voice

Configure Cisco CME IP phones on a Packet Tracer router through IOS CLI, setting extensions, DHCP option 150, and voice VLAN with per-line validation.

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

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: it discloses per-line verification behavior, which aspects were measured vs unmeasured (with a warning on the unmeasured path), and the side effect that restart_phones power-cycles phones and leaves unreachable phones at 0.0.0.0. dry_run semantics (validate and return payload without sending) are also explicit.

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-loads the most critical constraint (2811 requirement) and uses a compact bullet list per parameter, with an example and a verification step at the end. Dense but each line carries information; the measured/unmeasured prose is borderline meta but earns its place by warning about untested paths.

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

Completeness5/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 zero schema descriptions, the description supplies prerequisites, per-parameter meaning, side effects, a canonical example, and a post-verification command. An output schema exists, so return-value detail is not required. Nothing essential for correct invocation is missing.

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%, yet the description documents nearly every parameter: source_ip meaning, extensions in both string and object/mac forms, max_ephones (1-36) and max_dn (1-144) ranges, auto_assign, the voice_vlan+switch+access_ports coupling, dhcp_pool/dhcp_network effects, restart_phones default, and dry_run. This meaningfully compensates for the empty schema descriptions.

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: configure Cisco CME voice (IP phones) via IOS CLI on a router. The scope (telephony-service, ephone, DHCP option 150) is concrete enough to distinguish it from generic apply tools. It stops short of explicitly naming which sibling to prefer for related tasks, so it is clear but not sibling-differentiating.

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?

Gives a hard prerequisite (router MUST be a 2811; 2911 rejects telephony-service) and a post-check recipe via pt_cli. This effectively tells the agent when the tool is appropriate and when it will fail. It does not explicitly compare against alternatives like pt_apply_vlan or pt_cli for the configuration itself, leaving that inference to the agent.

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