Skip to main content
Glama

BaZi MCP Server

Calculate BaZi chart

calculate_chart

Calculate a BaZi Four Pillars chart from birth data. The engine applies the true solar time correction (birthplace legal timezone, including historical DST, plus longitude) and returns the four pillars with ten gods, day master element and zodiac. Never compute pillars from memory — call this.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "calculate_chart"
  }
}

Input Schema

NameRequiredDescriptionDefault
birthNoBirth data collected from the user, usually via request_form with a "birth" field.
chartIdNoId of a chart the signed-in user already saved (from list_my_charts or the page context). Prefer this when available.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full burden: it does disclose the true solar time computation (historical DST, legal timezone plus longitude) and previews the returned content, which is real behavioral value. However, it never says whether the call persists the chart to the signed-in user's account, whether authentication is required, or what happens when neither birth nor chartId is supplied — relevant for a tool whose schema exposes a saved-chart id.

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 sentences, front-loaded with the action, then the mechanism, then the call-to-action imperative. No filler and no repetition of schema detail beyond what is needed to justify the parameters.

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?

Without an output schema the description does the work of describing return content (four pillars, ten gods, day master, zodiac), which is exactly what an agent needs to decide whether this result answers the user. The remaining gap is the dual entry path (fresh birth data vs saved chartId) and persistence behavior, which the nested 12-field schema hints at but the prose never addresses.

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 the country/timezone/longitude semantics are already documented in the schema itself and the description's mention of solar time correction largely restates that. It adds no guidance on the chartId-versus-birth precedence or on partial time input (hourUnknown, default birthHour), so the baseline 3 applies.

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?

Names a specific verb and resource ("Calculate a BaZi Four Pillars chart from birth data") and enumerates the outputs (ten gods, day master element, zodiac), which lets an agent distinguish it from calculation-adjacent siblings like luck_pillars or get_almanac. It stops short of explicitly naming what those siblings cover, so a 4 rather than a 5.

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?

The directive "Never compute pillars from memory — call this" is a strong, explicit usage rule that tells the agent to route here rather than reason on its own. It gives no when-not conditions and does not mention the chartId path or competition with any other tool, so it is clear context without exclusions.

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.