Skip to main content
Glama

opnsense_search_aliases

Read-onlyIdempotent

Search configured OPNsense firewall aliases by name, type, or content. Retrieve alias configuration details, filter results, and choose Markdown or JSON output.

Instructions

Search configured firewall aliases and their types, contents and descriptions.

This returns the alias configuration. For a URL table or GeoIP alias the configured value is a feed URL or a country list, not the addresses currently loaded; use opnsense_get_alias_contents to see what pf actually holds.

Args: params (SearchAliasesInput): Validated input containing: - search (str): Free-text filter (default: "") - alias_type (str): Restrict to one alias type (default: "") - limit (int): Max records, 1-200 (default: 25) - offset (int): Records to skip (default: 0) - response_format (ResponseFormat): 'markdown' or 'json'

Returns: str: Markdown table, or JSON with this schema: { "total": int, "count": int, "offset": int, "has_more": bool, "next_offset": int|null, "aliases": [ {"uuid": str, "name": str, "type": str, "enabled": str, "content": str, "description": str} ] }

Examples: - Use when: "What aliases exist?" -> search="" - Use when: "Show me the GeoIP aliases" -> alias_type="geoip" - Don't use when: You want the addresses currently in the table (use opnsense_get_alias_contents)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Beyond the readOnlyHint and idempotentHint annotations, the description reveals the crucial nuance that URL table/GeoIP aliases return configured feed URLs or country lists, not currently loaded addresses. It also documents response pagination (total, count, has_more, next_offset) and response formats, adding significant behavioral context.

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?

While relatively long, the description is tightly organized into Args, Returns, and Examples sections, with every sentence adding value. The main purpose is front-loaded, and the detailed sections are warranted given the complexity and the important distinction from sibling tools.

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?

The description covers the output schema, pagination behavior, parameter semantics, usage examples, and the critical differentiation from related tools. It leaves no major gaps for an agent to correctly select and invoke the tool, making it complete in context.

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 fully compensates by enumerating all parameters (search, alias_type, limit, offset, response_format) with their meanings and defaults. It also clarifies the difference between markdown and json output formats, giving practical guidance beyond the raw 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 opens with 'Search configured firewall aliases and their types, contents and descriptions' – a specific verb and resource that clearly defines the tool's scope. It further distinguishes itself from the sibling opnsense_get_alias_contents by clarifying the difference between configuration and live pf contents.

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?

The description provides explicit examples for when to use the tool ('What aliases exist?', 'Show me the GeoIP aliases') and an explicit 'Don't use when' clause pointing to opnsense_get_alias_contents for live addresses. This directly addresses usage boundaries and alternatives.

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

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