Skip to main content
Glama
itunified-io

mcp-opnsense

by itunified-io

opnsense_if_configure

Configure IPv4/IPv6 on an assigned OPNsense interface slot, supporting static, DHCP, DHCP6, track6, and none modes.

Instructions

Configure IPv4/IPv6 on an already-assigned optN slot via SSH. Supports static, dhcp, dhcp6, track6, and 'none'. Requires OPNSENSE_SSH_ENABLED=true and the opnsense-helpers/if_configure.php script installed on the target host.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
slotYesTarget slot (must already be assigned, e.g. 'opt1')
ipv4NoIPv4 address (e.g. '10.10.10.1'), or 'none' / 'dhcp'. Omit to leave IPv4 unchanged.
subnetNoIPv4 CIDR prefix length (0..32). Required when ipv4 is a literal address.
ipv6NoIPv6 address, or 'none' / 'dhcp6' / 'track6'. Omit to leave IPv6 unchanged.
subnetv6NoIPv6 CIDR prefix length (0..128). Required when ipv6 is a literal address.
track6_interfaceNoParent interface for track6 (e.g. 'wan'). Required when ipv6=track6.
track6_prefix_idNoNumeric prefix ID for track6 (optional)
descrNoOptional friendly description (max 120 chars)
no_filter_reloadNoSkip filter_configure() after applying (default false). Useful when batching multiple configures.
Behavior4/5

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

The description discloses that the tool works on already-assigned slots, supports various IP modes, and includes a no_filter_reload parameter to control behavior. It lacks details on error cases or side effects, but given no annotations, this is reasonable.

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?

Two sentences: first covers purpose and supported modes, second lists prerequisites. No redundant information, front-loaded with the key action.

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?

The tool has 9 parameters and no output schema. The description explains core purpose, supported modes, prerequisites, and one behavioral parameter (no_filter_reload). Missing details on return values or error handling, but sufficient for typical use.

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 100%, so baseline is 3. The description adds value by explaining supported IP modes (static, dhcp, etc.) and how parameters like subnet are conditionally required, which goes beyond the schema descriptions.

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 explicitly states 'Configure IPv4/IPv6 on an already-assigned optN slot via SSH' and lists supported modes. This clearly distinguishes it from sibling tools like opnsense_if_assign (for assignment) and opnsense_if_get (read-only).

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 mentions prerequisites (OPNSENSE_SSH_ENABLED=true and the required script), which guides when the tool can be used. However, it does not explicitly state when not to use it vs alternatives, though the context is implied.

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/itunified-io/mcp-opnsense'

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