solar_to_lunar
将公历日期转换为农历日期,返回农历年月日、是否闰月、生肖、干支等信息
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| day | Yes | ||
| year | Yes | ||
| month | Yes |
将公历日期转换为农历日期,返回农历年月日、是否闰月、生肖、干支等信息
| Name | Required | Description | Default |
|---|---|---|---|
| day | Yes | ||
| year | Yes | ||
| month | Yes |
Changes observed during successful MCP inspections. Dates show when Glama detected each change.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden. It does reveal what the tool returns (lunar year/month/day, leap-month status, zodiac, ganzhi), but it omits behavioral details such as handling of invalid dates, supported date ranges, or timezone assumptions. This is acceptable for a simple conversion tool but not fully transparent.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single focused sentence that front-loads the core action and summarizes the output fields without any filler. Every word contributes to understanding the tool.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple date-conversion tool, the description covers the essential input and output semantics. The schema provides the required parameters, and the description explains the result categories. It lacks edge-case and validity-range details, but nothing critical seems missing for an agent to select and invoke the tool correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate. It adds the useful fact that the inputs represent a Gregorian date, which clarifies the meaning of year, month, and day. However, it does not describe per-parameter constraints, valid ranges, or format expectations.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a clear verb ('converts'), a specific input type (solar/Gregorian date), and a specific output resource (lunar date with year, month, day, leap-month flag, zodiac, and ganzhi). This cleanly distinguishes it from the holiday-related sibling tools.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description clearly establishes when to use the tool: whenever a Gregorian date needs to be converted to a lunar date. It does not explicitly mention when not to use it or name alternatives, but the intended use case is unambiguous given the sibling tools are holiday-focused.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.