Skip to main content
Glama

Engine Heart

idiom.search_idiom

检索中华成语:keyword 可为成语中的字(如'龙')、完整成语、拼音(如 'wàng zǐ chéng lóng' 或 'wang')或释义/出处关键词。返回成语、拼音、释义、出处、例句。库内收录约3.1万条成语。limit 控制返回条数(1-50,默认10)。

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": {
      "keyword": "<keyword>"
    },
    "name": "idiom.search_idiom"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo返回条数,1-50,默认 10
keywordYes关键字(成语用字/拼音/释义/出处),如 画蛇添足、long、 比喻

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations provided the description must carry the full burden, and it does disclose the return payload (idiom, pinyin, definition, origin, example sentences), the corpus size, and that limit is capped at 1-50 with default 10. It stops short of stating that the operation is read-only, whether pinyin matching is tone-tolerant, or what happens when nothing matches.

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?

The description is front-loaded with the matching modes, then return fields, corpus size, and limit range, in a logical order with no filler sentences. The limit clause duplicates the schema's own description, which is the only wasted sentence.

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?

For a two-parameter read tool with no output schema, this covers the critical unknowns: how to phrase keyword, what fields come back, and how results are bounded. It lacks only a note on ordering or truncation when a broad single-character query hits many of the 31,000 entries.

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 already 100%, so the baseline is 3, but the description genuinely adds meaning: it explains that keyword accepts a single character, a whole idiom, pinyin with or without spaces/tone marks ('wàng zǐ chéng lóng' or 'wang'), or a definition/origin keyword, which is not evident from the schema's one-line example. Only the limit parameter is merely restated.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('检索') and resource ('中华成语') and enumerates exactly which keyword forms are matched (character, full idiom, pinyin, definition/origin), so an agent can tell this is a flexible keyword search rather than a random or solitaire tool. It never names a sibling such as idiom.random_idiom, so the differentiation is implied rather than explicit.

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

Usage Guidelines3/5

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

The four keyword modes effectively describe how to call the tool, and the size of the corpus (about 31,000 entries) hints at why a keyword is required. There is no statement of when to prefer this over random_idiom, idiom_solitaire, or classical_search, and no exclusion or fallback guidance.

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