delete_traffic_rule
Delete a UniFi traffic rule by its ID to remove outdated network restrictions.
Instructions
Delete a traffic rule by id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The _id of the traffic rule to delete |
Delete a UniFi traffic rule by its ID to remove outdated network restrictions.
Delete a traffic rule by id.
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The _id of the traffic rule to delete |
Changes observed during successful MCP inspections.
v1.0.0Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It states that the tool deletes, but does not mention whether deletion is irreversible, whether deleting a nonexistent id is an error, what side effects occur, or what the response looks like. For a destructive operation this is thin.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, front-loaded sentence with no unnecessary words. It efficiently communicates the action, target resource, and required identifier for a simple one-parameter tool.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool is simple, and the schema covers the only parameter, making the call invokable. However, the absence of annotations and an output schema leaves important context unaddressed, such as idempotency, failure behavior, and the result of a successful deletion. This is adequate but minimal.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so the schema already fully documents the required id parameter. The description's 'by id' phrase adds little beyond what the schema states, and no extra format, source, or validation context is given for the id.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific action ('Delete') and a specific resource ('traffic rule'), and identifies the selector ('by id'). This cleanly distinguishes it from sibling tools like get_traffic_rules or update_traffic_rule.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The intended use is implied by the tool name and description, but there is no explicit guidance on when to use this tool instead of update_traffic_rule or ensure_traffic_rule, and no mention of using get_traffic_rules to obtain the id. No alternative routing is provided.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.