Skip to main content
Glama

Qibla direction

get_qibla_direction
Read-onlyIdempotent

The Qibla bearing (direction of the Kaaba in Mecca) from a city or coordinates, in degrees from true north, with the distance.

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_qibla_direction"
  }
}

Input Schema

NameRequiredDescriptionDefault
placeNoCity name, optionally with country ("Kuala Lumpur", "London, United Kingdom"), or a neighbourhood or landmark in HalalTrip's listings ("Bugis, Singapore"). For other areas, give coordinates.
latitudeNoLatitude in degrees, instead of place.
longitudeNoLongitude in degrees, instead of place.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / place / description
      Previous value: -"City name, optionally with country: \"Kuala Lumpur\", \"London, United Kingdom\"."New value: +"City name, optionally with country (\"Kuala Lumpur\", \"London, United Kingdom\"), or a neighbourhood or landmark in HalalTrip's listings (\"Bugis, Singapore\"). For other areas, give coordinates."
  2. First observed

TDQS

A3.6/5.0
Behavior3/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 useful behavior beyond that by disclosing the return content and its units (bearing in degrees from true north plus distance). It does not say how place names are resolved or what happens on failure, 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?

A single front-loaded sentence that packs the quantity, the input modes, the reference frame, and the secondary output. The parenthetical gloss on the Kaaba is short and earns its place for agents lacking domain context; no filler.

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?

With no output schema, the description correctly carries the return-value explanation (degrees and distance), and it implies one of place or coordinates must be supplied despite zero required parameters. It stops short of stating minimum-input requirements explicitly or describing error behavior for unmatched places.

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%, so all three parameters are already documented, including the 'instead of place' either/or semantics. The description reinforces the two input modes at a high level but adds no format, precedence, or fallback detail beyond the schema.

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 computation (Qibla bearing toward the Kaaba), the accepted input forms (city or coordinates), and the units/frame of reference (degrees from true north). Nothing about it overlaps with the prayer-time or restaurant siblings, though it does not explicitly name an alternative.

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 only implied by the purpose statement: an agent can infer it should call this when a user asks which way to face for prayer. There is no explicit when-to-use/when-not-to-use guidance, no mention of pairing with get_prayer_times, and no guidance on what to do when the place name is ambiguous or unresolvable.

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