Skip to main content
Glama

Geocode a place

asterwise_geocode
Read-onlyIdempotent

Turns a place name into latitude, longitude and IANA timezone for the other tools, which all take lat, lon and timezone.

WORKFLOW: BEFORE: None. AFTER: any tool that takes lat, lon and timezone — asterwise_get_natal_chart, asterwise_get_panchanga, asterwise_get_muhurta, asterwise_get_festival_calendar and others.

INPUT CONTRACT: query: place name, at least 2 characters (required). limit: 1-10 (default 5). country: optional ISO 3166 alpha-2 code.

DO NOT CONFUSE WITH: None — this is the only place-lookup tool.

Full output and error contract: https://docs.asterwise.com/mcp/tools/geocode/

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum matches to return (1-10).
queryYesPlace name, e.g. 'Pune' or 'Fatehabad, Haryana'.
countryNoOptional ISO 3166 alpha-2 country code to narrow the search, e.g. 'in'.
response_formatNoOutput format: 'markdown' (default) for a readable report, or 'json' for the raw structured payload.markdown

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds genuine behavioral context beyond that: the output is a lat/lon/timezone tuple that other tools require, establishing it as a prerequisite step. It stops short of describing match ambiguity or failure modes, deferring those to an external docs URL.

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?

Labeled sections (WORKFLOW, INPUT CONTRACT, DO NOT CONFUSE WITH) make it scannable and front-loaded, and it avoids prose padding. The INPUT CONTRACT does duplicate schema details already stated in the parameters, a minor redundancy.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, annotations covering safety, and all params documented, the description only needed to add positioning and workflow. It does exactly that, so an agent has everything required to call it correctly and chain its output.

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 all four parameters including defaults, range and enum. The INPUT CONTRACT section restates query length, limit bounds and the country code without adding syntax or format guidance beyond the schema, so baseline 3 applies.

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?

Opens with a specific verb and resource: turns a place name into latitude, longitude and IANA timezone. It also states the output's role for downstream tools, which no sibling can claim, and explicitly notes it is the only place-lookup tool in the set.

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

Usage Guidelines5/5

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

The WORKFLOW block gives explicit BEFORE (none) and AFTER (named consumers such as asterwise_get_natal_chart, asterwise_get_panchanga, asterwise_get_muhurta) plus a DO NOT CONFUSE WITH line. An agent knows exactly when to call this and what to do with the result.

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