Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/pyscrappy/mcp/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Comment on lines +441 to 442
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.

Expand Down
Loading