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

Packet Tracer MCP — Node.js port

pt_apply_acl

Validates ACL rules, checks the router and interface in Packet Tracer, generates Cisco IOS CLI, and applies or dry-runs the ACL, optionally binding it to an interface.

Instructions

Applies an ACL to a router in PT's active topology: validates (ranges, types, IPs/wildcards, unreachable rules), checks router/interface against PT, generates IOS CLI and sends it through configureIosDevice.

  • router: device name in PT (see pt_query_topology).

  • name_or_number: 1-99/1300-1999 standard, 100-199/2000-2699 extended, any word = named ACL.

  • acl_type: "standard" (source only) or "extended" (source, destination, protocol, ports).

  • entries: list of dicts: action "permit"|"deny" (required); protocol "ip"|"icmp"|"tcp"|"udp"|... (default "ip"); source "any" | "host A.B.C.D" | "A.B.C.D wildcard" (required); destination (extended); source_port_op/source_port, dest_port_op/dest_port/dest_port_end (TCP/UDP, e.g. "eq"/80); icmp_type ("echo", "echo-reply", ...); tcp_flags (["established"]); log (bool); remark.

  • binding_interface: apply the ACL to this interface; empty = only define it.

  • binding_direction: "in" (default) or "out"; used only with binding_interface.

  • dry_run: validate and return the CLI/JS without sending.

Example entry: {"action": "deny", "protocol": "icmp", "source": "192.168.1.0 0.0.0.255", "destination": "192.168.0.0 0.0.0.255", "icmp_type": "echo"}. Full example: resource pt://guide, "Tool notes".

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"
  }
}

Input Schema

NameRequiredDescriptionDefault
routerYes
dry_runNo
entriesYes
acl_typeYes
name_or_numberYes
binding_directionNoin
binding_interfaceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.11.0

TDQS

A4/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 that the tool validates ranges/types/IPS/wildcards and unreachable rules, checks router and interface against live PT state, generates IOS CLI, and actually pushes it to the device. The dry_run escape hatch is explicitly described as validate-and-return-without-sending. Gaps remain on overwrite semantics (what happens to a pre-existing ACL with the same name or an existing interface binding) and error behavior.

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?

It is front-loaded with the one-sentence summary, then a clean bulleted parameter block and a concrete example. The length is justified by seven undocumented parameters and a nested entry grammar, though the trailing pointer to 'resource pt://guide' is terse enough to be slightly cryptic.

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 mutating tool with seven parameters, a nested object schema, and no output schema or annotations, the description covers what it needs to: inputs, validation behavior, side effects, and a safe preview mode. It could be stronger by stating what the returned CLI/JS looks like in dry_run mode and how re-applying an ACL behaves.

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%, so the description must supply all meaning, and it does: it explains name_or_number ranges (1-99/1300-1999 vs 100-199/2000-2699 and the named-ACL case), the acl_type distinction, the full entries dict grammar (action, protocol, source/destination forms, port operators, icmp_type, tcp_flags, log, remark), and the binding and dry_run semantics with defaults. A worked example entry closes the loop.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence gives a specific verb and resource ('Applies an ACL to a router in PT's active topology') and enumerates the internal pipeline: validation, PT-state checks, IOS CLI generation, and dispatch via configureIosDevice. That is far more than a restatement of the name. It does not, however, distinguish itself from the sibling pt_apply_acl_object or pt_read_acl, so an agent still has to infer which ACL tool is appropriate.

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

Usage Guidelines3/5

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

The description gives situational guidance for two parameters (binding_interface empty = define only; dry_run = validate without sending) and points to pt_query_topology for device names, which implies the workflow. But it never states when to use this tool instead of pt_apply_acl_object, pt_read_acl, or pt_cli, nor does it state prerequisites such as an active PT topology being connected.

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