Skip to main content
Glama

Search 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": "search_idiom"
  }
}

Input Schema

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

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the burden. It does disclose the corpus size (~3.1万条) and the returned fields, which tells the agent what to expect and that coverage is broad. It says nothing about pagination, rate limits, or auth, though for a read-only lookup the risk profile is low.

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 matching semantics, then returns, then corpus size, then the limit constraint. Every clause carries information. Minor redundancy: enumerating the return fields overlaps with the output schema, but it is brief.

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?

Two parameters, one required, an output schema present, and the description covers matching modes, return contents, corpus scale, and limit bounds. For a low-complexity search tool this is nearly sufficient; only guidance against the sibling tools is absent.

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 baseline would be 3. The description earns a bump by going beyond the schema on `keyword`: it clarifies that a single character (如'龙') matches inside idioms, and that pinyin is accepted both with tones ('wàng zǐ chéng lóng') and bare ('wang') — matching rules the schema only hints at.

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?

Opens with a specific verb+resource: 检索中华成语 (search Chinese idioms). The scope is unambiguous — this is a keyword-driven lookup over a ~31,000-entry corpus, which is functionally distinct from a random draw or a game-style sibling. It does not name the siblings, but the operation itself is clear enough to route on.

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?

Usage is implied rather than stated: an agent can infer it should call this when it has a keyword (character, idiom, pinyin, or gloss). There is no explicit 'use this when X, use random_idiom when Y' routing and no stated exclusions, so the agent must reason about the alternative itself.

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