Skip to main content
Glama

SalahTable

Qibla direction

get_qibla
Read-onlyIdempotent

Qibla bearing from true north, compass point and great-circle distance to the Kaaba for 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": {
      "country": "<country>",
      "city": "<city>"
    },
    "name": "get_qibla"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityYesCity slug from find_city, e.g. "karachi", "london"
countryYesCountry slug from find_city, e.g. "pakistan", "united-kingdom"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered. The description adds a meaningful behavioral detail — that the bearing is measured from true north (not magnetic) — and sketches the three returned values. It omits units and output format, which matters since there is no output schema.

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 with zero filler; the computed quantity and scope are stated before any qualification.

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 simple read-only two-parameter tool with no output schema, the description covers what is computed and the reference frame for the bearing. Missing units (degrees, distance units) and the shape of the returned compass point are the only remaining gaps.

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 the schema already documents both parameters including their slug format and the find_city source. The phrase 'for a city' only reinforces existing granularity and adds no new syntax or constraint information.

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 computed resource (Qibla bearing from true north, compass point, great-circle distance to the Kaaba) scoped to a city, which is clearly distinct from sibling tools like get_prayer_times or find_city. It stops short of explicitly contrasting with any sibling, but the resource is unambiguous.

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 when-to-use or when-not-to-use guidance appears in the description. The prerequisite that city/country must be slugs obtained from find_city exists only in the schema property text, not in the description itself.

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