Skip to main content
Glama

health_check

Verify the MCP Test MCP server's operational status and retrieve server information to confirm it's running correctly.

Instructions

Health check endpoint that verifies the server is running.

Returns: Dictionary with status and server information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The health_check tool handler function. Decorated with @mcp.tool() for automatic registration in FastMCP. Performs a simple health check and returns status information.
    @mcp.tool()
    async def health_check(ctx: Context) -> Dict[str, Any]:
        """
        Health check endpoint that verifies the server is running.
    
        Returns:
            Dictionary with status and server information
        """
        await ctx.info("Health check requested")
    
        return {
            "status": "healthy",
            "server": "mcp-test-mcp",
            "version": "0.1.6",
            "transport": "stdio"
        }

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/rdwj/mcp-test-mcp'

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