Skip to main content
Glama
mcp-unifi-applications

mcp-unifi-applications

Find Field

find_field
Read-onlyIdempotent

Locate a UniFi API field by name across all endpoints, including discriminator variants, and return each occurrence's endpoint, dotted path, and schema section for schema drill-down.

Instructions

Locate a field by name across every endpoint, including inside discriminator variants.

Returns one line per occurrence: endpoint slug, dotted path, and which schema section it sits in (request body, parameters, or response). Common names appear hundreds of times; the reply is capped at 50 and states the true total and how many endpoints are involved, so a short list is never mistaken for a complete one. Paths from here can be passed straight to get_field_schema. A name that matches nothing returns close alternatives.

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": {
      "field_name": "<field_name>"
    },
    "name": "find_field"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugNoOptional — limit search to a specific endpoint.
field_nameYesThe field name to search for (case-insensitive).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.5.0
    • removedInput schema / properties / slug / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / slug / default
      Previous value: -nullNew value: +""
    • addedInput schema / properties / slug / 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 only cover the safety profile (readOnly, idempotent, non-destructive), while the description adds genuinely non-obvious behavior: results are capped at 50, the reply states the true total and endpoint count so a truncated list isn't mistaken for complete, and a no-match query returns close alternatives rather than empty output.

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?

Four tightly written sentences, front-loaded with the action and scope, followed by output shape, the truncation caveat, and the chaining hint. No filler and 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?

Even though an output schema exists, the description still characterizes the return line format and truncation behavior, and it covers the empty-result case. Nothing an agent needs to call this correctly or interpret the response is missing.

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 100%, so both parameters are already documented, including slug's optionality and case-insensitivity. The description adds only the implication that omitting slug searches globally ('across every endpoint'); it offers no further semantics for field_name matching.

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 (locate a field by name) plus the exact scope (every endpoint, including discriminator variants). It is clearly distinguishable from get_field_schema, which it explicitly names as the downstream tool.

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 description makes the intended workflow explicit: use this tool when you know the field name but not its location, then pass the resulting paths straight to get_field_schema. It stops short of naming when-not-to-use cases (e.g., when the endpoint is already known, where get_endpoint or get_field_schema would be more direct).

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