Skip to main content
Glama
jaseonline

unifi-console-mcp

by jaseonline

unifi_console_client_command

Destructive

Preview then apply per-client UniFi commands: block, unblock, reconnect, or forget. A two-step confirm/fingerprint check prevents unintended changes.

Instructions

Preview, then apply, a command for one client: block, unblock, reconnect or forget.

Two steps, always: call with confirm=false to get a read-only preview (the client, the request, warnings, a fingerprint); call again with the same fields plus confirm=true and that fingerprint to apply. block and unblock are read back and are each other's rollback. reconnect disconnects a connected wireless client once. forget deletes an offline client's history, name, note, fixed IP and Local DNS record for good, so it also needs discard_history=true and has no rollback. UniFi devices are refused. Applying needs UNIFI_CONSOLE_ENABLE_WRITES=true and 'client' in UNIFI_CONSOLE_WRITE_ENTITIES (the same switch as the client record tool). Every command is journalled.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and non-idempotent, but the description adds substantial context beyond them: exactly what forget destroys (history, name, note, fixed IP, Local DNS), which commands are reversible (block/unblock) and which are not (forget), that UniFi devices are refused, and that writes require UNIFI_CONSOLE_ENABLE_WRITES and 'client' in UNIFI_CONSOLE_WRITE_ENTITIES, plus journaling.

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?

Front-loads the two-step contract, then the per-command behavior, then the auth gate — a logical ordering with almost no filler. It is dense and somewhat long, but every clause carries operational meaning.

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

Completeness5/5

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

An output schema exists, so return values need no explanation; the description covers the remaining burden — prerequisites, side effects, rollback, irreversibility, and the two-call protocol. An agent has everything needed to invoke this destructive tool safely.

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?

Reported coverage is 0% at the top level, so the description must compensate, and it does: it explains the confirm/fingerprint pairing, when discard_history is required and why, and the rollback implications of each command enum value. It largely restates the nested schema descriptions but adds the semantics (why the fields exist, what each command does) that a bare field description cannot carry.

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 set (block, unblock, reconnect, forget) on a specific resource (one client) and scopes it as preview-then-apply. It also implicitly distinguishes itself from sibling unifi_console_client by referring to 'the same switch as the client record tool.' An agent can pick it apart from siblings without opening the schema.

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

Usage Guidelines5/5

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

Gives an explicit two-step procedure ('call with confirm=false ... call again with the same fields plus confirm=true and that fingerprint to apply') and states the conditions selecting each behavior. Rollback and irreversibility per command are spelled out, so there is nothing left to infer.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.