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
| Name | Required | Description | Default |
|---|---|---|---|
| router | Yes | ||
| classes | Yes | ||
| dry_run | No | ||
| direction | No | output | |
| interface | Yes | ||
| policy_name | Yes |