Skip to main content
Glama
lucamarien

OPNsense MCP Server

by lucamarien

opn_update_dnsmasq_range

Modify a dnsmasq DHCP range by UUID, updating only the provided fields (e.g., address range, lease time), then automatically reconfigure the service for immediate effect.

Instructions

Update a dnsmasq DHCP range by UUID and apply the configuration.

Use this when you need to change the address range, lease time, RA settings, or other properties. Only the parameters you provide are changed; all other settings are preserved.

After update, the dnsmasq service is automatically reconfigured. Changes take effect immediately. Use opn_list_dnsmasq_ranges first to find the UUID.

Parameters:

  • uuid: range UUID (from opn_list_dnsmasq_ranges)

  • interface: network interface name (e.g. 'lan', 'opt1')

  • start_addr: start of address range

  • end_addr: end of address range

  • prefix_len: IPv6 prefix length (e.g. '64')

  • ra_mode: Router Advertisement mode ('slaac', 'ra-stateless', 'ra-only')

  • lease_time: lease duration (e.g. '24h', '1h')

  • description: human-readable description

  • enabled: enable/disable the range

Returns: dict with 'result' (str), 'uuid' (str), and 'reconfigure_status'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uuidYes
interfaceNo
start_addrNo
end_addrNo
prefix_lenNo
ra_modeNo
lease_timeNo
descriptionNo
enabledNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations, the description discloses that after update the service is automatically reconfigured and changes take effect immediately. It also explains that only provided parameters are changed. No mention of permissions or error handling, but the behavioral impact is clear.

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?

Well-structured: opening statement, usage note, parameter list, return info. The parameter list is somewhat lengthy but each entry is necessary. Conciseness could be improved by grouping optional params, but overall it's readable.

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 complexity (9 params, no annotations, update operation), the description is thorough. It covers partial update semantics, service reconfiguration, use of UUID, and return value. Only minor gaps like error handling, but sufficient for an agent.

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?

All 9 parameters are listed with explanations and examples (e.g., 'lease_time: lease duration (e.g. '24h', '1h')'). Since the schema has no descriptions, the description fully compensates with meaningful semantics.

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 clearly states 'Update a dnsmasq DHCP range by UUID and apply the configuration.' It specifies the verb (update), resource (dnsmasq DHCP range), and distinguishes from siblings like add and delete by focusing on change.

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?

Explicitly says 'Use this when you need to change...' and advises to 'Use opn_list_dnsmasq_ranges first to find the UUID.' It mentions partial updates ('Only parameters you provide are changed'). However, it does not explicitly state when not to use it or compare to related tools like opn_reconfigure_dnsmasq.

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