Skip to main content
Glama

get_firewall_rule

Retrieve a specific classic firewall rule by ID from any UniFi site in your Fabric cloud. Provide host, site, and rule_id to get the rule details.

Instructions

Get a single classic firewall rule by ID.

host: console name, ID, or composite ID (MAC:numericId format). site: site name or ID. rule_id: firewall rule ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostYes
siteYes
rule_idYes
Install Server

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It only says 'Get' and does not mention error behavior, return format, or any side effects. The description adds no behavioral context beyond the verb.

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 concise and front-loaded with the main purpose, followed by terse parameter clarifications. Every sentence is informative, though it could be structured more clearly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple single-resource GET tool with three required parameters and no output schema, the description covers the core necessities. However, it lacks return format and error context, which would improve completeness for an agent unfamiliar with the API.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has 0% description coverage, so the description compensates by explaining what host, site, and rule_id refer to. The explanations are brief but add meaning beyond the bare parameter names, though they lack format details.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states 'Get a single classic firewall rule by ID', which clearly identifies the verb, resource, and scope of the operation. It is distinguishable from sibling list_firewall_rules, though it does not explicitly mention that alternative.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies it is for fetching a specific rule when rule_id is known, but it does not explicitly state when to use it instead of listing or creating rules. No alternatives or exclusions are mentioned, leaving the agent to infer the right context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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/swkstudios/unifi-fabric-mcp-server'

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