Skip to main content
Glama
d3ltasecurity

opnsense-guard-mcp

firewall_log

Read-onlyIdempotent

Retrieve recent OPNsense pass/block log entries and filter by IP, port, interface, or action to investigate firewall traffic decisions.

Instructions

Recent firewall log entries (pass/block decisions).

Args: limit: number of log lines to return (1-1000). search: optional filter phrase (IP, port, interface, action).

Input Schema

NameRequiredDescriptionDefault
limitNo
searchNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds that results are 'recent' entries with pass/block decisions and that search filters across IP, port, interface, or action, but it does not state ordering (newest first?), truncation behavior, or how the search matches (substring vs token).

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?

Front-loaded with the resource and content in one line, followed by a compact args block. No filler, though the args block duplicates the parameter names rather than adding narrative around them.

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 two-parameter read-only log fetch with annotations covering safety and no output schema, the description supplies enough: what it returns, the size bound, and the filter dimensions. The remaining gaps (sort order, default limit of 100, result truncation) are minor, and the default is already in the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% — the schema only carries types, titles, and defaults with no descriptions — so the description must compensate, and it largely does: it bounds limit to 1-1000 (a constraint absent from the schema) and enumerates what search can match (IP, port, interface, action). It stops short of saying whether search is a substring or multi-token match.

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?

States a specific verb-less but clear resource: 'Recent firewall log entries (pass/block decisions)' tells the agent exactly what data comes back. It implicitly distinguishes itself from siblings like system_log or firewall_states by naming the pass/block decision content, but never explicitly contrasts with them.

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?

There is no statement of when to use this versus system_log, firewall_states, or firewall_rules, all of which sit nearby in the sibling list. The agent must infer that this is the tool for reading log lines rather than general system logs or live connection state.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.