Skip to main content
Glama

AmLichVietNam MCP

Convert solar <-> lunar date

convert_lunar_date
Read-onlyIdempotent

Convert between Gregorian (solar) and Vietnamese lunar dates using an astronomical algorithm at Vietnam time (GMT+7 / ICT).

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": "convert_lunar_date"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesDate as YYYY-MM-DD (solar or lunar depending on direction)
leapNoTreat lunar month as leap when direction is lunar_to_solar
directionNoConversion direction (default solar_to_lunar)

Output Schema

NameRequiredDescriptionDefault
dataYes
tierYes
toolYes
gatedNo
quotaNo
sourceYes
disclaimerYes
source_urlYes
attributionYes
method_noteYes
upgrade_urlYes
generated_atYes
algorithm_versionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful context beyond that: the computation uses an astronomical algorithm anchored to Vietnam time (GMT+7/ICT), which materially affects results versus Chinese lunar calendars. It does not disclose supported year ranges or how invalid dates are handled.

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 front-loaded sentence with no filler; every clause (both calendar directions, Vietnamese tradition, algorithm, timezone) carries information an agent needs.

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 an output schema present, return values need no explanation, and the schema already covers parameter meaning. What is missing is the operational envelope: valid date range for the astronomical algorithm and how the leap flag behaves when the lunar month isn't actually a leap month.

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 three parameters (date, leap, direction) are already documented, including the default for direction. The description adds only contextual framing (Vietnam timezone basis) and no parameter-specific syntax or edge-case guidance, so the baseline of 3 applies.

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 both resources (Gregorian/solar and Vietnamese lunar dates), plus the calendrical tradition and timezone basis. This clearly separates it from siblings such as get_lunar_today or get_lunar_month, which return rather than transform dates.

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 rather than stated: an agent can infer this is the tool for translating a specific date between calendars, but the description never says when to prefer it over get_lunar_today or get_lunar_month, nor does it flag constraints such as supported date ranges. No exclusions or alternatives are named.

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.