Skip to main content
Glama
schlpbch

open-meteo-mcp

by schlpbch

search_location

Search for any place name to get its latitude and longitude, enabling weather queries without coordinates. Handles typos via fuzzy matching and supports country filtering.

Instructions

Searches for locations by name to get coordinates for weather queries.

Convert location names to coordinates using fuzzy search. Essential for natural language weather queries like "weather in Zurich" instead of requiring latitude/longitude coordinates.

Examples:

  • "Zurich" → Returns Zurich, Switzerland with coordinates

  • "Bern" → Returns multiple matches (Bern CH, Bern US, etc.)

  • "Zermatt" → Returns ski resort with elevation data

  • "Lake Geneva" → Returns lake coordinates

Features:

  • Fuzzy matching (handles typos)

  • Multi-language support

  • Country filtering (e.g., country="CH" for Switzerland only)

  • Returns population, timezone, elevation

  • Enriched with feature type descriptions and elevation categories

Workflow:

  1. Search for location by name

  2. Select result (usually first is best match)

  3. Use latitude/longitude for get_weather or get_snow_conditions

Use this tool when:

  • User provides location name instead of coordinates

  • Need to find coordinates for a city, mountain, or landmark

  • Want to discover locations in a specific country

Args: name: Location name to search (e.g., 'Zurich', 'Eiger', 'Lake Lucerne') count: Number of results to return (1-100, default: 10) language: Language for results (default: 'en', options: 'de', 'fr', 'it', etc.) country: Optional country code filter (e.g., 'CH' for Switzerland, 'DE' for Germany)

Returns: Dictionary containing: - results (list[dict]): List of matching locations, each with: - name (str): Location name - latitude (float): Latitude coordinate - longitude (float): Longitude coordinate - elevation (float | None): Elevation in meters - country (str): Country code - timezone (str): Timezone identifier - population (int | None): Population if applicable - feature_type_description (str): Type of location (City, Mountain, Lake, etc.) - elevation_category (str): Low, Medium, High, or Very High

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
countNo
countryNo
languageNoen

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Install Server

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden. It discloses fuzzy matching, multi-language support, country filtering, and richer outputs (population, timezone, elevation, feature type, elevation category), plus examples of multiple matches. It doesn't cover error cases or rate limits, but for a read-only search tool this is substantial.

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 description is long but organized into scannable sections with the core purpose front-loaded. Some redundancy exists between the Features list and the Returns section, but each section adds contextual value.

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?

Covers purpose, triggers, workflow, parameter details, and return structure in depth. An output schema is present, and the description still documents the returned dictionary fields. Because it doesn't mention the sibling search_location_swiss or error behavior, it stops short of complete, but it is more than sufficient for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema has 0% description coverage, so the description must compensate. The Args section provides detailed semantics for every parameter: name examples, count range (1-100), language options, and country code examples. This exceeds what the bare schema types convey.

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

Purpose4/5

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

States a specific verb and resource: 'Searches for locations by name to get coordinates for weather queries.' The examples and features clarify it converts names to coordinates. However, it does not explicitly differentiate itself from the sibling search_location_swiss tool, which would earn a 5.

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?

Includes a dedicated 'Use this tool when' section listing three concrete triggers (location name instead of coordinates, need coordinates for a city/mountain/landmark, discover locations in a country). Also provides a three-step workflow leading to get_weather/get_snow_conditions. It lacks an explicit 'when not to use' or a comparison to search_location_swiss.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/schlpbch/open-meteo-mcp-py'

If you have feedback or need assistance with the MCP directory API, please join our Discord server