Skip to main content
Glama

Lookup Word

lookup_word

新华字典/汉语词语查询。输入单个汉字(如'龙')返回拼音、笔画数、部首、释义、笔顺编号与可读笔顺(横/竖/撇/点/折);输入词语或成语(如'画蛇添足'、'天气'、'一帆风顺')返回该词条释义(成语附拼音与出处),并逐字拆解返回每个字的拼音/笔画/部首;库内含约1.5万汉字、26万条词语、3万条成语。detail=false 可关闭逐字拆解。

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

Input Schema

NameRequiredDescriptionDefault
queryYes单个汉字或词语/成语,如 龙、画蛇添足、天气、一帆风顺
detailNo是否逐字拆解返回单字信息,默认 True

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden, and it does disclose meaningful behavior: the two response shapes by input type, the extra fields idioms get (pinyin and source/origin), and the effect of detail=false. It leaves out edge cases such as unknown entries, matching behavior for partial input, or rate/limit constraints, but the core behavioral contract is present.

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 tool's identity and then organized by input mode, followed by corpus scale and the detail toggle. Dense but each clause adds usable information; the corpus-size statistics are the one element an agent could arguably do without.

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?

An output schema exists, yet the description still summarizes return content, and it covers both input modes and the only optional parameter. For a two-parameter read-only lookup this is close to complete; only error/not-found behavior and the relationship to the sibling tool are missing.

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, but the description adds real meaning: it clarifies that query accepts both single characters and multi-character words/idioms with worked examples, and it explains what detail actually controls (per-character decomposition) rather than merely restating the boolean.

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?

The description names a specific operation (dictionary lookup) and spells out exactly what is returned for each input class: pinyin, stroke count, radical, definitions, stroke-order codes for single characters, and entry definitions plus per-character breakdown for words/idioms. It also quantifies coverage (15k characters, 260k words, 30k idioms). It does not differentiate itself from the sibling search_char, leaving the agent to infer the boundary.

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?

Usage context is clear: pass a single character for character data, or a word/idiom for entry data, with concrete examples of each. It also explains the one behavioral toggle (detail=false disables per-character breakdown). It does not state when to prefer this over search_char or what happens for inputs not in the corpus, so no exclusions or alternatives are given.

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