Skip to main content
Glama

Solar to lunar date

vn_lunar_from_solar
Read-onlyIdempotent

Convert a Gregorian date to its Vietnamese lunar equivalent, including can chi, zodiac, leap-month flag, and solar terms; add an hour to get hour can chi, branch, and birth-time range.

Instructions

Convert a Gregorian date (dd/mm/yyyy or yyyy-mm-dd) to the Vietnamese lunar date with can chi (e.g. Ất Tỵ), zodiac, leap-month flag and solar term. Optional hour (0-23) adds hourCanChi, hourBranch, hourRange (giờ sinh).

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": {
      "date": "<date>"
    },
    "name": "vn_lunar_from_solar"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYes
hourNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so safety needs no restating. The description adds genuine behavioral detail: which derived fields appear in the result and that the hour fields are only added when hour is supplied. It does not cover invalid-date behavior or error responses, which keeps it below a 5.

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?

Two sentences, front-loaded with the conversion and its outputs, then the optional hour behavior. Every clause contributes information an agent needs; nothing is redundant with the annotations.

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?

With no output schema, the description compensates by naming the return fields including the conditional hour fields. For a simple two-parameter read-only conversion this is nearly complete; only failure modes and any default handling of a missing hour are absent.

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 0%, so the description carries the full parameter burden and does supply the two accepted date formats plus the hour range (0-23) and its effect on output. It still leaves the schema's bare 'date' string underspecified for edge cases (time components, single-digit days, ambiguity between formats) and does not say what happens when hour is omitted beyond 'optional'.

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?

States a specific verb (Convert) and resource (Gregorian date to Vietnamese lunar date) and enumerates the returned components (can chi, zodiac, leap-month flag, solar term). The direction solar→lunar inherently distinguishes it from the reverse-direction sibling vn_lunar_to_solar.

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 is implied by the conversion direction and the accepted input formats, which is enough for an agent to know this is the solar-input entry point. However, there is no explicit guidance on when to prefer vn_lunar_parse_date or vn_lunar_canchi, nor any stated preconditions or exclusions.

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