Skip to main content
Glama

Random Poem

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

Input Schema

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

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 are supplied, so the description carries the full burden and does reasonably well: it discloses the sampling pool size (~9万首), the returned fields, and the no-argument fallback. It never explicitly says the operation is read-only with no side effects, which is the main remaining gap for a zero-annotation tool.

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: output shape and use case first, parameter behavior second. No filler, though the field list in parentheses partially duplicates the output schema.

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?

For a single optional parameter with an output schema present, the definition covers output contents, sampling scope, and default behavior. Only an explicit note on read-only nature or sibling routing would make it fully complete.

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 enum-like category list is already documented. The description adds real meaning beyond the schema by explaining that omitting the parameter samples from all ~90,000 poems, which the `default: null` in the schema does not convey.

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?

States a specific verb and resource ('随机返回一首古典诗词') and enumerates exactly what comes back (诗题、朝代、作者、全文). The random-selection scope plus the ~90,000-poem pool makes it distinguishable in practice from search_poem, though the sibling is never named explicitly.

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?

Gives a concrete use context ('每日一诗/创作灵感') and states the default behavior when no category is passed. It stops short of naming when to prefer search_poem instead, so the agent must infer that keyword/lookup needs belong elsewhere.

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