Skip to main content
Glama
lucamarien

OPNsense MCP Server

by lucamarien

opn_firewall_log

Retrieve recent firewall log entries to inspect blocked and passed traffic, troubleshoot connectivity issues, and audit firewall activity with optional filters by IP, action, or interface.

Instructions

Get recent firewall log entries (blocked and passed packets).

Use this when you need to check what traffic has been blocked or passed, troubleshoot connectivity issues, or audit firewall activity. All filter parameters are optional substring matches applied client-side. Returns: dict with 'entries' (list of log rows) and 'total' (count after filtering).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
source_ipNo
destination_ipNo
actionNo
interfaceNo
limitNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

With no annotations, the description must disclose behavior. It explains that filter parameters apply substring matches client-side and outlines the return format. However, it omits details like default time range, ordering, or any destructive implications (none expected). The description is adequate but not exhaustive.

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 concise with three sentences. The first sentence immediately states the purpose, and subsequent sentences add usage context and behavior. Every sentence adds value, and there is no 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?

Given the existence of an output schema, the description adequately explains the return structure (entries list and total count). It covers the key aspects of the tool for typical usage. However, it does not mention potential pagination or default time range, which could enhance completeness.

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 description coverage is 0%, so the description must compensate. It states that all filter parameters are optional substring matches applied client-side, which adds meaning beyond the schema. However, it does not describe each parameter individually (e.g., valid values for 'action'), and the general description is somewhat vague.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Get recent firewall log entries (blocked and passed packets)', specifying the verb, resource, and scope. However, it does not explicitly distinguish from sibling tools like opn_pf_states or opn_interface_stats, which could serve similar purposes.

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 provides explicit use cases: 'check what traffic has been blocked or passed, troubleshoot connectivity issues, or audit firewall activity'. However, it lacks guidance on when not to use this tool or alternative tools for similar tasks, such as opn_pf_states for stateful inspection.

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