Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

List Countries

unifi_list_countries
Read-onlyIdempotent

Lists ISO country codes and names configured in the UniFi console so you can resolve radio/regulatory country codes to readable names.

Instructions

List ISO country codes and names known to the console (console-wide, not site-scoped). These codes appear in radio/regulatory settings — useful for resolving a country code to its name.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "unifi_list_countries"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results to return (1-200, default 50)
filterNoOptional UniFi filter expression: property.function(args) with functions eq, ne, like, in, isNull, isNotNull and more; combinators and(...), or(...), not(...). Strings in single quotes. Examples: "state.eq('OFFLINE')", "access.type.eq('GUEST')", "name.like('Office*')". Note: which properties are filterable varies by endpoint — a 400 error means that property/function is not supported here.
offsetNoNumber of results to skip, for pagination (default 0)
responseFormatNo'markdown' for a compact human-readable summary (default), 'json' for full raw API datamarkdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.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, idempotentHint, openWorldHint and destructiveHint=false, so safety is covered structurally. The description adds real context beyond that: the data is console-wide rather than site-scoped and originates from radio/regulatory configuration, telling the agent what this reference data represents and why it exists.

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?

Two short sentences with zero filler; the resource and its scope come first, and the use case follows. Nothing is repeated from the schema or annotations.

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?

A simple read-only lookup with full schema coverage and complete annotations needs little more than what is given, and the console-wide scope note closes the main ambiguity. The only residual gap is that filterable properties are not hinted, which is a minor omission for a small reference-data endpoint.

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 100%, with limit, offset, filter and responseFormat all documented in the schema itself, so the baseline of 3 applies. The description adds no parameter-level detail such as which property (e.g. code or name) is filterable, leaving that entirely to the filter parameter's own note.

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 and resource ('List ISO country codes and names') and immediately bounds the scope as 'console-wide, not site-scoped', which distinguishes it from the many site-scoped list tools among its siblings. An agent can tell exactly what this returns 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 Guidelines4/5

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

Gives a concrete use case ('useful for resolving a country code to its name') and states a scope exclusion (not site-scoped), which is meaningful guidance in a catalog full of site-scoped list endpoints. It stops short of naming an explicit alternative or stating when not to call it, so it lands just below the top.

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

Deploy Server

Other Tools