Skip to main content
Glama

ClockCrest time tools

Convert between calendars

convert_calendar
Read-onlyIdempotent

Converts a date between the Gregorian, Hijri (Umm al-Qura), Persian (Solar Hijri) and Hebrew calendars. Hijri results are the calculated Umm al-Qura calendar: the day a religious month really begins depends on local moon sighting and can differ by a day or two.

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>",
      "from": "<from>",
      "to": "<to>"
    },
    "name": "convert_calendar"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesTarget calendar
dateYesDate in the source calendar as year-month-day with a four-digit year, e.g. 2026-12-01 or 1448-09-01
fromYesSource calendar

Output Schema

NameRequiredDescriptionDefault
inputYes
notesYesCaveats and conventions that apply to this response.
resultYes
sourceYesWhere the data or the algorithm comes from.
weekdayYesEnglish weekday name
gregorianYesThe same day in the Gregorian calendar
supportedCalendarsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds real behavioral context beyond that: it warns that the Hijri result uses the calculated Umm al-Qura calendar and may differ from observed religious dates by a day or two, which is exactly the kind of caveat an agent needs when relaying results.

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?

Two sentences, front-loaded with the capability and followed by a single caveat that earns its place. No filler, no restatement of the title.

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?

An output schema exists, so return values need no explanation, and all three parameters are fully documented in the schema. The description is nearly complete for this simple tool; a brief note on invalid/out-of-range dates would close the remaining gap.

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%, with enums and an explicit date pattern/example, so the schema carries the parameter burden and the baseline is 3. The description adds interpretive meaning for one enum value (islamic-umalqura = calculated Umm al-Qura), but says nothing about whether 'date' must match the source calendar's own year numbering beyond what the schema already shows.

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 verb and resource ('Converts a date between...calendars') and enumerates the exact four supported calendars, so an agent can tell this apart from convert_timezone or calculate_date_difference. It stops short of explicitly naming a sibling as the alternative, which keeps it from 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 Guidelines3/5

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

Usage is implied – the reader can infer this is the tool for translating a date representation across calendar systems rather than shifting time zones. There is no explicit 'use this instead of convert_timezone when...' statement and no statement of when not to use it.

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