Skip to main content
Glama
dynstat

MCP Server Demo

by dynstat

get_weather

Retrieve current weather data for any specified city to inform decisions and planning.

Instructions

it gets and retuns the weather of the city

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cityYes

Implementation Reference

  • The core handler function for the 'get_weather' tool, registered via the @mcp.tool() decorator in FastMCP. It takes a 'city' parameter (str) and returns an integer (hardcoded to 45, dummy implementation). This captures both the execution logic and registration.
    @mcp.tool() def get_weather(city: str) -> int: """it gets and retuns the weather of the city""" return 45

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/dynstat/mcp-demo'

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