Skip to main content
Glama

Engine Heart

weather.query_weather

查询全球城市的实时天气和未来几天预报。city城市名中英文均可,days预报天数1~7默认3天。主源Open-Meteo,备源wttr.in。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "city": "<city>"
    },
    "name": "weather.query_weather"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityYes城市名,中文英文均可,如 "青岛"、"北京"、"Tokyo"
daysNo预报天数,1 到 7,默认 3 天

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

No annotations exist, so the description carries the burden, and it does disclose genuinely useful behavior: data comes from Open-Meteo with wttr.in as a fallback, which hints at graceful degradation. It does not cover authentication, rate limits, latency, or what the response looks like when the primary source fails.

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?

Three short clauses, each front-loaded with the most important information (what it does, then parameters, then data-source note). Slight redundancy with the schema on parameters, but no padding or filler.

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 simple two-parameter read tool with no output schema, the description covers purpose and sourcing adequately. However, with no output schema present, an agent gets no sense of the returned forecast structure (per-day fields, units, temperature scale), which is a real gap for a forecasting 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?

Schema description coverage is 100%, so both parameters are already documented in structured form. The description restates the same facts (city accepts Chinese or English; days ranges 1–7 and defaults to 3) without adding new meaning such as format constraints or what happens when days exceeds 7. Baseline 3 applies.

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?

The description states a specific verb and resource: retrieving real-time weather and multi-day forecasts for cities worldwide. That scope ('全球城市', '实时' + '预报') is precise enough to distinguish the tool from anything else in the sibling list, none of which handle weather, although no sibling is named explicitly.

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?

Usage is only implied: an agent infers it should call this when it needs current weather or a forecast for a city. There is no explicit when-to-use, when-not-to-use, or alternative path (for example, what to do for historical weather or for non-city locations).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources