Skip to main content
Glama

BatterySnap

Search brands and models

search
Read-onlyIdempotent

Resolve free-form user text into the canonical brand / model identifiers the other tools expect. Meant for phones named in free text: the other tools match brands and models exactly, so a guessed spelling returns an empty list.

Matching is case-insensitive: every word of the query in the brand or resolved model name, or the whole query in the raw Build.MODEL, ranked by exact match then popularity; '+' and 'plus' are the same word. When nothing matches, glued words are split ('galaxys24') and misspelt ones corrected to the closest known brand / model word, the search is rerun and corrected_query says how the query was read.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum brand hits and model hits to return (each list is capped separately).
queryYesFree text: a brand ('samsug'), a model name ('pixel 8'), a raw Build.MODEL code ('SM-S911B'), or both ('samsung galaxy s23').

Output Schema

NameRequiredDescriptionDefault
queryNoThe query that was resolved.
brandsNoMatching brands, best match first.
modelsNoMatching models, best match first.
corrected_queryNoPresent only when the query as typed matched nothing: the misspelling-corrected query these results are for, a guess to mention in the answer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / corrected_query
      Added value: +{
      +  "description": "Present only when the query as typed matched nothing: the misspelling-corrected query these results are for, a guess to mention in the answer.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnly/idempotent/closed-world; the description goes well beyond by stating the actual matching rules (case-insensitive, every word of query in brand or resolved model name, whole query in raw Build.MODEL), the ranking policy (exact match then popularity), the '+'/'plus' equivalence, and the fallback pipeline (word splitting, spelling correction, rerun) plus the `corrected_query` signal. That is real behavioral disclosure an agent cannot get from structured fields.

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?

Purpose and the exact-match contrast are front-loaded, and the second paragraph on matching/fallback is dense with useful rules rather than filler. There is minor redundancy between 'the other tools match brands and models exactly' and 'a guessed spelling returns an empty list', but nothing that should be cut outright.

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?

An output schema exists, so return values needn't be spelled out, yet the description still flags `corrected_query` as the signal for fallback behavior. Combined with full schema coverage and complete annotation coverage, an agent has everything needed to call this correctly against a 2-parameter, read-only tool.

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 is 3, and the description earns an increment by explaining how `query` is interpreted — word-level matching, case-insensitivity, plus-sign equivalence, and the types of input accepted. It adds nothing about `limit` beyond the schema, which is already self-documenting.

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 first sentence gives a specific verb and resource — 'Resolve free-form user text into the canonical brand / model identifiers' — and states why it exists relative to the rest of the toolset ('the other tools match brands and models exactly'). An agent can tell this is the fuzzy front-door to the exact-match `brands` / `models` tools without reading either 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?

It clearly says when to use it ('Meant for phones named in free text') and gives the failure mode of the alternative ('a guessed spelling returns an empty list'), which effectively routes the agent here first for messy input. It stops short of naming explicit alternatives or stating when NOT to use it, so it lands just under a full 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources