Skip to main content
Glama

Read Any UniFi Network API Resource

unifi_read
Read-only

Runs documented UniFi Network API read operations to retrieve site, device, client, firewall, DNS, ACL, VPN, and statistics data without exposing Wi-Fi passphrases or voucher codes.

Instructions

Runs one documented Network API read (operation names follow the API, such as getDnsPolicyPage, getAclRule, getAdoptedDeviceLatestStatistics, getWans) and returns its documented fields. Pass path IDs and offset, limit (most lists allow at most 200), or filter in params; the site is supplied automatically. Wi-Fi passphrases and voucher codes are never returned.

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": {
      "operation": "<operation>"
    },
    "name": "unifi_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
paramsNo
operationYes

Output Schema

NameRequiredDescriptionDefault
resultNo
operationIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description adds real value on top: the site is auto-supplied, list results are capped around 200, and Wi-Fi passphrases and voucher codes are redacted from responses. It does not discuss pagination continuation or error behavior for invalid operations, keeping it below a 5.

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?

Two dense sentences, front-loaded with the core action and followed by invocation guidance and the security caveat; nothing is filler. The parenthetical operation list is long but serves as concrete grounding for the enum.

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?

An output schema exists, so return values need no explanation, and the operation naming convention is stated. For a tool multiplexing dozens of endpoints through one generic params object, there is still no guidance on discovering per-operation parameters or handling an operation that fails.

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

Parameters3/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 carry the load; it explains that params holds path IDs, offset, limit, and filter, and that fields follow documented API names. However, with a free-form params bag and 40+ operations, it never indicates which keys a given operation expects, which is the main ambiguity an agent faces.

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 — 'Runs one documented Network API read' — and names representative operations (getDnsPolicyPage, getAclRule, getWans) so the agent knows the operation enum drives behavior. It stops short of distinguishing this catch-all reader from focused siblings such as unifi_list_clients or unifi_list_devices.

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?

Gives invocation mechanics ('Pass path IDs and offset, limit ... or filter in params; the site is supplied automatically') and a soft bound ('most lists allow at most 200'). It never says when to prefer this generic reader over the dedicated list tools or unifi_internal_read, leaving the choice to inference.

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