Skip to main content
Glama

execute_device_action

Execute restart, adopt, or provision actions on UniFi devices through the Fabric cloud API. Specify host, site, and device ID to trigger device operations.

Instructions

Execute a device action (restart, upgrade, locate, etc.).

host: console name, ID, or composite ID (MAC:numericId format). site: site name or ID. action: must include: {'action': str}. Common commands: {'action': 'restart'}, {'action': 'adopt'}, {'action': 'force-provision'}. Valid commands vary by device type. device_id: REQUIRED. Obtain it from list_devices (its id field).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostYes
siteYes
actionYes
device_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Install Server

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral disclosure burden. It does reveal that actions must be command objects, lists common commands, and warns that valid commands vary by device type. However, it omits side effects, permission requirements, reversibility, and response behavior for a mutation-capable action tool.

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 front-loaded with purpose and uses a compact breakdown of parameters without filler. It earns its length, though the parameter notes could be slightly better structured.

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 core call requirements are covered, and an output schema exists so return values need not be described. However, it leaves selection ambiguity among sibling action tools and does not address action support by device type or error/failure behavior, making it adequate but not complete.

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%, and the description fully compensates by explaining host formats (console name, ID, composite MAC:numericId), site formats, the required action object structure, and the source of device_id. Every parameter receives meaningful guidance beyond the bare schema types.

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 clearly states the verb and resource: 'Execute a device action' with concrete examples like restart, upgrade, and locate. However, it does not differentiate this generic tool from dedicated sibling tools such as restart_device, locate_device, and upgrade_device.

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 gives prerequisites like obtaining device_id from list_devices and notes that valid commands vary by device type, but it provides no guidance on when to use this generic executor versus more specific action tools. There are no explicit alternatives or exclusions, leaving tool selection ambiguous.

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