Skip to main content
Glama
weather_tool.py309 B
import requests def get_weather(city: str): url = f"https://wttr.in/{city}?format=j1" resp = requests.get(url).json() current = resp["current_condition"][0] return { "city": city, "temp_c": current["temp_C"], "description": current["weatherDesc"][0]["value"], }

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/jamalexfo/mcp-api-tools'

If you have feedback or need assistance with the MCP directory API, please join our Discord server