Skip to main content
Glama
coreyhines

coreyhines/opnsense-mcp

fw_rules

Retrieve OPNsense firewall rules from the Automation API with optional filters by interface, action, status, or protocol.

Instructions

Get firewall rules exposed by the OPNsense Firewall Automation API (Firewall → Automation). Rules that exist only under the classic Firewall → Rules UI may not appear here; see OPNsense API docs. Returns the current rule set for context and reasoning.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
interfaceNoFilter by interface name (supports partial matching and groups)
actionNoFilter by action (pass, block, reject, etc.)
enabledNoFilter by enabled status
protocolNoFilter by protocol (tcp, udp, icmp, etc.)
Behavior3/5

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

No annotations are provided, so the description carries full burden. It states 'Get' implying a read-only operation, and mentions it returns the rule set. However, it does not disclose any additional behaviors such as authentication requirements, rate limits, or response structure.

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 two sentences with no fluff. The first sentence delivers the primary purpose, and the second adds a relevant caveat and purpose context. Every sentence earns its place.

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 simple list tool with detailed parameters, the description provides enough context: the API source, caveat, and return purpose. While no output schema exists, the description implies the result is a rule set, which is sufficient for an agent to understand the tool's role.

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?

The input schema has 100% description coverage, so the baseline is 3. The description does not add any extra meaning to the parameters beyond what is already in the schema.

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 verb 'Get' and specific resource 'firewall rules' from the OPNsense Firewall Automation API. It immediately distinguishes itself by noting that rules under the classic UI may not appear, differentiating from other tools on the server.

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 mentions a caveat about the classic UI and directs to 'see OPNsense API docs', but does not explicitly state when to use this tool vs its siblings (e.g., set_fw_rule, rmfw_rule). Guidance is implicit rather than explicit.

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

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