Skip to main content
Glama
lucamarien

OPNsense MCP Server

by lucamarien

opn_scan_config

Scan OPNsense configuration to build a cached inventory of firmware, plugins, DHCP, DNS, interfaces, services, and config sections. Use force=True to rescan after manual changes.

Instructions

Scan the OPNsense configuration and build a cached inventory.

Use this FIRST when starting a new session. Downloads the full config, parses it into queryable sections, and detects runtime state (services, DHCP backend, DNS servers). Results are cached for the session — subsequent calls return the cached version unless force=True.

Call with force=True to rescan after manual config changes on the firewall. Use opn_get_config_section(section) to drill into specific sections.

Returns: dict with 'firmware', 'plugins', 'dhcp', 'dns', 'interfaces', 'services', and 'config_sections' (list of available sections with sizes).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

Although no annotations are provided, the description fully discloses behavior: downloads full config, parses into sections, detects runtime state, caches results, and that subsequent calls return cached version unless force=True. It also lists the returned keys. This is comprehensive for a tool with no annotations.

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 short paragraphs, each serving a clear purpose: purpose/initial use, caching behavior, and force usage with sibling recommendation. No redundant sentences. Front-loaded with the main verb.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (full config scan) and the presence of an output schema, the description still details what the return dict contains (firmware, plugins, dhcp, etc.) and notes caching behavior. It also mentions the sibling tool for deeper access. This is complete and leaves no ambiguity.

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

Parameters5/5

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

The only parameter is 'force' (boolean with default false). The description adds meaning by explaining 'Call with force=True to rescan after manual config changes on the firewall.' This clarifies when and why to use it. Schema coverage is 0% but the description fully compensates.

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?

Description clearly states 'Scan the OPNsense configuration and build a cached inventory.' It specifies the action (scan/build), resource (configuration), and outcome (cached inventory). It also distinguishes itself from sibling tools by recommending opn_get_config_section for drilling into specific sections.

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

Usage Guidelines5/5

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

Explicitly instructs to 'Use this FIRST when starting a new session.' Provides clear guidance on when to use force=True (after manual config changes) and directs to a sibling tool for further drilling: 'Use opn_get_config_section(section) to drill into specific sections.' This covers both when to use and when not to.

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