Skip to main content
Glama

Autocomplete a search query

data_search_suggest
Read-onlyIdempotent

Get autocomplete suggestions for what someone has typed so far, in order: Wikipedia article titles that start with it (in the lang Wikipedia, default en) and, in English, Datamuse's completions. Search engines' own suggest lists are not read. Costs 1 credit. Every row has name (platform/collection/id), kind, its fields and source {platform, url, license, attribution, fetched_at, terms_url}; quote source.attribution when you show a row.

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": {
      "q": "<q>"
    },
    "name": "data_search_suggest"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesThe words typed so far, such as "electric ca".
langNoOptional Wikipedia language code, such as en, fr, de or vi (default en; Datamuse answers only in en).
page_sizeNoSuggestions to return, 1 to 50 (default 10).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare read-only, open-world, idempotent, non-destructive; the description adds materially more: a 1-credit cost, the deterministic ordering of result groups, the explicit exclusion of search-engine suggest lists, and a per-row shape including source metadata with an obligation to quote source.attribution. For a tool with no output schema, that return-shape disclosure is exactly what the description needs to carry.

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?

Front-loaded with the core action and source ordering before cost and output details, which is the right priority. The final sentence is dense — a nested field list for the row shape — but every element is load-bearing given there is no output schema.

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

Completeness4/5

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

With no output schema, the description correctly spends words on the return row structure and attribution duty, and it discloses cost and source limitations. It stops short of describing volume or pagination behavior across the two source groups (how page_size splits between Wikipedia and Datamuse), which is the one thing an agent may still guess wrong.

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 q, lang, and page_size are already fully documented, including the en-only Datamuse caveat and the 1–50 bound. The description reinforces the lang behavior ("in the lang Wikipedia, default en") and the English-only Datamuse branch but adds no syntax or format detail the schema doesn't already give, so the 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 and resource ("Get autocomplete suggestions for what someone has typed so far") and goes further by specifying the exact source order: Wikipedia title prefix matches in the given language, then Datamuse's English completions. It also draws a boundary ("Search engines' own suggest lists are not read"), so an agent can distinguish this from a real search tool like data_search without opening any 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?

The phrase "for what someone has typed so far" plus the "in order" source list makes the intended keystroke-completion context unambiguous, and the credit cost lets the agent weigh whether to spend it. What's missing is explicit routing: nothing says to prefer data_search when the user actually wants ranked results rather than completions.

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.