Skip to main content
Glama
Hayakit Calculators MCP Server

Hayakit Calculators MCP Server

by changrun1

convert_era

Converts Western years, Japanese eras with transition dates, Taiwan ROC years, zodiac signs, and ages from free-text dates or years.

Instructions

Convert between Western years (AD), Japanese eras (Reiwa/Heisei/Showa/Taisho/Meiji including transition dates), Taiwan ROC years (民國), zodiac (干支/生肖), and age.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "convert_era"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesFree-text date or year expression, e.g. "令和8年", "平成3年5月1日", "S60", "民國87年", "1989", "1998/05/01"
referenceDateNoOptional reference date (YYYY-MM-DD) for age calculation; defaults to today.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.1/5.0
Behavior2/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 and largely does not meet it. The phrase 'including transition dates' hints that era-boundary edge cases are handled, but nothing is said about output shape, how ambiguity is resolved, whether the conversion is bidirectional, or what errors occur on unparseable input.

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?

A single sentence with zero filler, front-loading the verb and then the full domain list. Nothing is redundant and nothing needs to be moved earlier.

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?

The tool is narrow and the parameters are fully documented in the schema, but with no output schema and no annotations, the description should say what a conversion returns (a single year? a structured set of all representations? an age?) and how ambiguous or out-of-range input is handled. As written it is adequate but leaves the agent guessing about results.

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 description coverage is 100%, and the schema already documents both 'query' (with format examples like 令和8年, S60, 民國87年) and 'referenceDate' (age calculation, defaults to today). The description adds no meaning beyond this, so the baseline of 3 applies.

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 ('Convert between') and enumerates the exact resource domains: Western years, Japanese eras with named eras and transition dates, Taiwan ROC years, zodiac, and age. An agent immediately knows the domain of the tool. It stops short of 5 because it never says what form the conversion result takes, so the 'what you get back' half of the purpose is unstated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use, when-not-to-use, or alternative routing guidance. The enumerated domains implicitly define scope, but the agent must infer that this is the tool for any date/era normalization request. No prerequisites, no mention of what to do with ambiguous input.

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