Skip to content

GetCurrentTime

Zubir Jamal edited this page Jul 4, 2026 · 2 revisions

🕐 Tool: get_current_time

Returns the current UTC server timestamp. This is the anchor tool — use it first whenever a query involves comparing "now" against prayer times.


Parameters

This tool takes no parameters.


Response

Field Type Description
current_time_utc string Current time in UTC (ISO 8601 format)
source string Always "server"

Example Response

{
  "current_time_utc": "2026-07-03T14:20:38Z",
  "source": "server"
}

ℹ️ To convert to Malaysia Standard Time (MYT), add +08:00 to the UTC value. 14:20 UTC → 22:20 MYT


When to Use

Use get_current_time before calling get_monthly_prayer_times whenever the query involves:

  • "Which prayer is next?"
  • "Am I still in time for Zohor?"
  • "How many minutes until Maghrib?"
  • "Is it currently a valid time for Dhuha?"

By fetching the current UTC time first, the AI assistant can accurately compare it against prayer times and give a precise, real-time answer.


Related Tools


Error Handling

get_current_time reads directly from the server clock and makes no external API calls, so it will not return a structured error under normal conditions.

If the server itself is unreachable, the MCP client will receive a connection-level error rather than a structured response.

Clone this wiki locally