Skip to main content
Glama

create_device_tag

Creates a device tag for a site in UniFi Fabric, specifying a label and optional hex color. The tag can be assigned to devices to group and filter them in the UniFi UI.

Instructions

Create a device tag on a site. This is a write operation that modifies live config.

host: console name, ID, or composite ID (MAC:numericId format). site: site name or ID. tag: required fields:

  • name (str): tag label shown in the UI Optional: color (str, hex color e.g. '#FF5733'). Tags can then be assigned to devices to group and filter them in the UniFi UI.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagYes
hostYes
siteYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Install Server

TDQS

A4/5.0
Behavior3/5

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

With no annotations provided, the description carries the full behavioral burden. It does disclose the critical fact that this is a write operation that modifies live config. It does not cover idempotency, duplicate-name behavior, permission requirements, or failure modes, which would add valuable transparency.

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: the operation and write warning come first, then parameter explanations, then workflow context. Every sentence adds value and the bullet-like formatting is easy to scan.

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

Completeness4/5

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

For a tool with three parameters, a nested object, and no annotations, the description provides the essential invocation details. Because an output schema exists, return-value documentation is not required. It stops short of error and duplicate-handling context, but that is not necessary for a correct first call.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must compensate, and it does. It explains host formats (name, ID, composite MAC:numericId), site as name or ID, and documents the tag object's required name field and optional color field with a hex example.

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?

States a specific verb and resource: 'Create a device tag on a site.' It also explicitly calls out that this is a write operation modifying live config, which clearly differentiates it from read tools and tag-modification siblings.

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?

Provides useful context: tags are created on a site and later assigned to devices for grouping/filtering, which implies the intended workflow. However, it does not offer explicit when-to-use or when-not-to-use guidance, nor does it route the agent to update_device_tag, delete_device_tag, or list_device_tags.

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