Skip to main content
Glama
MadhurToshniwal

OpenWeather MCP Server

get_forecast

Retrieve 5-day weather forecast with 3-hour intervals for any city. Enter city name and optional country code to get precise predictions.

Instructions

Get 5-day weather forecast with 3-hour intervals for a specific city

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cityYesCity name (e.g., 'London', 'New York', 'Tokyo')
country_codeNoOptional 2-letter country code (e.g., 'US', 'GB', 'IN')
Behavior4/5

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

Without annotations, the description discloses the forecast duration (5-day) and interval (3-hour), which is key behavioral context. However, it omits details like data source, error handling, or whether historical data is included.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, focused sentence with no redundant words. It efficiently conveys the tool's core functionality.

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?

Given no output schema, the description provides essential structure (5-day, 3-hour intervals). However, it could be more complete by mentioning typical response fields (e.g., temperature, humidity). Still adequate for a simple 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?

Both parameters (city, country_code) are described in the schema with 100% coverage. The description adds no new semantic meaning beyond 'for a specific city', which restates the city parameter. 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?

The description clearly states the verb 'Get', the resource 'weather forecast', and specifies the time range (5-day) and interval (3-hour) for a specific city, effectively distinguishing it from sibling tools like get_current_weather.

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?

While the description implies use for city-based forecasts, it lacks explicit guidance on when to use this tool over alternatives (e.g., get_weather_by_coordinates) and does not mention any exclusions or prerequisites.

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

Install Server

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/MadhurToshniwal/OpenWeather-MCP-server'

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