Skip to main content
Glama
kltng

CJK Calendar Converter MCP Server

by kltng

convert_cjk_date

Convert a CJK historical date to Julian Day Number and all concurrent calendar equivalents. Optional country, dynasty, or emperor hints disambiguate era names.

Instructions

Convert a CJK (Chinese/Japanese/Korean/Vietnamese) historical date to Julian Day Number and equivalent dates in all concurrent calendars.

Input examples: '崇禎三年四月初三', '康熙元年正月初一', '寛永七年四月初三', 'M45.7.30'. Returns JDN, Gregorian date, Julian date (pre-1582), ganzhi (干支), and all concurrent CJK era representations.

Args: date: CJK date string, e.g. '崇禎三年四月初三' or 'M45.7.30' country: Optional country hint to disambiguate era names (chinese, japanese, korean, vietnamese) dynasty: Optional dynasty hint to disambiguate era names, e.g. '唐', '元', '北宋' emperor: Optional emperor hint to disambiguate era names, e.g. '肅宗', '順帝'

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateYes
countryNo
dynastyNo
emperorNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations present, the description carries the full burden of behavioral disclosure. It explains exactly what the tool does, what it returns (JDN, Gregorian date, Julian date pre-1582, ganzhi, concurrent era representations), and provides representative input formats. No unexpected side effects or hidden behaviors are left unaddressed.

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 well-structured with a summary, input examples, return values, and per-argument details. It is front-loaded with the core purpose, and every sentence adds useful information without excessive verbosity.

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?

The description is complete for a converter tool with an output schema. It covers input syntax, optional ambiguity-resolution hints, and the nature of the returned conversions. An agent has everything needed to invoke the tool correctly and interpret the result.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate. It does: each parameter is explained with concrete examples and purpose, and optional disambiguation hints (country, dynasty, emperor) are clearly described with valid values and sample inputs.

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 opens with a specific verb and resource: 'Convert a CJK ... historical date to Julian Day Number and equivalent dates in all concurrent calendars.' It clearly distinguishes the tool from siblings like convert_jdn and convert_gregorian_date by specifying the input type and output scope.

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?

Usage context is implied clearly: use this when you have a CJK historical date string. Examples of valid inputs make the intended use concrete, but the description does not explicitly mention when to prefer sibling tools like convert_jdn or search_era, nor does it state exclusion conditions.

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