Skip to main content
Glama
liuweihongliuxinyu

weather-mcp-server

查询空气质量

get_air_quality

Retrieve the current Air Quality Index (AQI) and pollutant levels like PM2.5, PM10, NO₂ for any city. Supports Chinese and English city names without requiring an API key.

Instructions

查询一个城市的空气质量指数(AQI),包括 PM2.5、PM10、NO₂、SO₂、O₃ 等污染物浓度。支持中文和英文城市名。不需要 API Key。

Input Schema

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

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

No annotations provided, so description partially compensates by noting no API key required and listing pollutants. However, it omits other behaviors like rate limits, data freshness, error handling, or return format.

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 concise sentences in Chinese that front-load the main purpose. No filler or redundancy; every sentence adds useful information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter tool with no output schema, the description adequately states what is returned (AQI and specific pollutants) but lacks details on the response structure or data format, leaving some uncertainty.

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

Parameters4/5

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

Schema covers 100% of the city parameter with description. The description adds value by specifying language support (Chinese/English) and providing examples (e.g., Beijing, Shanghai, Tokyo), going beyond basic 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 air quality index (AQI) for a city, listing major pollutants (PM2.5, PM10, etc.). It is specific and distinct from sibling tools (weather, forecast), making the purpose unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool vs siblings (e.g., get_current_weather, get_forecast). It mentions support for Chinese/English names and no API key, but lacks explicit when/when-not context.

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