Skip to main content
Glama

Search entities, devices and areas

search_deep_search
Read-onlyIdempotent

Fuzzy-search entities, devices, and areas together and return one ranked list, so you can locate an item when its type is unknown.

Instructions

Fuzzy-search entities, devices and areas together in one ranked list.

Scores states (tagging automation.* entities as kind 'automation', others as 'entity'), devices and areas against query the same way as the single-kind search tools, merges all matches, and returns the top limit sorted descending.

Use when: you don't know whether what you're looking for is an entity, device or area. Not for: results scoped to one kind — use search_entities, search_devices or search_areas. Returns: list of dicts tagged with kind ('entity'/'automation'/ 'device'/'area'), each with kind-specific fields plus score, up to limit entries.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of ranked results to return; defaults to 20.
queryYesSearch text to fuzzy-match across entities, devices and areas.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.25.1
    • addedInput schema / properties / limit / description
      Added value: +"Maximum number of ranked results to return; defaults to 20."
    • addedInput schema / properties / query / description
      Added value: +"Search text to fuzzy-match across entities, devices and areas."
  2. First observedv0.3.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), yet the description still adds real behavior: matches are scored the same way as the single-kind tools, merged into one list, sorted descending, and capped at `limit`. The only minor gap is that it says nothing about tie-breaking or performance when the instance is large.

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 purpose, then structured as Use when / Not for / Returns. No filler sentences and no restatement of the tool title.

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 two-parameter search tool with an output schema and full annotation coverage, nothing needed for correct invocation is missing. The Returns block even goes slightly beyond requirement by naming the possible `kind` values.

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 both parameters are already documented. The description still adds semantic value by explaining that `query` is scored against all three kinds using the same matching logic as the single-kind tools, and that `limit` applies after merging and sorting rather than per kind.

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 ('fuzzy-search entities, devices and areas together in one ranked list') and immediately distinguishes itself from the single-kind siblings. An agent can tell exactly what this returns versus search_entities/search_devices/search_areas without opening a schema.

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 'Use when' clause names the triggering condition (unknown result kind), and the 'Not for' clause names the three concrete alternatives to use instead. Both the inclusion and exclusion paths are spelled out.

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