Skip to main content
Glama

weather

Get current weather conditions for any city to plan activities or check local forecasts. This tool retrieves temperature, conditions, and other meteorological data.

Instructions

도시의 날씨 정보를 가져오기

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cityYes도시 이름 (예: 런던)

Implementation Reference

  • The main handler function for the 'weather' tool. It takes a city name and returns mock weather data including temperature, condition, and humidity.
    async execute({ city }) { // 실제 API 호출로 대체해야 합니다 return { city, temperature: 22, condition: "맑음", humidity: 45, }; }
  • Input schema using Zod, requiring a 'city' string parameter with description.
    schema = { city: { type: z.string(), description: "도시 이름 (예: 런던)", }, };
  • Tool class definition extending MCPTool and setting the name to 'weather', effectively registering its identity.
    class WeatherTool extends MCPTool { name = "weather";

Other Tools

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/hyen43/mcpServer'

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