Skip to main content
Glama
coreyhines

coreyhines/opnsense-mcp

fw_rules

Retrieve firewall rules from OPNsense Automation API. Filter by interface, action, enabled status, or protocol to inspect specific rule sets.

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 bears the full burden. It states it returns the rule set, but does not explicitly declare read-only nature, pagination, performance, or data format. The limitation about classic UI is disclosed, but more behavioral detail could be added.

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 three sentences, each serving a distinct purpose: stating the action, clarifying scope, and indicating return value. No fluff or redundancy.

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 no output schema and four optional parameters, the description adequately covers purpose, scope, and return. It lacks explicit mention of read-only behavior or example usage but is largely complete.

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?

Schema coverage is 100% with descriptive parameter names and descriptions in the schema. The tool description adds no additional semantic value beyond the schema, so a baseline score of 3 is appropriate.

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 'Get firewall rules' with a specific source (OPNsense Firewall Automation API) and distinguishes from classic UI rules. This sets it apart from sibling tools that modify or delete rules.

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?

The description notes a key limitation (rules only from Automation API, not classic UI) and directs to OPNsense docs for more details. It implicitly indicates when to use this tool, but lacks explicit comparison with sibling tools like mkfw_rule or rmfw_rule.

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