Skip to main content
Glama
liuweihongliuxinyu

weather-mcp-server

获取当前天气

get_current_weather

Retrieve real-time weather data for any city, including temperature, humidity, wind speed, and more. Supports Chinese and English city names.

Instructions

查询一个城市的实时天气,包括温度、体感温度、天气描述、风速、湿度、能见度、紫外线指数、气压。支持中文城市名(如 '北京')和英文城市名(如 'Tokyo')。不需要 API Key。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cityYes城市名称,支持中文和英文。例如:北京、Shanghai、Tokyo、London、New York
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses the output fields (temperature, wind, humidity, etc.) and that no API key is needed. It does not explicitly state it is read-only, but the nature of a weather query implies it.

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?

Two sentences, front-loaded with purpose and data points, followed by constraints. No wasted words; highly efficient.

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?

For a simple tool with one parameter and no output schema, the description is complete: it lists all returned data fields, supports both languages, and confirms no API key. No significant gaps.

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 the parameter is fully described in the schema. The description adds examples of city names and language support, but these are nearly identical to the schema's description. Thus, minimal added value beyond the schema.

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?

Description clearly states the tool queries real-time weather for a city, listing specific data points (temperature, wind, humidity, etc.). It distinguishes from sibling tools (get_air_quality, get_forecast) by focusing on current weather and specific metrics.

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?

The description implies use for current weather queries, supports both Chinese and English city names, and mentions no API key needed. However, it does not explicitly state when to use this tool over alternatives like get_forecast or get_air_quality, relying on context from sibling names.

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/liuweihongliuxinyu/weather-mcp-server'

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