Skip to main content
Glama

Lunar date to Western date

convert_lunar_date
Read-onlyIdempotent

Converts a Chinese lunar calendar date (农历 / 阴历: lunar year, month, day, leap month) to the Western (Gregorian) date. Covers questions like 'when is my lunar birthday this year', 'when is the 15th of the 8th lunar month in 2027', 'Mid-Autumn Festival date', '农历八月十五是哪天'.

Input Schema

NameRequiredDescriptionDefault
lunar_dayYes1 to 30
lunar_yearYesLunar year, named by the Western year in which it begins, e.g. 2027.
lunar_monthYes1 to 12
is_leap_monthNoTrue for a leap (intercalary) month. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already establish that this is a read-only, idempotent, non-destructive, closed-world operation, so the safety profile is covered. The description adds the conversion direction and mentions leap-month handling, but it does not disclose supported year ranges, invalid-date behavior, or output format. With annotations doing most of the behavioral work, a 3 is appropriate.

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 definition is front-loaded with the core conversion purpose and then uses a compact example sentence to illustrate use cases. Both sentences earn their place, though the examples are somewhat illustrative rather than strictly necessary. Overall it is appropriately sized and easy to scan.

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?

For a simple two-calendar conversion tool, the description plus rich annotations and fully documented schema give an agent enough to call it correctly. The main remaining gap is that there is no output schema and the description does not state the return format or supported date range. Those omissions keep it from a 5 but are minor for a straightforward conversion.

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%, so all four parameters are already documented in the input schema. The description echoes the same inputs (lunar year, month, day, leap month) and adds bilingual terminology plus example dates, but it does not add syntax or constraints beyond the schema. Baseline 3 is correct when the schema carries parameter semantics.

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 states a precise verb and resource: it converts a Chinese lunar calendar date (with lunar year, month, day, and leap month) to the Western Gregorian date. The direction of conversion is unambiguous, and the examples clarify exactly what kind of question it answers. This is specific enough that an agent can distinguish it from sibling almanac or zodiac tools without opening the schema.

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?

The description supplies concrete question examples such as 'when is my lunar birthday this year' and 'when is the 15th of the 8th lunar month in 2027', which clearly frame when the tool is applicable. It does not explicitly name alternatives or exclusions, so it stops short of full when-to-use / when-not guidance. The intended use context is nevertheless clear from the examples.

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