Skip to main content
Glama

unifi_unblock_ip

DestructiveIdempotent

Removes an IPv4 address or CIDR from the UniFi MCP blocklist, restoring access for that client. Guarded changes to protected networks or wide ranges require confirm: true.

Instructions

Remove an IPv4 address or CIDR from the "unifi-mcp blocklist" (one update of the list). Easy, unless it overlaps a protected network's subnet (UNIFI_MCP_PROTECTED_NETWORKS, pi-cluster by default) or is a wide range (a prefix shorter than /16); those need confirm. The console can't hold an empty list, so removing the last address deletes the blocklist (both policies, then the list) and needs confirm: true; the next unifi_block_ip recreates it. An address not listed is a no-op.

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": {
      "ip": "<ip>"
    },
    "name": "unifi_unblock_ip"
  }
}

Input Schema

NameRequiredDescriptionDefault
ipYesIPv4 address or CIDR
siteNoSite name, id or reference; optional while the console has a single site
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.2/5.0
Behavior5/5

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

Goes well beyond the annotations (destructive/idempotent/not-readonly) by disclosing the guardrail logic (protected networks via UNIFI_MCP_PROTECTED_NETWORKS, wide-range threshold), the cascading side effect of deleting the last address (both policies, then the list), and that re-adding requires unifi_block_ip. The no-op-on-missing-address behavior confirms and enriches the idempotent hint.

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-loaded with the core action, then proceeds in order of increasing edge-case severity (protected overlap → wide range → last-entry deletion → no-op). Dense but every sentence carries operational information; the parenthetical '(one update of the list)' is the most expendable fragment.

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?

Without an output schema or rich annotations, the description carries the behavioral burden and does so thoroughly, including preconditions and side effects. Minor gaps remain: no mention of what a preview response looks like or how multi-site consoles change behavior for the optional site parameter.

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 baseline is 3, but the description adds real meaning not present in the schema: the /16 threshold that classifies a request as a 'wide range' and the protected-subnet check that determines when confirm is mandatory. The site parameter is not discussed at all, which keeps it from a 5.

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?

States a specific verb and resource: 'Remove an IPv4 address or CIDR from the "unifi-mcp blocklist"', and implicitly contrasts with unifi_block_ip ('the next unifi_block_ip recreates it'). It does not distinguish itself from the similarly named sibling unifi_unblock_client, so an agent with both loaded still has to infer which unblocker applies to a blocklist entry.

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 conditions around usage: ordinary removals are 'easy', while protected-network overlap or prefixes shorter than /16 'need confirm', and removing the last entry requires confirm: true. It also states the no-op case ('An address not listed is a no-op'). It stops short of explicitly naming when to prefer a different tool for a client-level unblock.

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