Skip to main content
Glama

pt_read_qos

Reads a device's real QoS configuration (class-maps and policy-maps) to verify applied settings and inspect match types, priority, bandwidth, and queue details.

Instructions

Reads a device's REAL QoS configuration: class-maps and policy-maps.

Read only (PT's API cannot create class/policy-maps): to CONFIGURE QoS use pt_apply_qos. This tool checks that it was applied.

Returns, per class-map, its match type and CLI; per policy-map, its classes in order, each with its name, priority (kbps), bandwidth (kbps), fair-queue and whether it is class-default. PT does not give a class its name, so names come from the running-config, matched by position.

Parameters:

  • device: router name in PT.

Example: 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": {
      "device": "<device>"
    },
    "name": "pt_read_qos"
  }
}

Input Schema

NameRequiredDescriptionDefault
deviceYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.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 largely meets it: it declares read-only behavior, discloses a platform limitation (no create capability), and warns that class names are reconstructed from running-config by position because PT does not store them — a caveat that directly affects trust in the output. It does not say what happens if QoS is unconfigured on the device or if the named device does not exist, leaving the empty/error case unstated.

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 purpose, then the read-only rule, then returns, then parameters, then a concrete example — a sound structure with no filler sentences. The per-field enumeration of priority, bandwidth, fair-queue and class-default is somewhat lengthy and partly duplicates what the output schema already conveys, though the adjacent note about name provenance is not redundant.

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 single-parameter read tool this is complete: the agent knows what it returns, why it differs from the apply tool, and the one data-quality quirk that could mislead it. An output schema exists and would cover raw return shape, so the remaining prose is advantage rather than padding.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% for the single parameter, so the description must compensate. 'device: router name in PT' clarifies that the value is a device name string rather than an ID or index, which is real added meaning, but it gives no hint about naming conventions (e.g. case sensitivity, whether switches are valid targets) that would prevent a bad call.

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: 'Reads a device's REAL QoS configuration: class-maps and policy-maps.' It immediately distinguishes itself from the sibling mutation tool pt_apply_qos, and the 'REAL' qualifier signals it reflects live device state rather than intent, which is a meaningful scope claim rather than filler.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly routes the agent: for configuration, use pt_apply_qos; this tool verifies that it was applied. It also explains why the split exists (PT's API cannot create class/policy-maps), so the agent understands this is not a preference but a hard capability boundary.

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