Skip to main content
Glama

Search Poem

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

Input Schema

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

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it does disclose useful traits: the returned fields including 全文, the corpus size and per-collection breakdown, and the limit bounds and default. It leaves ranking/ordering of results and whether keyword matching is substring-based unexplained, which keeps it below a 5.

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 text is front-loaded with the core capability, then filters, then returns, then corpus scale, then the limit rule — a logical progression with no filler sentences. The per-collection counts (5.7万/2.1万/1.1万) are somewhat granular but serve to set expectations about result volume.

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 an output schema present, the description need not detail return structure, and it still names the returned fields and the hard limit cap. For a zero-required-parameter search tool this is nearly complete; only result ordering and combined-filter semantics are unaddressed.

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 description coverage is 100%, so all four parameters are already documented with examples and the category list. The description restates the same author examples, category values, and limit range without adding new semantics such as matching rules or precedence when filters are combined, so the baseline of 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 three query axes (keyword, author, category) plus returned fields, so the tool's function is unambiguous. It stops short of naming the sibling random_poem to contrast search-versus-random behavior, so it earns a 4 rather than a 5.

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?

It conveys that the three filters can be combined (组合查询) and that all are optional, which implies a browse-by-category or lookup-by-author workflow. There is no explicit when-to-use versus random_poem, no note on what happens when no filter is supplied, and no guidance on empty-result behavior.

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