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

Packet Tracer MCP — Node.js port

pt_apply_qos

Configures QoS MQC on a Cisco router via IOS CLI, generating verified class-maps, a policy-map with fair-queue, and an outbound service-policy; dry_run previews CLI before deployment.

Instructions

Configures QoS (MQC) on a router through IOS CLI, each line verified: one class-map match-any per class, a policy-map whose class-default gets fair-queue, and service-policy output on the interface. Measured on a 2911.

  • router / interface: e.g. "R1", "GigabitEthernet0/1" (the WAN side).

  • policy_name: one word, e.g. "WAN-OUT".

  • classes: [{"name", "match_dscp"?, "match_protocol"?, "priority_kbps"|"bandwidth_kbps"}]. At least one match per class (both = match-any); exactly one action. Measured: match_protocol "rtp", match_dscp "ef", priority_kbps. Other DSCP values, other protocols and bandwidth_kbps are accepted but NOT verified (warning).

  • direction: "output" only (queuing actions are outbound in IOS).

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

Example: pt_apply_qos(router="R1", interface="GigabitEthernet0/1", policy_name="WAN-OUT", classes=[{"name": "VOICE", "match_protocol": "rtp", "match_dscp": "ef", "priority_kbps": 512}]) Check: pt_read_qos(device="R1").

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>",
      "interface": "<interface>",
      "policy_name": "<policy_name>",
      "classes": "<classes>"
    },
    "name": "pt_apply_qos"
  }
}

Input Schema

NameRequiredDescriptionDefault
routerYes
classesYes
dry_runNo
directionNooutput
interfaceYes
policy_nameYes

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 full burden and does well: it discloses that each CLI line is verified, that only a specific combination (match_protocol rtp + match_dscp ef + priority_kbps) was measured on a 2911, and that other values are accepted but unverified with a warning. It does not say whether existing QoS config is overwritten, whether the operation is idempotent, or what happens on partial failure.

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 action, then a scannable bullet list per parameter and a worked example at the end. Dense but every line carries information; the repeated "Measured on a 2911" caveat is the only mild redundancy.

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 six-parameter mutation tool with no annotations and no output schema, the definition covers argument construction, verification expectations, dry-run validation, and a full example. What remains unstated is the effect on pre-existing QoS configuration and the shape of the success response beyond the pt_read_qos reference.

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 coverage is 0%, so the description must compensate for all six parameters — and it does, defining router, interface (with a WAN-side hint), policy_name (one word), direction (output only, with rationale), and dry_run. The classes parameter gets real semantics the schema lacks: at least one match per class, both matches means match-any, exactly one action, and the priority_kbps vs bandwidth_kbps distinction.

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?

States a specific verb and resource ("Configures QoS (MQC) on a router through IOS CLI") plus the concrete artifacts it creates: class-map, policy-map with fair-queue class-default, and service-policy on the interface. An agent can immediately distinguish it from pt_read_qos (read) and pt_apply_acl (different feature).

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?

Provides an explicit verification path ("Check: pt_read_qos(device=\"R1\")") and a dry_run mode for validate-without-send, which tells the agent when to use which mode. It also restricts direction to output only with a reason. It stops short of stating when not to use this tool versus siblings like pt_apply_voice or pt_apply_interface_tuning.

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