Skip to main content
Glama

Engine Heart

poetry.search_poem

检索中华古典诗词:支持按关键词(诗题/诗句内容)、作者(如李白、杜甫、苏轼、李清照)、朝代类别(唐诗/宋词/元曲/诗经/楚辞/论语/宋词三百首)组合查询,返回诗题、朝代、作者与全文。库内含约9万首:唐诗约5.7万、宋词约2.1万、元曲约1.1万及诗经305首、楚辞65篇等。limit 控制返回条数(1-50,默认10)。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "poetry.search_poem"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo返回条数,1-50,默认 10
authorNo作者名,如 李白 / 杜甫 / 苏轼 / 辛弃疾 / 李清照
keywordNo关键词,可为诗题(如 静夜思)、诗句片段(如 床前明月光)或任意内容词
categoryNo类别:唐诗 / 宋词 / 元曲 / 诗经 / 楚辞 / 论语 / 宋词三百首(可省略)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the return shape (诗题、朝代、作者、全文) and corpus scale, which helps an agent anticipate large payloads. It omits matching semantics (substring vs. exact), whether filters AND together, and empty-result behavior — relevant for a search tool returning full poem texts.

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?

A single front-loaded paragraph: purpose first, then the query dimensions, then corpus composition, then the limit constraint. The corpus statistics are the least essential part but they do help an agent judge coverage, so little is wasted.

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?

Four optional parameters with no output schema make the return-value sentence necessary, and the description supplies it along with the limit range and corpus size. Only the combination semantics of the filters and the empty-result case are left unstated, which is a minor gap for a read-only search tool.

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 the schema already documents all four parameters with the same examples. The description restates the keyword targets and the category list rather than adding new meaning such as match mode or precedence when multiple filters are supplied, so the baseline 3 applies.

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 opens with a specific verb and resource (检索中华古典诗词) and enumerates the query dimensions plus the returned fields, so an agent knows exactly what the tool does. It does not name or contrast with the sibling poetry.random_poem, so it stops short of full differentiation.

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: the filter list makes clear it is for targeted lookup by keyword, author, or category, and '组合查询' signals the filters can be combined. There is no explicit when-not guidance, no mention of when to prefer the random-poem sibling, and no statement of what happens with zero filters.

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