Skip to main content
Glama

In-flight prayer times

get_inflight_prayer_times
Read-onlyIdempotent

Prayer times during a flight, worked out along the route at cruising altitude: which prayers fall in the air (in both airports' local time), which before departure and after arrival, and the Qibla relative to the aircraft's nose. On flights to Jeddah, also the miqat where pilgrims intending Hajj or Umrah must be in ihram. Flights up to 20 hours. The flight is either a flight number with its departure date (the airline's scheduled airports and times, looked up here), or the airports and local times. With a flight number, also the airline's halal meal policy.

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

Input Schema

NameRequiredDescriptionDefault
asrNoAsr juristic method. Default: Hanafi when departing from Pakistan, India, Bangladesh or Afghanistan, else Shafii.
methodNoCalculation method id from list_calculation_methods. Default: the method of the departure country's Islamic authority, else Muslim World League.
to_airportNoArrival airport: IATA code ("LHR") or name.
flight_dateNoDeparture date at the departure airport, YYYY-MM-DD, with flight_number.
from_airportNoDeparture airport: IATA code ("SIN") or name.
arrival_localNoArrival in the arrival airport's local time, YYYY-MM-DDTHH:mm.
flight_numberNoFlight number, for example "SQ308". With flight_date, the airports and times are looked up; a flight with a stop is one leg at a time (from_airport or to_airport picks it).
departure_localNoDeparture in the departure airport's local time, YYYY-MM-DDTHH:mm.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / flight_date
      Added value: +{
      +  "description": "Departure date at the departure airport, YYYY-MM-DD, with flight_number.",
      +  "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      +  "type": "string"
      +}
    • addedInput schema / properties / flight_number
      Added value: +{
      +  "description": "Flight number, for example \"SQ308\". With flight_date, the airports and times are looked up; a flight with a stop is one leg at a time (from_airport or to_airport picks it).",
      +  "maxLength": 12,
      +  "minLength": 3,
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "from_airport",
      -  "departure_local",
      -  "to_airport",
      -  "arrival_local"
      -]
  2. Changed2 schema fields changed
    • changedInput schema / properties / asr / description
      Previous value: -"Asr juristic method. Default Shafii."New value: +"Asr juristic method. Default: Hanafi when departing from Pakistan, India, Bangladesh or Afghanistan, else Shafii."
    • changedInput schema / properties / method / description
      Previous value: -"Calculation method id from list_calculation_methods; in flight only 5, 7, 2, 0, 3, 4, 1 are supported. Default Muslim World League."New value: +"Calculation method id from list_calculation_methods. Default: the method of the departure country's Islamic authority, else Muslim World League."
  3. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered; the description adds real behavior: a 20-hour flight ceiling, the alternate input paths, the stop-over rule, and the halal meal policy returned when a flight number is given. It does not describe failure behavior (unknown flight number, unparsable times), which is the main remaining gap.

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?

It leads with what the tool returns, then constraints, then input modes, then the flight-number-only extra. Dense but every clause carries information, and no sentence merely restates the name or schema.

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 an 8-parameter tool with zero required parameters and no output schema, the description covers the returned content (in-air/before/after prayers, Qibla, miqat, meal policy) and the input-mode logic well. It stops short of describing what happens with ambiguous airport names or invalid flights, which an agent might need.

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, but the description adds the crucial either/or relationship between flight_number+flight_date and from_airport/to_airport+departure_local/arrival_local that the flat schema cannot express. It also notes the halal meal policy is only returned in the flight-number mode, which is conditional semantics not visible per-parameter.

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 a specific resource and scope: prayer times computed along a flight route at cruising altitude, including which prayers fall in the air, before departure, after arrival, and the Qibla relative to the aircraft's nose. It implicitly separates itself from get_prayer_times by the 'during a flight / along the route' framing, though it never names that sibling explicitly.

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

Usage Guidelines4/5

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

It clearly lays out the two accepted input modes (flight number plus departure date, or airports plus local times) and a hard constraint (flights up to 20 hours), plus the conditional extra for Jeddah routes. It does not state when an agent should prefer this over get_prayer_times or get_qibla_direction, so selection guidance is contextual rather than explicit.

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