Skip to main content
Glama

Classical Search

classical_search

检索文言文/古文名篇:支持按 keyword(名句或原文内容,如'先天下之忧而忧')、title(篇名,如 岳阳楼记/出师表/桃花源记/陋室铭)、author(作者,如 韩愈/苏轼/司马迁)组合查询,返回篇名、朝代、作者、原文、白话译文(部分篇目)、注释与赏析。库内收录约9800篇古文辞赋,其中约1600篇含白话译文;设置 with_translation=true 仅返回带译文的篇目。limit 1-30 默认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": "classical_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo返回条数,1-30,默认 10
titleNo篇名,如 岳阳楼记 / 出师表 / 师说 / 桃花源记
authorNo作者,如 范仲淹 / 诸葛亮 / 韩愈 / 苏轼
keywordNo名句/原文内容关键词,如 醉翁之意不在酒
with_translationNoTrue 时只返回附白话译文的篇目

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does real work: it discloses corpus size (~9800 pieces), that only ~1600 have translations, and that with_translation=true acts as a hard filter on the result set rather than a field toggle — a non-obvious behavior an agent would otherwise get wrong. It omits match semantics (substring vs exact vs fuzzy) for keyword/title, and says nothing about pagination beyond limit, which leaves a meaningful behavioral unknown.

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 sentence block with no filler: filters first, then return fields, then corpus constraints. It is dense and slightly run-on given the repeated example lists, but every clause adds usable information.

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?

Output schema exists, so return values need no explanation, and all five parameters are covered with defaults and ranges. The remaining gap is behavioral rather than structural: how keyword and title are matched (exact title? substring in body?) is unstated, which matters for a search tool with 9800 candidates.

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 every parameter is already documented, and the description largely mirrors those descriptions with the same examples. The one genuinely additive piece is the corpus statistic (1600 of 9800 translated) that explains the cost of with_translation=true, but limit semantics are merely restated and no matching rules are added — baseline 3 fits.

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 the exact query axes (keyword, title, author) with example values for each. An agent can immediately tell this is a filtered lookup over a classical-Chinese corpus, distinct from the sibling's random retrieval.

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: the filters are combinable (组合查询) and each carries concrete examples such as '先天下之忧而忧' for keyword versus 岳阳楼记 for title, which implicitly teaches the agent which field to reach for. It stops short of an explicit when-not statement or a named alternative to random_classical, so no exclusions or routing rule.

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