Skip to main content
Glama

AstroWay Astrology API (full catalogue)

Nearest place to coordinates

astroway_geo_reverse
Read-onlyIdempotent

The populated place nearest to a point, by great-circle distance over the same list as /geo/search, and the IANA zone of the point itself (which near a border can differ from the place's). Works across the antimeridian and at the poles. At sea timezone is the nautical hour band (Etc/GMT+2, whose sign is inverted by POSIX convention) and nautical is true; place.distanceKm says how far the nearest place is, so a point in open water is not mistaken for a town. featureCode PPLX marks a section of a city rather than a city.

[Group: Astro-Geography] [Endpoint: GET /v1/geo/reverse] [Required: lat, lon] [Cost: 5 credits (Tier ½)]

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>",
      "lon": "<lon>"
    },
    "name": "astroway_geo_reverse"
  }
}

Input Schema

NameRequiredDescriptionDefault
latYesLatitude in decimal degrees, north positive.
lonYesLongitude in decimal degrees, east positive.
langNoLanguage for the place, region and country names.
fieldsNoComma-separated paths inside `data` to keep, e.g. "planets.name,houses.cusp".
precisionNoRound numbers to this many decimals.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • changedInput schema / properties / fields / description
      Previous value: -"Compact mode: comma-separated dotted paths to keep, relative to `data`, e.g. \"planets.name,planets.longitude,houses.cusp\". Omit for the whole response."New value: +"Comma-separated paths inside `data` to keep, e.g. \"planets.name,houses.cusp\"."
    • changedInput schema / properties / precision / description
      Previous value: -"Compact mode: round fractional numbers to this many decimals. Longitudes carry 14 by default; 2 is finer than any chart is drawn."New value: +"Round numbers to this many decimals."
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "http://json-schema.org/draft-07/schema#",
      -  "additionalProperties": {},
      -  "properties": {
      -    "attribution": {
      -      "anyOf": [
      -        {
      -          "additionalProperties": {},
      -          "properties": {
      -            "licence": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "licenceUrl": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "notice": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "source": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "sourceUrl": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            }
      -          },
      -          "type": "object"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    },
      -    "dataset": {
      -      "anyOf": [
      -        {
      -          "additionalProperties": {},
      -          "properties": {
      -            "count": {
      -              "type": [
      -                "number",
      -                "null"
      -              ]
      -            },
      -            "downloaded": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "licence": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "namesUrl": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "source": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "url": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            }
      -          },
      -          "type": "object"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    },
      -    "latitude": {
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    "longitude": {
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    "nautical": {
      -      "type": [
      -        "boolean",
      -        "null"
      -      ]
      -    },
      -    "place": {
      -      "anyOf": [
      -        {
      -          "additionalProperties": {},
      -          "properties": {
      -            "admin1": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "admin1Code": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "country": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "countryCode": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "distanceKm": {
      -              "type": [
      -                "number",
      -                "null"
      -              ]
      -            },
      -            "featureCode": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "id": {
      -              "type": [
      -                "number",
      -                "null"
      -              ]
      -            },
      -            "latitude": {
      -              "type": [
      -                "number",
      -                "null"
      -              ]
      -            },
      -            "longitude": {
      -              "type": [
      -                "number",
      -                "null"
      -              ]
      -            },
      -            "name": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "population": {
      -              "type": [
      -                "number",
      -                "null"
      -              ]
      -            },
      -            "timezone": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            }
      -          },
      -          "type": "object"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    },
      -    "timezone": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    }
      -  },
      -  "type": "object"
      -}New value: +null
  2. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive behavior, so the description's value lies in the edge-case disclosure it adds: antimeridian and polar handling, the sea case where `timezone` becomes a nautical hour band (`Etc/GMT+2`) with POSIX-inverted sign and `nautical` is true, and `featureCode` PPLX meaning a city section rather than a city. That is genuine behavior beyond the annotations, though the response shape and credit cost handling are left to the surrounding metadata.

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?

Front-loaded with the core return value, then caveats in descending order of importance; no sentence is filler. The sentences are long and bundle several concerns (sea timezone, distance, featureCode) into a dense block, which costs a little readability.

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 must carry return-value meaning, and it does explain the key discriminators (`timezone`, `nautical`, `place.distanceKm`, `featureCode`). It stops short of describing the overall response payload (place name, region, country coordinates) and never touches `lang`, `fields`, or `precision`, leaving a modest gap for a 5-parameter tool.

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% for all five parameters, so lat/lon ranges, the language enum, `fields`, and `precision` are already documented in the schema. The description adds no parameter-level meaning beyond that, so the 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?

States a specific verb-equivalent and resource: 'the populated place nearest to a point, by great-circle distance', plus a second output (the IANA zone of the point itself). It also scopes the data source ('over the same list as /geo/search'), which cleanly separates it from forward search and from the timezone-only sibling.

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 implied by the title and by the nearest-place framing, and the note that `place.distanceKm` prevents open-water points being mistaken for towns gives an interpretive cue. However, there is no explicit 'use this instead of X when Y' routing, and no statement of prerequisites or exclusions relative to astroway_geo_search or astroway_geo_timezone.

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