Skip to main content
Glama

pt_remove_acl_object

Removes an access control list (ACL) from a router via the object API and optionally clears the interface ACL binding before deletion.

Instructions

Removes an ACL using the object API (AclProcess.removeAcl + Port.setAclInID="").

Alternative to pt_remove_acl (CLI). If binding_interface is given, it first clears the port's AclInID/AclOutID and then removes the ACL.

Parameters:

  • router: device name in PT

  • name_or_number: identifier of the ACL to remove

  • binding_interface: optional, interface where the binding was

  • binding_direction: "in" or "out" (only with binding_interface)

  • dry_run: if True, returns the payload without sending it

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>"
    },
    "name": "pt_remove_acl_object"
  }
}

Input Schema

NameRequiredDescriptionDefault
routerYes
dry_runNo
name_or_numberYes
binding_directionNoin
binding_interfaceNo

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?

No annotations are provided, so the description carries the full burden, and it does disclose the key non-obvious side effect: it clears the port's AclInID/AclOutID before removing the ACL. It also discloses dry_run semantics (returns the payload without sending). It does not cover failure modes such as a missing ACL or a still-referenced binding, which matters for a destructive operation.

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?

One sentence for the core action plus a short conditional note and a compact parameter list; every line carries usable information, and the routing information is front-loaded.

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?

An output schema exists, so return values need not be explained, and the description covers the action, the sibling alternative, the side effect, and all five parameters. Only error and not-found behavior remain uncovered for what is a destructive tool with no annotations.

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

Parameters4/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 documents all five parameters including the in/out values for binding_direction and the constraint that binding_interface/direction only apply together. It adds meaning beyond the bare schema titles, though it does not say whether name_or_number accepts either a name or a numeric index distinctly.

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 ("Removes an ACL") and pins down the implementation path (object API via AclProcess.removeAcl, versus the CLI-based sibling pt_remove_acl). An agent can distinguish this from pt_remove_acl and pt_apply_acl_object without opening any 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?

Explicitly frames this as the "Alternative to pt_remove_acl (CLI)" and describes the conditional path when binding_interface is supplied. It stops short of saying which of the two callers should prefer, or when the binding must be cleared first, so selection still requires some inference.

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