Skip to main content
Glama

Duo Data Utilities: IBAN, VAT, ISIN Validation API

Calendar converter: Gregorian to Hijri, Hebrew, Japanese era, Persian and more, plus Easter date

calendar_convert
Read-onlyIdempotent

Calendar converter: convert a Gregorian date to other calendar systems: Islamic (both the tabular civil calendar and the Umm al-Qura variant), Hebrew, Japanese imperial era, Republic of China, Buddhist and Persian. Also computes Easter Sunday for a year in both the Gregorian and Julian reckonings. Uses the calendar support built into the runtime, with the algorithm named in every response. Price: $0.05 per successful call, paid over x402 (USDC on Base).

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

Input Schema

NameRequiredDescriptionDefault
opNoconvert (default) a Gregorian date, or easter for a year. Accepted: convert, easter.
toNoComma-separated calendar ids: islamic, islamic-umalqura, hebrew, japanese, roc, buddhist, persian. Default all. Accepted: islamic, islamic-umalqura, hebrew, japanese, roc, buddhist, persian.
dateNoGregorian date YYYY-MM-DD. Required when op=convert. Accepted: a calendar date as YYYY-MM-DD.
riteNoEaster reckoning: western (default) or eastern. Accepted: western, eastern.
yearNoYear for op=easter, 326-9999. Accepted: integer 326-9999.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / year / anyOf
      Added value: +[
      +  {
      +    "maximum": 9007199254740991,
      +    "minimum": -9007199254740991,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / year / type
      Removed value: -"string"
  2. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-open-world, so the safety profile is covered. The description adds genuinely new behavioral facts beyond those: every response names the algorithm used, the implementation relies on runtime calendar support, and each successful call costs $0.05 via x402 on Base — payment metadata an agent could not infer elsewhere.

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 purpose and the available calendar systems are front-loaded in the first sentence, with Easter and the pricing/algorithm note following. Slightly dense and partly duplicative of the title, but no sentence is wasted.

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 five optional parameters, two enums, and no output schema, the description covers both operations, the calendar set, the dual Easter reckonings, and the cost model. What remains unsaid — return shape and per-calendar output formatting — is modest for a converter, though a hint about the response structure would help since no output schema exists.

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 coverage is 100%, so the baseline is 3; the description earns one more by distinguishing the two Islamic variants (tabular civil versus Umm al-Qura) and clarifying that both Gregorian and Julian Easter reckonings are available, which maps meaning onto the islamic/islamic-umalqura and rite enum values rather than merely restating them.

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 states a specific verb and resource (convert a Gregorian date to other calendar systems) and enumerates the target calendars plus the Easter computation. An agent can distinguish this from date-arithmetic siblings such as timezone_convert or business_days_calculate without opening the schema, though no sibling is named explicitly.

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?

Usage is implied by the two operations described: convert a Gregorian date, or compute Easter for a year. There is no explicit when-to-use versus when-not, no statement about which calendar id to pick, and no pointer to any alternative tool for timezone-style conversion.

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.