Skip to main content
Glama
Earthcast MCP Server

Earthcast MCP Server

by ec-will

search_location

Converts location names to coordinates for weather queries, enabling natural language requests like 'weather in Paris' via global city and town search.

Instructions

Search for locations by name to get coordinates for weather queries. Uses Nominatim (OpenStreetMap) for excellent coverage of cities, towns, villages, and hamlets worldwide. Use this when the user provides a location name instead of coordinates (e.g., "Paris", "New York", "Tokyo", "San Francisco, CA", "Small Village, County"). Returns location matches with coordinates, timezone, elevation, and other metadata. Enables natural language location queries like "What's the weather in Paris?" by converting location names to coordinates.

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": {
      "query": "<query>"
    },
    "name": "search_location"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results to return (1-100, default: 5)
queryYesLocation name to search for (e.g., "Paris", "New York, NY", "Tokyo")

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden, and it does disclose the backing provider (Nominatim/OpenStreetMap), its coverage profile, and the fields returned (coordinates, timezone, elevation, metadata). It omits operationally important traits such as Nominatim's request-rate expectations, behavior on zero matches, or result ranking/ambiguity handling — all of which matter for an agent deciding how to call and retry.

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?

The purpose and usage condition are front-loaded and the prose is readable. The closing sentence largely restates the opening ('converting location names to coordinates' / 'get coordinates for weather queries'), so it does not fully earn its place, though it does add a natural-language example.

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 two-parameter, no-annotation, no-output-schema tool, the description covers purpose, trigger condition, provider, coverage, and returned fields — enough to call it correctly. The remaining gap is failure and rate-limit behavior, which is minor at this complexity level but would be valuable for a public Nominatim-backed call.

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 both `query` and `limit` are already documented with examples and bounds; the baseline of 3 applies. The description adds only illustrative query formats ('San Francisco, CA', 'Small Village, County'), which hint at the 'city, region' syntax but say nothing about the `limit` parameter or result-ordering implications.

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?

The description opens with a specific verb and resource — 'Search for locations by name to get coordinates for weather queries' — and the geocoding intent (name → coordinates) is distinct from the sibling tools that save, list, or remove already-known locations. An agent can tell what this tool does and what it is not for without opening the 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?

It gives an explicit selection condition: 'Use this when the user provides a location name instead of coordinates,' with several concrete example inputs. It stops short of naming an alternative or stating when not to use it (e.g., when the user already has saved locations or supplies coordinates directly), so it is clear context but not full routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.