Skip to main content
Glama
lucamarien

OPNsense MCP Server

by lucamarien

opn_toggle_firewall_rule

Toggle a firewall rule's enabled state with auto-revert after 60 seconds unless changes are confirmed. Use for temporary testing or re-enabling disabled rules.

Instructions

Toggle a firewall filter rule's enabled/disabled state with savepoint protection.

Use this when you need to temporarily disable a rule for testing or re-enable a previously disabled rule. The toggle flips the current state. Changes auto-revert in 60 seconds unless confirmed with opn_confirm_changes. Use opn_list_firewall_rules first to find the UUID of the rule. Returns: dict with 'revision' (str) for confirming and 'uuid' (str).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uuidYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

Discloses key behaviors: toggle flips state, changes auto-revert in 60 seconds, requires confirmation, and returns revision and uuid. With no annotations, the description fully covers the safety and mutability profile.

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?

The description is well-structured with three short paragraphs, each adding value. However, it could be slightly more concise by combining sentences, but overall it is efficient.

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

Completeness5/5

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

Given the simple single-parameter tool, the description covers prerequisites, return values, and the auto-revert mechanism. The output schema existence further supports completeness.

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?

The only parameter 'uuid' is explained in context: it is the UUID of the firewall rule, obtained via opn_list_firewall_rules. This adds significant meaning beyond the schema's type-only definition.

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 the tool toggles a firewall rule's enabled/disabled state. It specifies the resource (firewall filter rule) and action (toggle), distinguishing it from sibling tools like opn_toggle_alias which toggles aliases.

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?

Explicitly states when to use (temporarily disable for testing or re-enable), advises to use opn_list_firewall_rules first to get UUID, and mentions auto-revert and need to confirm with opn_confirm_changes. Provides clear workflow guidance.

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/lucamarien/opnsense-mcp-server'

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