Skip to main content
Glama

Get a GeoNames place

geonames_get_place
Read-onlyIdempotent

Fetch the full GeoNames record for one geonameId: coordinates, feature type, the admin chain with each level's code, name, and geonameId, timezone, bounding box, recorded and DEM elevation, population, Wikipedia URL, names in other languages, postal codes, and external identifiers (IATA, ICAO, UN/LOCODE, Wikidata). Take the geonameId from geonames_search_places, geonames_reverse_geocode, geonames_get_children, or geonames_get_countries. An unknown id returns found: false. Costs 1 GeoNames credit; repeat lookups are cached.

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": {
      "geonameId": "<geonameId>"
    },
    "name": "geonames_get_place"
  }
}

Input Schema

NameRequiredDescriptionDefault
geonameIdYesGeoNames feature id as a digit string up to 2147483647, such as "5809844" (Seattle): the geonameId the other geonames tools return, sent as a string.
nameLanguagesNoKeep only alternate names in these languages, up to 20, as a list. A tag also matches its regional forms: zh keeps names GeoNames tags zh, zh-CN, or zh-TW. Omit to return every alternate name, including those under GeoNames pseudo-language tags (abbr, phon, piny, fr_1793), which this filter cannot select. Postal codes, links, and identifiers are unaffected.
geonamesUsernameNoYour own GeoNames username, so the call spends that account's free credits instead of the server's. Omit it to use the server's account. The account needs free web services enabled on its geonames.org account page.

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
foundNoFalse when GeoNames has no feature with this geonameId.
placeNoThe full record; absent when found is false.
noticeNoPresent when the record has no country but carries a timezone: says the zone is the one GeoNames associates with the record, and how to get the time at a point.
guidanceNoWhat to do next; present only when found is false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / place / properties / boundingBox / description
      Previous value: -"Bounding box of the feature. Absent for most points."New value: +"Bounding box of the feature. A box with west above east crosses the 180° meridian; geonames_search_places takes it as it stands. Absent for most points."
  2. Changed5 schema fields changed
    • addedOutput schema / properties / notice
      Added value: +{
      +  "description": "Present when the record has no country but carries a timezone: says the zone is the one GeoNames associates with the record, and how to get the time at a point.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / place / properties / postalCodes / description
      Previous value: -"Postal codes GeoNames links to the place."New value: +"Postal codes GeoNames links to this feature. The list can be shorter than what geonames_find_postal_codes returns for the place, so it is not the complete set."
    • changedOutput schema / properties / place / properties / timezone / description
      Previous value: -"Timezone of the place. Absent when GeoNames sends none."New value: +"The timezone GeoNames associates with this record, not one looked up at its coordinates: on a feature with no country (an ocean, a sea, a continent) it can differ from the time there. For the time at a point, call geonames_reverse_geocode with includeTimezone. Absent when GeoNames sends none."
    • changedOutput schema / properties / place / properties / timezone / properties / dstOffsetInHours / description
      Previous value: -"UTC offset in hours on 1 July of the current year at the place."New value: +"UTC offset in hours on 1 July of the current year in this zone."
    • changedOutput schema / properties / place / properties / timezone / properties / gmtOffsetInHours / description
      Previous value: -"UTC offset in hours on 1 January of the current year at the place."New value: +"UTC offset in hours on 1 January of the current year in this zone."
  3. Changed5 schema fields changed
    • changedInput schema / properties / geonameId / description
      Previous value: -"GeoNames feature id, a positive integer up to 2147483647 such as 5809844 (Seattle), as returned in geonameId by the other geonames tools. A geonames.org/<id> URL is reduced to its id."New value: +"GeoNames feature id as a digit string up to 2147483647, such as \"5809844\" (Seattle): the geonameId the other geonames tools return, sent as a string."
    • changedInput schema / properties / nameLanguages / description
      Previous value: -"Keep only alternate names in these languages, up to 20, as a list or a comma-separated string. Case-insensitive; a tag also matches its regional forms (zh matches zh, zh-CN, and zh-TW). Omit to return every alternate name, including those under GeoNames pseudo-language tags (abbr, phon, piny, fr_1793), which this filter cannot select. Postal codes, links, and identifiers are unaffected."New value: +"Keep only alternate names in these languages, up to 20, as a list. A tag also matches its regional forms: zh keeps names GeoNames tags zh, zh-CN, or zh-TW. Omit to return every alternate name, including those under GeoNames pseudo-language tags (abbr, phon, piny, fr_1793), which this filter cannot select. Postal codes, links, and identifiers are unaffected."
    • changedOutput schema / properties / place / properties / adminLevels / items / properties / code / description
      Previous value: -"The division's GeoNames admin code."New value: +"The division's GeoNames admin code. At levels 1 to 4, pass it as written to geonames_search_places as that level's adminCode (adminCode1 to adminCode4), with the level 1 code as adminCode1 and countryCode in countries, to search inside the division; level 5 has no search filter."
    • changedOutput schema / properties / place / properties / timezone / properties / dstOffsetInHours / description
      Previous value: -"UTC offset in hours on 1 July."New value: +"UTC offset in hours on 1 July of the current year at the place."
    • changedOutput schema / properties / place / properties / timezone / properties / gmtOffsetInHours / description
      Previous value: -"UTC offset in hours on 1 January."New value: +"UTC offset in hours on 1 January of the current year at the place."
  4. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the readOnly/openWorld/idempotent annotations by disclosing the not-found behavior ("returns found: false"), the cost model (1 credit), and the caching of repeat lookups. Those are exactly the facts an agent needs to decide whether to call or to re-call, and none are inferable from the structured fields.

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-loads the core action and return contents, then tacks on sourcing, failure mode, and cost in short declarative sentences. The long field enumeration is dense but earns its place by telling the agent what it gets; only slightly wordy relative to the output schema that already defines the shape.

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?

Covers everything needed: what comes back, where the required id originates, what happens on a bad id, and the credit cost, while an output schema handles the exact return shape. Nothing material is left for the agent to guess before invoking.

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%, so geonameId, nameLanguages, and geonamesUsername are already fully documented in the schema, including the language-tag prefix matching rule. The description adds only the provenance hint for geonameId, which is usage guidance rather than new parameter meaning, 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 and resource ("Fetch the full GeoNames record for one geonameId") and immediately enumerates the record's contents, including the admin chain shape and identifier families. An agent can distinguish this from geonames_search_places or geonames_get_children without opening any schema.

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?

Explicitly routes the agent here after geonames_search_places, geonames_reverse_geocode, geonames_get_children, or geonames_get_countries, which covers the realistic entry points. It does not state when NOT to call it (e.g. when a lighter search result already suffices), so it stops short of full when/when-not guidance.

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.