Skip to main content
Glama
gensecaihq

pfSense MCP Server

by gensecaihq

get_firewall_log

Read-only

Retrieves and filters firewall log entries from pfSense by protocol, interface, source/destination IP, action, or destination port.

Instructions

Get firewall log entries with optional filtering

WARNING (tracked by upstream PR #860): this endpoint may fail on firewalls with large log files due to a known pfSense REST API bug (server-side OOM at the 512 MB PHP limit). If it fails, suggest reviewing logs via SSH or the pfSense web UI instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
linesNoNumber of log lines to retrieve (default 20, max 50)
protocolNoFilter by protocol (tcp, udp, icmp)
interfaceNoFilter by interface (wan, lan, etc.)
source_ipNoFilter by source IP address
action_filterNoFilter by action (pass, block, reject)
destination_ipNoFilter by destination IP address
destination_portNoFilter by destination port

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description adds valuable behavioral context by warning about a known upstream failure (server-side OOM on large logs) and providing a fallback. This goes beyond the structured annotations to disclose reliability caveats.

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 concise with the purpose front-loaded and a necessary warning. The warning is slightly verbose but each sentence serves a purpose; no filler or redundant content.

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 read-only tool with full schema parameter descriptions and an output schema, the description adequately covers the main caveat (potential failure on large logs). It does not explain return format or pagination, but those are likely covered by the output schema.

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 all 7 parameters individually described, so the schema carries the parameter semantics. The description's 'optional filtering' adds no new information beyond what the schema already provides.

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 states 'Get firewall log entries with optional filtering' – a specific verb and resource that clearly identifies the tool's function. It does not explicitly contrast with related sibling tools like search_logs_by_ip or analyze_blocked_traffic, so it lacks sibling differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit guidance on when to use this tool versus alternatives. The warning only suggests SSH/web UI as a fallback after failure, not as a primary usage guideline, and no sibling tools are mentioned.

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/gensecaihq/pfsense-mcp-server'

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