Skip to main content
Glama

delete_traffic_rule

Delete a UniFi traffic rule by providing its rule ID, host, and site, so network policies stay up to date.

Instructions

Delete a traffic rule by ID.

host: console name, ID, or composite ID (MAC:numericId format). site: site name or ID. rule_id: REQUIRED. The rule's id; obtain it from list_traffic_rules (its id field).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostYes
siteYes
rule_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Install Server

TDQS

A3.8/5.0
Behavior2/5

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

No annotations are provided, so the description must disclose behavioral traits. It states the deletion action but omits important context such as permanence, side effects (e.g., whether deleting a rule affects related policies), permission requirements, or the exact response behavior. The implicit destructiveness is clear from 'Delete', but the absence of explicit warnings or reversibility information leaves a gap.

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: one sentence for the core function, followed by parameter details. Every sentence adds value, with no fluff or repetition. The key action is front-loaded.

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?

The description covers parameter identification well, and the presence of an output schema may handle return values. However, given this is a destructive operation with no annotations, it lacks information about authentication prerequisites, error scenarios, or the scope of the deletion (e.g., whether it only deletes the rule or also impacts other entities). Some behavioral context is missing.

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 compensates fully by explaining each parameter: host formats (name, ID, or composite MAC:numericId), site as name or ID, and rule_id with a clear source and requirement. This goes beyond the bare schema and provides actionable semantic meaning.

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 begins with 'Delete a traffic rule by ID', specifying the verb, resource, and identification method. This clearly distinguishes it from sibling tools like list_traffic_rules, create_traffic_rule, and update_traffic_rule based on the operation and target.

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 provides practical guidance on how to obtain the rule_id (from list_traffic_rules), which is useful for the calling context. However, it does not explicitly state when to use this tool versus other delete tools (e.g., delete_traffic_route, delete_acl_rule) or mention any exclusions or alternatives.

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