Skip to main content
Glama

unifi_block_client

DestructiveIdempotent

Blocks a specified client from the UniFi network until unblocked, previewing changes and requiring confirmation for protected networks.

Instructions

Block a client from the network (legacy cmd/stamgr block-sta) until it is unblocked. A client on a protected network (pi-cluster by default) needs confirm: true; without it the tool previews. An ambiguous name returns the candidates and changes nothing.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "client": "<client>"
    },
    "name": "unifi_block_client"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNoSite name, id or reference; optional while the console has a single site
clientYesClient name, IP, MAC or id
confirmNoMust be true to carry out a guarded change; without it the tool only previews it

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations (destructive, idempotent, non-read-only), it discloses that the block persists until an explicit unblock, that protected networks require confirm: true, that omitting it triggers a preview rather than an error, and that ambiguous names are a no-op returning candidates. These are exactly the behavioral traits an agent needs before a destructive call.

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?

Three sentences, front-loaded with the action and persistence, then the guard, then the ambiguity case. No redundancy and nothing to trim.

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 destructive mutation with no output schema, the description covers the safety gate, preview semantics, and failure mode adequately; annotations carry the safety profile. It does not state whether the client is disconnected immediately or what a successful response reports, a minor gap.

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 coverage is 100%, so the baseline is 3, but the description adds meaning the schema doesn't: confirm gates only protected networks (pi-cluster by default) and its absence yields a preview, plus the resolution behavior when client matches multiple entries. Only the site parameter goes unaddressed.

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?

A specific verb+resource: 'Block a client from the network ... until it is unblocked', with the legacy cmd/stamgr reference grounding the operation. The scope (client, not IP) implicitly separates it from unifi_block_ip, though no sibling is named explicitly.

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

Usage Guidelines4/5

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

Gives clear conditional usage: on a protected network it needs confirm: true, otherwise it only previews, and an ambiguous name returns candidates without changing anything. It does not mention unifi_unblock_client or unifi_block_ip as alternatives for related tasks, so routing is left partly to inference.

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