Skip to main content
Glama

Read UniFi Internal API

unifi_internal_read
Read-only

Reads UniFi Network internal API data missing from the documented API, covering clients, health, devices, rogue APs, port forwards, routes, profiles, and logs.

Instructions

Runs one named read on the Network application's internal, unofficial API, for what the documented API lacks. activeClients: Connected clients with IP, network, AP or switch port, signal, uptime, and traffic. knownClients: Every client the gateway remembers, with name, note, fixed IP, and first and last seen. health: Status of WAN, LAN, WLAN, and VPN: counts, WAN IP, ISP, latency, and throughput. devices: Devices with firmware and available upgrades, radio settings and stats, and port tables. rogueAps: Neighboring access points seen in the last 24 hours. portForwards: Port forwarding rules: what is reachable from the internet. routes: Static routes. portProfiles: Switch port profiles: which networks a port carries, PoE, isolation, and speed. systemLog: Recent system log events, admin (AUDIT) and client and device (CLIENT_DEVICES) alike: what happened to which client, device, network, or admin, and when. params: hours (1-168, default 24), limit (1-100, default 50). Returns only allowlisted fields; credentials are never included.

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_internal_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
paramsNo
operationYes

Output Schema

NameRequiredDescriptionDefault
readYes
countYes
itemsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/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, so the description's job is to add context, and it does: it flags the API as unofficial and adds a real trust guarantee ('Returns only allowlisted fields; credentials are never included'). It says nothing about rate limits, failure modes, or pagination behavior for the 100-item limit.

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?

The opening + 'what the documented API lacks' framing is front-loaded, then each operation gets exactly one dense sentence covering its payload. No filler sentences, and the param ranges and field-allowlist guarantee are placed at the end where they apply globally.

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 nine-operation dispatcher with an output schema already present, the description covers purpose, per-operation semantics, param ranges, and a data-safety guarantee. The remaining gap is the mapping between the two params and specific operations, plus no routing hint toward the documented-API siblings.

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 coverage is 0% and the params object is a free-form bag with no key constraints, so the description must compensate; it does document hours (1-168, default 24) and limit (1-100, default 50). However, it never says which operations accept these keys or what happens to unrecognized keys, leaving the permissive bag largely unexplained.

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?

Uses a specific verb ('Runs one named read') on a specific resource ('the Network application's internal, unofficial API') and then enumerates all nine operations with what each returns. The clause 'for what the documented API lacks' distinguishes it from the documented-API sibling without requiring the agent to open any schema.

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?

The condition for use is stated clearly: reach for this only when the documented API does not expose the data. There is no explicit when-not guidance and no sibling tool is named as the fallback for documented-API reads, so the agent must infer that boundary.

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