Skip to main content
Glama

BaZi MCP Server

Chinese almanac (黄历)

get_almanac

Chinese almanac for a date range: day pillar, lunar date and the do (宜) / avoid (忌) lists. For "which day is good for X", pass activity as an almanac term, e.g. 移徙/入宅 (moving house), 嫁娶 (wedding), 开市 (opening a business), 立券/交易 (signing contracts). Max 31 days per call.

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": {
      "startDate": "<startDate>"
    },
    "name": "get_almanac"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNo
activityNo
startDateYesYYYY-MM-DD

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden and does disclose the return contents and a hard operational limit (max 31 days per call). What it leaves ambiguous is whether `activity` filters the returned days or simply annotates them — a real behavioral question an agent would want answered.

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?

Three tight sentences: what it returns, how to use the key parameter, and the call limit. The payload (returned fields) is front-loaded and nothing is redundant.

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 takes on the job of naming return fields and does so, plus it covers the range limit and the trickiest parameter. It stops short of clarifying the filtering-vs-annotation behavior of activity and any error behavior for invalid terms.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 33%, so the description has to compensate, and it largely does: it explains that activity accepts almanac terms and gives four concrete term examples (移徙/入宅, 嫁娶, 开市, 立券/交易), which the bare maxLength:8 schema could never convey. The 31-day cap likewise clarifies the days parameter's boundary.

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?

States a specific resource (Chinese almanac for a date range) and enumerates what comes back: day pillar, lunar date, and the 宜/忌 lists. That is far more concrete than the name alone, and the almanac framing is distinct from siblings like calculate_chart or luck_pillars, though it never explicitly contrasts itself with them.

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?

Gives a clear when-to-use framing ("which day is good for X") and tells the agent exactly how to populate the activity parameter with domain terms and worked examples. No exclusion guidance against alternative tools, which keeps it out of 5 territory.

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.