Skip to main content
Glama

api_bazi_four_pillars

Read-onlyIdempotent

Calculate traditional Chinese Four Pillars from a local civil birth date/time using lunar-javascript; no predictions. 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>",
      "time": "<time>"
    },
    "name": "api_bazi_four_pillars"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesCivil date YYYY-MM-DD (1900–2100)
timeYesLocal civil time HH:mm (00:00–23:59)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world; the description adds genuinely new operational facts: the underlying engine (lunar-javascript), a per-call price of 0.01 USDC on Base x402, and the X-Provider-Key auth mechanism. It stops short of describing the returned structure or failure behavior, but the payment and auth disclosures are meaningful beyond the annotations.

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?

Two tight sentences, front-loaded with what is computed and what is excluded, then operational details (cost, auth). Dense and mostly waste-free, though the payment/credential sentence is compressed to the point of being terse.

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?

For a 2-param, no-output-schema tool, the definition covers input interpretation, scope limits, engine, cost, and auth. It lacks any indication of the shape of the returned Four Pillars result, which matters more here because no output schema exists to carry that burden.

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 coverage is 100% (both params documented with formats and the 1900–2100 / 00:00–23:59 ranges). The description's phrase 'local civil birth date/time' reinforces the civil-time interpretation but adds little the schema does not already state, so the baseline of 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?

Specific verb ('Calculate') plus a well-defined domain resource ('traditional Chinese Four Pillars') and an explicit exclusion ('no predictions'). It is distinguishable from the bazi siblings (five_elements, nayin, ten_gods, solar_terms) by naming the core Four Pillars output, 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 Guidelines3/5

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

The 'no predictions' clause usefully bounds scope, and the stated input ('local civil birth date/time') implies when the tool applies. However, there is no guidance on when to pick this over api_bazi_five_elements, api_bazi_ten_gods, or api_bazi_lunar_calendar, so usage must be inferred from the name.

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