Skip to main content
Glama
AIops-tools

firewall-aiops

toggle_rule

Enable or disable a firewall filter rule with reversible undo support, staging changes until applied, and optional dry-run preview before committing.

Instructions

[WRITE][risk=medium] Enable/disable a filter rule; reversible.

Reads the rule first so the harness records an undo that restores its prior enabled state. Staged only — run apply_changes to make it live. Pass dry_run=True to preview.

Args: uuid: Rule uuid (OPNsense) or id (pfSense), from list_rules. enable: True to enable the rule, False to disable. dry_run: If True, preview without changing. target: Firewall target name from config; omit for the default.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uuidYes
enableYes
targetNo
dry_runNo
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. It discloses that the operation is reversible, that it performs a read-before-write to record an undo, that it is staged (not immediately live), and that dry_run is available for preview. It declares medium risk. This is strong behavioral disclosure for a write tool with zero annotation support. It doesn't detail auth requirements, but for a firewall rule toggle these are adequate.

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 description is tightly structured with a one-line summary up front, followed by clearly labeled Args. Every sentence carries information: reversibility, undo behavior, staging, dry_run support, and parameter meanings. No wasted words or redundant restatement of the name.

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?

Given 4 parameters at 0% schema coverage, no annotations, and no output schema, the description does substantial work. It covers all parameters, the undo/staging workflow, and platform differences. It doesn't describe return values or error cases, but with no output schema and a reversible toggle operation, this is a minor gap rather than critical.

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 fully compensate. It explains uuid (rule uuid for OPNsense, id for pfSense, sourced from list_rules), enable semantics (true=enable, false=disable), dry_run behavior (preview without changing), and target (firewall name from config, default when omitted). All four parameters are given meaning beyond bare names and types.

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 clearly states 'Enable/disable a filter rule; reversible' with a specific verb+resource (toggle/enable-disable + filter rule). The [WRITE] tag and risk level distinguish it functionally from the many read-only sibling tools like list_rules, rule_detail, rule_stats. The stated behavior of being reversible distinguishes it from destructive write tools like kill_states.

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?

The description explicitly explains the workflow: reads the rule first for undo recording, is staged only requiring apply_changes to go live, and dry_run=True for preview. It also explains target (firewall name from config, omit for default) and uuid semantics differ per platform (OPNsense vs pfSense). This gives clear when/how guidance including the apply_changes dependency.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AIops-tools/Firewall-AIops'

If you have feedback or need assistance with the MCP directory API, please join our Discord server