Skip to main content
Glama
FreyaBit

io.github.FreyaBit/shanghai-library-open-data-mcp

by FreyaBit

slc_era

Convert Chinese dynasty or reign name to AD year range and vice versa. Enter a term like 'Ming' to get its years or a year to find the era. Requires your Shanghai Library API key.

Instructions

中国历史纪年表:输入朝代/年号返回公元年范围,或反之。例:明 -> 1368~1644。请传入 key(自己的上海图书馆开放数据 APIKey)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyNo上海图书馆开放数据 APIKey(必填)
termYes朝代/年号/公元年,如 明、洪武、1369
Behavior3/5

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

No annotations are provided, so the description carries the responsibility. It discloses the need for an API key, but does not describe error handling, rate limits, or the exact output format beyond the example. This is adequate but lacks depth.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single concise sentence with an illustrative example. It is front-loaded with the tool name and functionality, with no unnecessary filler.

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

Completeness3/5

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

This is a simple lookup tool, and the description explains the core conversion direction and provides an example. However, there is no output schema and no mention of edge cases, reverse conversion specifics, or error conditions, leaving some gaps for a fully complete understanding.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already documents both parameters with clear descriptions (100% coverage), so the baseline is 3. However, the description states 'key' is required ('必填') while the schema's required array includes only 'term', creating a direct contradiction that could mislead the agent.

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?

The description clearly states the tool converts Chinese historical dynasty/reign era names to AD year ranges and vice versa, using the example '明 -> 1368~1644'. This specific verb+resource pairing distinguishes it from sibling tools.

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?

It provides clear usage context: input a dynasty/reign term or an AD year, and it returns the corresponding range or era. The example illustrates the expected input/output. However, it does not explicitly mention alternatives or when not to use this tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/FreyaBit/OpenSH-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server