Skip to main content
Glama
lucamarien

OPNsense MCP Server

by lucamarien

opn_set_dnsbl

Update DNSBL blocklist settings, including providers, allowlists, and blocklists, while preserving other configuration and applying changes immediately.

Instructions

Update a DNSBL blocklist configuration (read-modify-write).

Use this when you need to change DNSBL settings — providers, allowlists, blocklists, etc. Only the parameters you provide are changed; all other settings are preserved. Changes are applied immediately.

Get the UUID from opn_list_dnsbl first.

Parameters:

  • uuid: blocklist UUID from opn_list_dnsbl

  • enabled: enable/disable this blocklist

  • providers: comma-separated provider shortcodes (e.g. 'hgz002,hgz011,ag')

  • custom_urls: newline-separated custom blocklist URLs

  • allowlists: newline-separated allowlist entries (domains or regex patterns)

  • blocklists: newline-separated custom block domains

  • wildcards: newline-separated wildcard block domains

  • source_nets: comma-separated source networks (empty = all)

  • nxdomain: return NXDOMAIN instead of 0.0.0.0 for blocked domains

  • cache_ttl: cache TTL in seconds for DNSBL responses

  • description: human-readable description

Returns: dict with 'result', 'dnsbl_status', and 'service_status'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uuidYes
enabledNo
providersNo
custom_urlsNo
allowlistsNo
blocklistsNo
wildcardsNo
source_netsNo
nxdomainNo
cache_ttlNo
descriptionNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

No annotations are provided, so the description carries full burden. It states 'Only the parameters you provide are changed; all other settings are preserved' and 'Changes are applied immediately,' which are useful. However, it omits details like authentication requirements, concurrency behavior, or rollback, leaving gaps for a mutation tool.

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 well-structured: purpose line, usage guidance, pre-requisite, then parameter list. It is clear and concise, though the parameter list is lengthy. Every sentence serves a purpose with no fluff.

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?

Given 11 parameters with 1 required and the mention of output keys ('result', 'dnsbl_status', 'service_status'), the description covers main aspects. However, it does not explain error conditions or what the 'service_status' field indicates, leaving minor gaps for a complex tool.

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?

Schema description coverage is 0%, so the description must compensate. It provides a bullet list explaining each parameter (e.g., 'uuid: blocklist UUID from opn_list_dnsbl', 'enabled: enable/disable this blocklist'), adding clear meaning beyond the schema definitions.

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 DNSBL blocklist configuration (read-modify-write).' It uses a specific verb ('Update') and identifies the resource ('DNSBL blocklist configuration'), distinguishing it from sibling tools like opn_list_dnsbl (list) and opn_get_dnsbl (get).

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 explicitly instructs 'Use this when you need to change DNSBL settings' and provides a pre-requisite: 'Get the UUID from opn_list_dnsbl first.' However, it does not mention when not to use it or compare with sibling tools like opn_add_dnsbl_allowlist for single entry changes, missing exclusion guidance.

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