Skip to main content
Glama

AgentStall: Africa and global data for agents

Hijri date converter and Ethiopian, Persian, Indian (Saka) and Thai calendar converter

calendar_date_convert
Read-onlyIdempotent

Hijri date converter and Ethiopian calendar converter: convert a date between Gregorian and Hijri (Saudi Umm al-Qura and tabular), Ethiopian, Coptic, Persian Solar Hijri, Indian national (Saka) and Thai Buddhist calendars, both ways. Returns year, month, day, month name, era, weekday and the date in Arabic, Amharic, Persian, Hindi or Thai. Covers Saudi Arabia, Ethiopia, Egypt, Iran, India and Thailand. Source: Unicode CLDR/ICU. Returns JSON with input, gregorian, weekday, dates, asOf. Read-only; invalid input is rejected before any charge. Price: $0.001 USDC per call (x402, Base mainnet), paid only when the call succeeds.

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

Input Schema

NameRequiredDescriptionDefault
toNoOptional calendars to return, comma-separated (default: all 7)
dateYesDate as YYYY-MM-DD in the 'from' calendar, e.g. 2026-11-27, or 1448-09-01 with from=hijri
fromNoCalendar of 'date': gregorian (default), hijri (Umm al-Qura), islamic-civil, ethiopic, coptic, persian, indian (Saka) or buddhist (Thai)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare readOnly, idempotent, and closed-world. The description adds material behavior beyond that: the billing model ($0.001 USDC per call via x402 on Base mainnet, charged only on success), the rejection of invalid input before any charge, the data source (Unicode CLDR/ICU), and the JSON response keys. These are exactly the facts an agent needs to call safely and predictably.

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 definition is a single dense paragraph that front-loads purpose, then capabilities, then cost and response shape. It is longer than average but nearly every sentence carries information an agent needs; only the repeated calendar enumeration between title and description is mild redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 correctly fills the gap by listing the returned fields (input, gregorian, weekday, dates, asOf) and the human-readable attributes per calendar. Combined with full parameter coverage and explicit payment semantics, nothing an agent needs to invoke or interpret the result is missing.

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 all three parameters are already documented in the schema. The description names the calendar families and the multilingual output, but does not add syntax or format meaning beyond what the schema's 'date', 'from', and 'to' descriptions already provide. Baseline 3 is appropriate.

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

Purpose5/5

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

The description opens with a specific verb and resource ('convert a date between Gregorian and Hijri...') and enumerates every supported calendar family, so an agent knows exactly what this tool does and what it covers. No sibling in the supplied list performs calendar conversion, so there is no ambiguity to resolve.

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?

Usage is clearly implied and scoped: 'both ways', plus the schema's 'from' default (gregorian) and 'to' default (all 7) establish when and how to call it. It stops short of explicit when-not-to-use or exclusion guidance, but for a self-contained converter there is no competing alternative to route against.

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