Skip to main content
Glama

update_traffic_rule

Update an existing UniFi traffic rule by specifying its ID, host, and site, then provide the fields to modify. Apply targeted changes without recreating the rule.

Instructions

Update a traffic rule by ID.

host: console name, ID, or composite ID (MAC:numericId format). site: site name or ID. rule_id: traffic rule ID. payload: fields to update.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostYes
siteYes
payloadYes
rule_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Install Server

TDQS

A3.6/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 'Update', implying mutation, but does not state whether permissions are required, whether updates are partial or full replacement, what happens on invalid rule_id, or what the response contains. The behavior is largely opaque beyond the fact that an update occurs.

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 compact and well-structured: a one-sentence operation summary followed by a bullet-like parameter list. Every sentence contributes information, and the parameter details are presented in a scannable format. There is no redundant filler.

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 adequately covers parameter semantics but lacks guidance on usage context, behavior, and acceptable payload fields. Since payload is an open object (additionalProperties: true), the agent has no idea which fields are updatable. An output schema exists but its contents are not shown, so return value expectations are unclear. For a mutation tool with no annotations, more behavioral and usage context would be needed for full completeness.

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%, yet the description explicitly explains all four parameters: host (with format variants), site, rule_id, and payload (fields to update). This goes well beyond the input schema, which only lists names and types. The composite ID format for host is especially valuable and fully compensates for the empty schema descriptions.

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 states a specific action ('Update a traffic rule by ID') with a clear resource and identifier. It distinguishes itself from sibling tools like list_traffic_rules, create_traffic_rule, and delete_traffic_rule by the verb 'update' and the 'by ID' scope. There is no ambiguity about what this tool does.

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

Usage Guidelines2/5

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

The description provides parameter format details but gives no guidance on when to use this tool versus alternatives. It does not mention that an existing rule is required, nor does it differentiate from create_traffic_rule or list_traffic_rules. There is no explicit condition for selecting this tool, leaving the agent to infer usage from the name and basic action.

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