Skip to main content
Glama

Search Tools

search_tools
Read-onlyIdempotent

Find enabled UniFi management tools by natural-language intent, ranked across names, descriptions, and parameter schemas; filter by family or read/write and control result limits.

Instructions

Find enabled tools by intent, ranked over names, descriptions and parameter schemas.

Default returns ten matches. Choose any positive limit, or null for every match; no tool or search result is hard-capped. more_available is true when the limit cut the list (total_matched gives the full count): raise the limit or refine. Empty query browses tools. Use describe_tool for the exact schema, then call_read_tool or call_write_tool. Enabled families (tool counts): carrier: 11; clients: 15; connector: 5; devices: 39; firewall: 33; hotspot: 4; innerspace: 32; mobility: 8; network: 345; protect: 225; site_manager: 20; statistics: 19; vpn: 42.

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

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of results (default 10); any positive integer or null for every match.
queryYesNatural language intent, for example "camera recordings"; empty browses all tools.
familyNoOptional exact family slug from list_tool_families, for example "protect".
writesNoOptional filter: true for mutations, false for reads, null for both.

Output Schema

NameRequiredDescriptionDefault
resultYesMatches ranked best first, at most `limit` of them (all of them when limit is null).
total_matchedYesHow many enabled tools matched in total, before the limit was applied.
more_availableYesTrue when the limit cut the list: more tools match than were returned. Raise limit, pass limit=null, or refine the query or family instead of assuming the list is complete.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.7.2
    • addedOutput schema / additionalProperties
      Added value: +true
    • addedOutput schema / properties / more_available
      Added value: +{
      +  "description": "True when the limit cut the list: more tools match than were returned. Raise limit, pass limit=null, or refine the query or family instead of assuming the list is complete.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / result / description
      Added value: +"Matches ranked best first, at most `limit` of them (all of them when limit is null)."
    • addedOutput schema / properties / result / items / properties
      Added value: +{
      +  "family": {
      +    "description": "Family slug of the tool, as listed by list_tool_families.",
      +    "type": "string"
      +  },
      +  "name": {
      +    "description": "Exact tool name; pass it to describe_tool and the call wrappers.",
      +    "type": "string"
      +  },
      +  "summary": {
      +    "description": "First line of the tool description.",
      +    "type": "string"
      +  },
      +  "writes": {
      +    "description": "True when the tool can change configuration (call it with call_write_tool).",
      +    "type": "boolean"
      +  }
      +}
    • addedOutput schema / properties / result / items / required
      Added value: +[
      +  "name",
      +  "family",
      +  "summary",
      +  "writes"
      +]
    • addedOutput schema / properties / total_matched
      Added value: +{
      +  "description": "How many enabled tools matched in total, before the limit was applied.",
      +  "type": "integer"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "result"
      -]New value: +[
      +  "result",
      +  "more_available",
      +  "total_matched"
      +]
  2. Addedv0.7.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety needs no restating. The description still contributes real behavior: default page size of ten, no hard cap on results, and the semantics of the more_available flag. It does not explain scoring/ranking mechanics or tie-breaking, which is a modest remaining gap.

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?

Core behavior and the call chain are front-loaded in the first three lines, with the family inventory trailing as optional context. The family list with counts is the least essential part, since list_tool_families exists as a sibling, but it does help the agent pick a valid slug without an extra round trip.

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 four-parameter search tool with full schema coverage, annotations and an output schema, the description covers purpose, paging semantics, empty-query behavior and the downstream workflow. An agent has everything needed to invoke it correctly on the first try.

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 the baseline would be 3, but the description adds meaning beyond the schema: null limit means every match with no hard cap, and an empty query is a browse rather than an error. It does not elaborate on the family slug format beyond pointing at list_tool_families, which the schema already covers.

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?

The opening sentence gives a specific verb and resource ("Find enabled tools by intent") plus the ranking basis (names, descriptions, parameter schemas). It is immediately distinguishable from describe_tool and the two call_* siblings, which are named later as follow-up steps rather than alternatives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Explicit routing is present: empty query browses, describe_tool is for exact schema, then call_read_tool or call_write_tool for execution. The more_available/total_matched guidance tells the agent exactly when to raise the limit or refine the query instead of re-searching.

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