Skip to main content
Glama

x402_aladhan_get_v1_gregorian_to_hijri

Convert a Gregorian date to its corresponding Hijri date using AlAdhan's calendar conversion API.

Instructions

aladhan — AlAdhan prayer times and Hijri calendar API: prayer timings by city/date, Hijri-Gregorian date conversion. Keyless. [GET /v1/gregorian-to-hijri] $0.005 USDC on eip155:8453+137+42161+480. Example: /v1/gregorian-to-hijri?date=27-11-2026

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

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON body for POST/PUT/PATCH/DELETE
queryNoQuery parameters, e.g. {base:'USD', quote:'EUR'}
restartNoExplicitly re-run a previously failed/unknown operation. Never set for unknown outcomes unless you know the paid call did not complete.
operationIdNoDurable operation id for this intent. Supply a stable id (e.g. your job/run id) to dedupe retries; omit to derive one from the arguments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose key behavioral facts: 'Keyless' (no auth required), the exact cost ($0.005 USDC) and accepted chains (eip155:8453+137+42161+480), and the HTTP GET method. It does not describe return shape or error/failure behavior, but the auth and payment profile is unusually well covered.

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?

Dense but compact: one API-level sentence, a bracketed endpoint, payment terms, and a concrete example. The prayer-times clause is not relevant to this tool and slightly dilutes front-loading, 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?

For a keyless paid GET with no output schema and no annotations, the definition supplies endpoint, cost, payment chains, auth status, and a usable example request. Return-value shape is undocumented, but that is a minor gap for a simple date-conversion endpoint.

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, and the description adds real value on top: the example `?date=27-11-2026` reveals the DD-MM-YYYY format of the date query parameter, which the generic `query` object schema does not specify. The generic body/restart/operationId parameters are not elaborated, but the format hint is the critical missing piece.

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 names the API (AlAdhan) and, via the bracketed endpoint `/v1/gregorian-to-hijri` plus 'Hijri-Gregorian date conversion', makes the conversion direction discernible. The opening sentence, however, describes the whole API surface ('prayer timings by city/date') rather than this specific tool, so the agent must rely on the endpoint tag to disambiguate from the sibling hijri_to_gregorian tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

No explicit when-to-use or when-not guidance is given, and the inverse sibling `x402_aladhan_get_v1_hijri_to_gregorian` is never named as the alternative. Direction is only implied by the endpoint path, leaving the agent to infer which conversion tool to pick.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools