Skip to main content
Glama

server_info

Check the current configuration of the Weather MCP Server to understand its operational settings and capabilities for weather data retrieval.

Instructions

Get information about the current Weather MCP server configuration.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The server_info tool handler function, registered via @mcp.tool() decorator. It provides server configuration details including name, logging setup, API endpoints, available tools list, and logging capabilities.
    @mcp.tool() async def server_info(ctx: Context[ServerSession, None]) -> dict: """Get information about the current Weather MCP server configuration.""" await ctx.info("Retrieving server information") logger.info("Server info requested") return { "server_name": ctx.fastmcp.name, "python_log_level": logging.getLevelName(logger.level), "log_file": "weather_mcp.log", "nws_api_base": NWS_API_BASE, "user_agent": USER_AGENT, "available_tools": ["get_alerts", "get_forecast", "server_info"], "logging_features": [ "Standard Python logging to file and console", "MCP Context logging (debug, info, warning, error)", "Progress reporting for long operations", "Structured exception handling" ] }

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/MinhHieu-Nguyen-dn/weather-mcp-server'

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