Islamic prayer times
get_prayer_timesCalculated Islamic prayer times (Fajr, sunrise, Dhuhr, Asr, Maghrib, Isha) for coordinates on a date, with the method parameters used. These are calculations: local mosques and authorities may differ by a few minutes, so point users to their local timetable. Use search_city to get coordinates and the zone of a city.
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": {
"lat": "<lat>",
"lon": "<lon>",
"date": "<date>",
"tz": "<tz>"
},
"name": "get_prayer_times"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tz | Yes | IANA time zone of the place, e.g. Africa/Cairo | |
| asr | No | Asr rule: standard (Shafi'i, Maliki, Hanbali) or hanafi. Default standard. | standard |
| lat | Yes | Latitude in decimal degrees, north positive (−90 to 90) | |
| lon | Yes | Longitude in decimal degrees, east positive (−180 to 180) | |
| date | Yes | Local date at the place, YYYY-MM-DD (1900–2100) | |
| method | No | Calculation method: mwl (Muslim World League), umm-al-qura, egyptian, karachi or isna. Default mwl. | mwl |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asr | Yes | ||
| lat | Yes | ||
| lon | Yes | ||
| date | Yes | Calendar date, YYYY-MM-DD | |
| notes | Yes | Caveats and conventions that apply to this response. | |
| polar | Yes | ||
| times | Yes | ||
| method | Yes | ||
| source | Yes | Where the data or the algorithm comes from. | |
| methods | Yes | ||
| timeZone | Yes | IANA time zone name | |
| highLatitudeApproximation | Yes |