Skip to main content
Glama
lucamarien

OPNsense MCP Server

by lucamarien

opn_update_alias

Update an existing firewall alias by UUID to modify its name, content, description, type, or enabled status.

Instructions

Update an existing firewall alias by UUID (read-modify-write).

Use this when you need to rename an alias, change its content (IPs, networks, ports), modify its description, or change its type. Only the parameters you provide are changed; all other settings are preserved.

This does NOT require savepoint protection — aliases are metadata definitions that only affect traffic when referenced by a firewall rule.

Use opn_list_firewall_aliases first to find the UUID.

Parameters:

  • uuid: alias UUID (from opn_list_firewall_aliases)

  • name: new alias name (alphanumeric and underscores only)

  • content: new alias entries separated by newlines

  • description: new description

  • alias_type: new type ('host', 'network', 'port', 'urltable', 'geoip')

  • enabled: enable/disable the alias

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uuidYes
nameNo
contentNo
descriptionNo
alias_typeNo
enabledNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

No annotations provided, so the description carries full burden. It describes the read-modify-write behavior, states that only provided parameters are changed, and notes that aliases are metadata definitions not affecting traffic until referenced. This provides good insight into the tool's behavior, though it could mention error handling or side effects.

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 concise and well-structured: a clear action statement, usage scenarios, behavioral note, prerequisite, parameter list with descriptions, and return format. No unnecessary words, highly front-loaded.

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 (6 parameters, 1 required) and the presence of an output schema, the description is complete. It covers purpose, when to use, prerequisites, parameter details, and return value. It also provides a behavioral note about savepoint protection.

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%, but the description adds meaning to each parameter: uuid as alias UUID from list, name format, content separated by newlines, alias_type with enumerated values, and enabled as boolean. This far exceeds the bare schema.

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 it updates an existing firewall alias by UUID, specifying the exact actions (rename, change content, description, type) and differentiates from siblings like opn_add_alias, opn_delete_alias, and opn_toggle_alias.

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?

It explicitly says when to use (rename, change content, etc.) and recommends using opn_list_firewall_aliases first. It also explains that savepoint protection is not needed. However, it does not explicitly contrast with alternative update tools for other resources (e.g., opn_update_firewall_rule), but it is clear within its own domain.

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