get_current_weather
Retrieve current weather information for a specified city using the MCP Server Demo's weather tool.
Instructions
Get weather info for a given city.
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": "get_current_weather"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | Yes | 城市名称, 比如北京 上海 广州 |