Skip to main content
Glama

Universal Data — x402 + MPP Payment Setup

api_bazi_lunar_calendar

Read-onlyIdempotent

Convert Gregorian local civil date into Chinese lunar calendar date, lunar month and zodiac using calendar calculations. One call costs 0.01 USDC on Base x402; customer-owned provider credentials use X-Provider-Key header where needed.

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

Input Schema

NameRequiredDescriptionDefault
dateYesCivil date YYYY-MM-DD (1900–2100)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

The annotations already declare readOnly, idempotent, openWorld, and non-destructive, so the safety profile is covered. The description adds behavior that the annotations do not: a per-call cost of 0.01 USDC on Base via x402, and the need for a customer-owned provider credential passed in an X-Provider-Key header. Those details materially change how an agent plans and authenticates a call. It still says nothing about failure modes or output shape beyond naming the returned fields.

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 two sentences, and the purpose comes first, followed by the cost and auth constraints. Nothing is padded or repetitive. The only minor cost is that the billing and auth sentence is packed with pricing detail, but it is still relevant to a caller.

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?

This is a simple, single-parameter read-only conversion tool with no output schema, so the description needs to carry the shape of the result. It does so at a high level by naming the lunar date, lunar month, and zodiac. Combined with the schema's explicit format and the annotations' safety profile, an agent has enough information to call the tool correctly, although the exact field names or structure of the return value remain unstated.

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?

There is a single parameter with 100% schema description coverage, so the schema already documents the YYYY-MM-DD format and the 1900–2100 range. The description adds only a small nuance by calling it a local civil date, which signals that it is not a UTC timestamp. That is useful, but the schema does most of the work here.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb and resource: convert a Gregorian civil date into a Chinese lunar date, lunar month, and zodiac. It also names the computation basis (calendar calculations), which separates it from the other bazi siblings such as four_pillars or solar_terms. There is no explicit contrast with those siblings, but an agent can still infer the purpose 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 Guidelines2/5

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

The description states what the tool does but never says when to use it instead of the sibling bazi tools (four_pillars, five_elements, nayin, solar_terms, ten_gods) or what inputs are out of scope. The only invocation context, pricing and the X-Provider-Key header, is about billing/auth rather than about choosing when to use the tool.

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