Skip to main content
Glama
get_weather.py600 B
from mcp.types import Tool from server.backend.data_store import get_weather def get_weather_tool(): return Tool( name="get_weather", description="Get real-time weather data for a city", inputSchema={ "type": "object", "properties": { "city": { "type": "string", "description": "City name (e.g., Bangalore, London)" } }, "required": ["city"] } ) async def run_get_weather(arguments: dict): return await get_weather(arguments["city"])

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/sushma9903/mcp-server'

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