Skip to main content
Glama

locate

Read-onlyIdempotent

Given a latitude/longitude, find which administrative boundaries, zones, and regions contain that point. Returns state, district, subdistrict, block, parliament/assembly constituency, pincode, seismic zone, high court jurisdiction, the municipal ward (for the 30+ cities with ward layers), and more. The 'where am I?' tool. Also accepts specific layer IDs to check.

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>",
      "lng": "<lng>"
    },
    "name": "locate"
  }
}

Input Schema

NameRequiredDescriptionDefault
latYesLatitude (6 to 38, India bounding box)
lngYesLongitude (68 to 98, India bounding box)
layersNoSpecific layer IDs to check. Omit to use the default: 13 essential admin/zone layers PLUS the city ward layer(s) covering the point (for the 30+ cities with ward layers). Passing this replaces the default entirely (no ward auto-include).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / layers / description
      Previous value: -"Specific layer IDs to check. Omit to use the default: 13 essential admin/zone layers PLUS the city ward layer(s) covering the point (for the ~30 cities with ward data). Passing this replaces the default entirely (no ward auto-include)."New value: +"Specific layer IDs to check. Omit to use the default: 13 essential admin/zone layers PLUS the city ward layer(s) covering the point (for the 30+ cities with ward layers). Passing this replaces the default entirely (no ward auto-include)."
  2. Changed1 schema field changed
    • changedInput schema / properties / layers / description
      Previous value: -"Specific layer IDs to check. Omit to use the default: 12 essential admin/zone layers PLUS the city ward layer(s) covering the point (for the ~30 cities with ward data). Passing this replaces the default entirely (no ward auto-include)."New value: +"Specific layer IDs to check. Omit to use the default: 13 essential admin/zone layers PLUS the city ward layer(s) covering the point (for the ~30 cities with ward data). Passing this replaces the default entirely (no ward auto-include)."
  3. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds real behavioral value by disclosing the default layer set (13 essential layers plus city ward auto-include) and that supplying layers replaces that default entirely. It says nothing about cost, latency, or what happens for points outside the India bounding box, so it stays at adequate rather than rich.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the core operation and followed by the return payload and the layers override. 'And more' is slightly wasteful and the return enumeration is long, but each sentence contributes to invocation decisions.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 usefully enumerates returned boundary types, and it explains default-layer composition. However, for a lookup tool that can return dozens of layer values, it gives no sense of response shape, key structure, or handling of points falling outside a given layer.

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 coverage is 100%, including range constraints on lat/lng and the default-replacement semantics of layers, so the schema carries most of the load. The description adds context about how many layers the default includes and why ward layers are auto-included, but offers no syntax examples or guidance on choosing specific layer IDs.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('find which administrative boundaries, zones, and regions contain that point'), enumerates the returned boundary types, and labels itself 'the where am I? tool'. This is clearly distinguishable from siblings like nearby or query_layer, which do not do point-in-polygon resolution.

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?

The phrase 'the where am I? tool' plus 'Given a latitude/longitude' establishes the usage context clearly. There is no explicit when-not guidance or named alternative (e.g., use nearby for proximity search), so it stops short of a full routing statement.

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.