From be21624347719728f6336aa476f7a0c39102bd36 Mon Sep 17 00:00:00 2001 From: Girdhari Lal Date: Wed, 5 Aug 2026 14:52:27 +0500 Subject: [PATCH] Fix get_weather docstring: wind -> wind_speed --- src/pyscrappy/mcp/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyscrappy/mcp/server.py b/src/pyscrappy/mcp/server.py index ecf2598..8975db2 100644 --- a/src/pyscrappy/mcp/server.py +++ b/src/pyscrappy/mcp/server.py @@ -438,7 +438,7 @@ async def search_books(query: str, max_results: int = 20) -> ScrapeToolResult: @mcp.tool() async def get_weather(location: str) -> ScrapeToolResult: - """Fetch the current weather conditions for a named place and return a dict with keys: temperature (number, degrees Celsius), humidity (number, percent), wind (number, wind speed), condition (str, e.g. "Clear", "Rain"), and location (str, the resolved place name). + """Fetch the current weather conditions for a named place and return a dict with keys: temperature (number, degrees Celsius), humidity (number, percent), wind_speed (number, wind speed), condition (str, e.g. "Clear", "Rain"), and location (str, the resolved place name). Makes a live network call to an external weather provider on each invocation, so results reflect real-time conditions and require internet access. If the location cannot be resolved or the provider returns no match, the tool returns an empty result (or an error field) rather than raising.