Skip to main content
Glama

pt_apply_acl_object

Applies an ACL to a Packet Tracer router via the object API instead of CLI, reducing parsing and modal-popup errors; supports optional interface binding and dry runs.

Instructions

Applies an ACL using PT's object API (AclProcess.addAcl/addStatement) instead of CLI through configureIosDevice.

Same input as pt_apply_acl. It is faster (no CLI parsing) and less prone to raising modal popups that break the bridge if a line goes wrong.

Limitation: binding only works on the catalog's physical ports (e.g. GigabitEthernet0/0). For sub-interfaces (G0/0/1.20) use pt_apply_acl (CLI), since port.setAclInID only applies to the base port and not the sub-interface.

Pipeline: validate the plan → generate statements (without the "access-list NAME " prefix) → run addAcl + addStatement one by one + optional binding.

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>",
      "name_or_number": "<name_or_number>",
      "acl_type": "<acl_type>",
      "entries": "<entries>"
    },
    "name": "pt_apply_acl_object"
  }
}

Input Schema

NameRequiredDescriptionDefault
routerYes
dry_runNo
entriesYes
acl_typeYes
name_or_numberYes
replace_existingNo
binding_directionNoin
binding_interfaceNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A4.1/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 the modal-popup/bridge-failure risk, the sub-interface binding limitation, and the internal call sequence (addAcl + addStatement one by one). It leaves gaps around what replace_existing=true actually destroys and how dry_run behaves, which matter for a mutating tool.

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?

Three short labeled blocks — comparison, limitation, pipeline — front-load the differentiation and keep each sentence earning its place. The trailing 'Pipeline:' sentence is slightly telegraphic but still useful sequencing information.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be described, and the behavioral/limitation context is strong. However, for an 8-parameter mutating tool with a default-true replace_existing and no annotations, the missing parameter semantics leave an agent unable to predict what a call will overwrite.

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

Parameters2/5

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

Schema coverage is 0% across 8 parameters, so the description must compensate and largely does not: dry_run, replace_existing (default true, a destructive default), acl_type, binding_direction, and binding_interface are never explained. It only clarifies the entries format (statements without the 'access-list NAME ' prefix) and alludes to optional binding.

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?

The description opens with a specific verb+resource (applies an ACL via PT's object API, AclProcess.addAcl/addStatement) and explicitly contrasts it with the CLI path through configureIosDevice, so the agent can distinguish it from pt_apply_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 Guidelines5/5

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

It names the alternative (pt_apply_acl) and the exact condition that forces its use: sub-interfaces like G0/0/1.20, because port.setAclInID only binds the base port. It also states the positive selection case (faster, no CLI parsing, fewer modal popups).

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