Skip to main content
Glama

Engine Heart

poetry.random_poem

随机返回一首古典诗词(含诗题、朝代、作者、全文),适合每日一诗/创作灵感。可传 category 指定类别:唐诗/宋词/元曲/诗经/楚辞/论语/宋词三百首,不传则从全部约9万首中随机。

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.random_poem"
  }
}

Input Schema

NameRequiredDescriptionDefault
categoryNo可选类别:唐诗 / 宋词 / 元曲 / 诗经 / 楚辞 / 论语 / 宋词三百首

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/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 behavioral burden. It discloses the key non-obvious trait — results are non-deterministic and drawn from a pool of roughly 90,000 poems — plus the default behavior when category is omitted. It doesn't mention any rate limits or authentication, but for a read-only retrieval tool the important behavior is covered.

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?

Two compact sentences, front-loaded with what the tool returns and followed by the optional-parameter behavior. The category enumeration duplicates the schema slightly, but the redundancy is minimal and helps orientation.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-optional-parameter, read-only retrieval tool with no output schema, the definition covers return fields, randomness, corpus size, default behavior, and the category options. An agent has everything needed to call it correctly and anticipate the shape of the result.

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% and the single optional parameter is already documented in the schema with the same category list. The description adds meaning beyond the schema by explaining the default semantics: when category is absent, selection is random across the full ~90,000-poem corpus rather than from a subset. That is genuine added value, though the list of categories itself repeats the schema.

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

Purpose5/5

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

States a specific verb+resource ('随机返回一首古典诗词') and enumerates exactly what is returned (诗题、朝代、作者、全文). The 'random' framing also implicitly distinguishes it from the keyword-based sibling search_poem, so an agent can route without opening either schema.

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?

Gives usage context ('适合每日一诗/创作灵感') and explains the optional category filter, which is helpful. However, it never states when NOT to use this or names a concrete alternative such as search_poem for keyword lookup; the when-to-use guidance is implied rather than explicit.

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