Skip to main content
Glama
weather-mcp

weather-mcp

by hammerZh-Z

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
weather_query_by_daysA

查询指定城市在指定天数后的天气情况。

这个工具可以查询未来16天内任意一天的天气预报,包括温度、降水、风力等信息。

Args: params (WeatherQueryInput): 已验证的输入参数,包含: - city (str): 城市名称(例如:'北京', '上海', 'New York', 'London') - days_later (int): 未来的天数(0=今天, 1=明天, 2=后天, 范围:0-16) - response_format (ResponseFormat): 输出格式,默认为markdown

Returns: str: 格式化的天气信息

成功响应包含:
- 天气状况(晴朗、多云、雨等)
- 温度范围(最低/最高温度)
- 体感温度
- 降水量和降水概率
- 风速
- 湿度
- 紫外线指数
- 日出日落时间

错误响应:
"Error: <错误信息>"

Examples: - 查询明天的天气: city="北京", days_later=1 - 查询后天的天气: city="上海", days_later=2 - 查询7天后的天气: city="New York", days_later=7

Error Handling: - 如果城市名称无效,返回城市未找到错误 - 如果天数超出范围(0-16),返回验证错误 - 如果API请求失败,返回相应的错误信息

weather_query_by_weekdayA

查询指定城市在下一个指定星期几的天气情况。

这个工具可以查询下一个指定星期几(如本周六、本周日)的天气预报。

Args: params (WeekdayQueryInput): 已验证的输入参数,包含: - city (str): 城市名称(例如:'北京', '上海', 'New York') - target_weekday (str): 目标星期几(例如:'Saturday', 'Sunday', 'Monday') - response_format (ResponseFormat): 输出格式,默认为markdown

Returns: str: 格式化的天气信息,包含与weather_query_by_days相同的详细信息

Examples: - 查询本周六的天气: city="北京", target_weekday="Saturday" - 查询本周日的天气: city="上海", target_weekday="Sunday" - 查询下周一的天气: city="Guangzhou", target_weekday="Monday"

Error Handling: - 如果城市名称或星期几无效,返回相应的验证错误 - 如果API请求失败,返回相应的错误信息

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 2 tools

Disambiguation4/5

The two tools differ only in how the target date is expressed (day offset vs. weekday name) and return identical data, so an agent must decide between query interfaces rather than distinct capabilities. The descriptions make the boundary clear enough (0-16 day range vs. next occurrence of a weekday), but the overlap is real since weather_query_by_weekday is essentially a syntactic sugar wrapper over weather_query_by_days.

Naming Consistency5/5

Both tools follow an identical, predictable 'weather_query_by_<dimension>' pattern with snake_case throughout. The suffix directly reflects the parameter that distinguishes them, which reinforces rather than confuses the distinction.

Tool Count3/5

Two tools is thin for a weather service; the surface is entirely forecast-by-date and nothing else. A weather domain naturally supports current conditions, hourly data, or location resolution, so the set feels under-scoped even for a deliberately minimal server.

Completeness3/5

The 16-day forecast with rich detail is well covered, and 'today' is reachable via days_later=0, so the core query is not a dead end. However there is no geocoding/city validation tool, no current-conditions or hourly tool, and no way to query multiple cities or historical data, leaving notable gaps for a weather domain.

Maintenance

ActivityInactive
ResponsivenessSyncing