Skip to main content
Glama
mcp-unifi-applications

mcp-unifi-applications

Search Endpoints

search_endpoints
Read-onlyIdempotent

Find UniFi API endpoints by name, path fragment, keyword, app, or HTTP method, then use a result slug to retrieve the full schema.

Instructions

Find endpoints by name, path fragment, method or description.

Returns up to ten matches ranked by relevance, each as a slug, method, path, title and a one-line description. Matching is fuzzy but floored: a query that resembles nothing returns no matches rather than the least-bad guess. Pass a result's slug to get_endpoint for the full schema. Unknown filter values are rejected by name.

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": {
      "query": "<query>"
    },
    "name": "search_endpoints"
  }
}

Input Schema

NameRequiredDescriptionDefault
appNoOptional app filter (network, protect, site-manager, innerspace, mobility, carrier-fabric). Omit to search all.
queryYesSearch term (endpoint name, path fragment, or keyword).
methodNoOptional HTTP method filter (GET, POST, PUT, DELETE, PATCH).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.5.0
    • removedInput schema / properties / app / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / app / default
      Previous value: -nullNew value: +""
    • addedInput schema / properties / app / type
      Added value: +"string"
    • removedInput schema / properties / method / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / method / default
      Previous value: -nullNew value: +""
    • addedInput schema / properties / method / type
      Added value: +"string"
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world, so the safety profile is covered; the description adds real behavior beyond that: a hard cap of ten results, relevance ranking, fuzzy matching with a relevance floor that returns nothing rather than a bad guess, and rejection of unknown filter values by name. These are non-obvious traits an agent needs to interpret empty results and error messages correctly.

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?

Front-loaded with the core action in the first clause, then result shape, then matching semantics, then the next step. Four short sentences, each carrying distinct information with no repetition of the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter read-only search with full schema coverage and an output schema, everything an agent needs is present: what it matches, how many results, how results are shaped/ranked, empty-result semantics, error semantics, and how to continue to get_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%, so all three parameters (app, query, method) are already documented with defaults and valid values. The description only restates the match dimensions and adds the error behavior for unknown filter values, which is useful but marginal over the schema. Baseline 3 applies.

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 (Find) and resource (endpoints) plus the match dimensions (name, path fragment, method, description). Clearly distinguished from siblings: this is the discovery/search tool, while get_endpoint is named as the follow-up for full detail and list_endpoints is implicitly the enumeration alternative.

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?

Provides a clear workflow: search here, then pass the returned slug to get_endpoint for the full schema. That is explicit routing to the alternative for detail. It does not, however, state when to prefer this over list_endpoints, so it falls short of full when/when-not guidance.

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