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

Packet Tracer MCP — Node.js port

pt_apply_acl_object

Applies ACLs to Packet Tracer routers through the object API rather than CLI, reducing parsing errors and popups. Use for physical-port bindings; sub-interfaces require the CLI-based alternative.

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.11.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does well: it discloses the underlying object-API path, the concrete failure mode it avoids (modal popups breaking the bridge), and a hard capability limit on sub-interface binding. It does not explain the effect of replace_existing=true (the destructive-looking default) or how dry_run changes behavior, which keeps it short of a 5.

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 primary action and the sibling contrast, then cleanly separated into a Limitation block and a Pipeline block. Every sentence carries information; only the Pipeline sentence is somewhat terse to the point of ambiguity (what 'validate the plan' involves is left implicit).

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?

For an eight-parameter mutation tool with no annotations and no output schema, the description covers mechanism, failure modes, and interface limitations well but omits the preconditions an agent most needs: what replace_existing=true destroys, what dry_run returns, and what a successful call yields. Adequate for choosing the tool, incomplete for predicting its effects.

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%, so the description must compensate, and it does so for only part of the surface: it correctly specifies that entries must be statements without the "access-list NAME " prefix and constrains binding_interface to physical ports. It says nothing about acl_type values, name_or_number format, router, binding_direction, dry_run, or replace_existing, leaving half the eight parameters undocumented anywhere.

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 (applies an ACL) plus the exact mechanism used (AclProcess.addAcl/addStatement rather than CLI via configureIosDevice). It explicitly contrasts itself with the sibling pt_apply_acl, so an agent can tell the two apart 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?

Gives an explicit selection rule: prefer this tool because it is faster and avoids modal popups that break the bridge, but fall back to pt_apply_acl (CLI) for sub-interfaces such as G0/0/1.20 because port.setAclInID only applies to the base port. When-to-use, when-not-to-use, and the named alternative are all present.

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