Skip to main content
Glama

Torify — Japan Locale APIs for AI Agents

Japanese Era Date Converter

wareki.convert
Read-onlyIdempotent

Convert between Japanese era dates (wareki) and Gregorian. Supports Meiji/Taisho/Showa/Heisei/Reiwa. Handles era boundary dates accurately. 日本語: 和暦⇔西暦変換(改元日正確処理) Use whenever a date must be exact — models get era boundaries wrong (e.g. Showa 64 = Jan 1-7 1989 only). Do not compute wareki from memory.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dayNoDay 1-31 / 日(1〜31)
eraNoEra name (Reiwa/Heisei/Showa/Taisho/Meiji or 令和/平成/昭和/大正/明治)
dateNoGregorian date YYYY-MM-DD, required when direction=g2w / 西暦日付(direction=g2w 時必須)
monthNoMonth 1-12 / 月(1〜12)
eraYearNoEra year (1 or greater) / 元号年(1以上)
directionYesg2w: Gregorian to wareki / 西暦→和暦, w2g: wareki to Gregorian / 和暦→西暦

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dayNo日(w2g 時)
eraNo元号(例: 令和)
yearNo西暦年(w2g 時)
monthNo月(w2g 時)
eraYearNo元号年
eraRomajiNo元号ローマ字(例: Reiwa)
formattedNoフォーマット済み日付文字列
eraYearLabelNo元号年ラベル(例: 元年)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / date / description
      Previous value: -"西暦日付 YYYY-MM-DD(direction=g2w 時必須)"New value: +"Gregorian date YYYY-MM-DD, required when direction=g2w / 西暦日付(direction=g2w 時必須)"
    • changedInput schema / properties / day / description
      Previous value: -"日(1〜31)"New value: +"Day 1-31 / 日(1〜31)"
    • changedInput schema / properties / direction / description
      Previous value: -"g2w: 西暦→和暦、w2g: 和暦→西暦"New value: +"g2w: Gregorian to wareki / 西暦→和暦, w2g: wareki to Gregorian / 和暦→西暦"
    • changedInput schema / properties / era / description
      Previous value: -"元号(令和/平成/昭和/大正/明治、または Reiwa/Heisei 等)"New value: +"Era name (Reiwa/Heisei/Showa/Taisho/Meiji or 令和/平成/昭和/大正/明治)"
    • changedInput schema / properties / eraYear / description
      Previous value: -"元号年(1以上)"New value: +"Era year (1 or greater) / 元号年(1以上)"
    • changedInput schema / properties / month / description
      Previous value: -"月(1〜12)"New value: +"Month 1-12 / 月(1〜12)"
  2. Changed2 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / eraYear / maximum
      Added value: +9007199254740991
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnlyHint and idempotentHint. The description adds crucial context about accurate handling of era boundary dates, which is a behavioral promise beyond what annotations convey. No contradiction with annotations.

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?

The description is three English sentences, a Japanese sentence, and a bolded usage note. It is relatively concise and front-loads the purpose and usage guideline. However, the Japanese text may be redundant for some agents, slightly reducing conciseness.

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?

Given an output schema exists (not shown but mentioned), the description covers purpose, supported eras, accuracy, and usage context. No further information needed for an AI agent to correctly invoke this tool.

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% with descriptions for all 6 parameters. The tool description itself does not add additional parameter semantics beyond what is in the schema. Baseline 3 is appropriate as the description does not deepen understanding of parameters.

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 between Japanese era dates and Gregorian, lists supported eras (Meiji/Taisho/Showa/Heisei/Reiwa), and emphasizes accuracy at boundary dates. This uniquely distinguishes it from sibling tools like geo.geocode or name.romanize.

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

Usage Guidelines5/5

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

Explicitly advises to use whenever a date must be exact and warns against computing wareki from memory, providing a concrete example (Showa 64). This gives clear when-to-use and when-not-to-use context, with no alternative tools suggested but sufficient for this niche.

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.