Skip to main content
Glama

pt_read_acl

Reads router ACLs, shows their commands and applied ports/directions, and flags ports referencing missing ACLs to verify ACL deployment.

Instructions

Reads the REAL ACLs of a router: each ACL with its commands, and which ports have an ACL applied in which direction.

Flags ports that reference an ACL that does not exist. Use it to check a pt_apply_acl.

Parameters:

  • device: router name; empty = every device with ACLs.

Example: pt_read_acl(device="R1")

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "pt_read_acl"
  }
}

Input Schema

NameRequiredDescriptionDefault
deviceNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A4.5/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the burden, and it does disclose meaningful behavior beyond a bare read: it returns per-ACL command lists, port-to-ACL bindings with direction, and it explicitly flags ports referencing an ACL that does not exist. It does not describe error behavior for an unknown device name, which is the main remaining gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first sentence front-loads what is returned, the second gives the use case, and the trailing lines handle the parameter and an example. Every line carries information and nothing is repeated from the schema or annotations.

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 single-parameter read tool with an output schema, this covers purpose, parameter semantics, return content, and a diagnostic edge case. Only failure handling for an invalid device name is left unstated, which is a minor omission rather than a blocking gap.

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% and the single "device" property has only a default, so the description must compensate. It does so precisely: "router name; empty = every device with ACLs" defines both the expected value and the meaning of the default, plus a concrete call 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?

"Reads the REAL ACLs of a router" names a specific verb and resource, then scopes what is returned: each ACL with its commands plus which ports apply each ACL and in which direction. That is enough to distinguish it from the write-side siblings pt_apply_acl and pt_remove_acl without opening either schema.

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?

"Use it to check a pt_apply_acl" gives an explicit trigger for invoking the tool, tying it to the apply sibling, and the dangling-reference flagging gives a second diagnostic use case. It stops short of stating when not to use it or what to do if the named device has no ACLs, so it is clear context rather than full routing.

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