Skip to main content
Glama

health_check

Verify server operational status and retrieve server information to confirm the MCP Test MCP server is 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. It performs a simple health check, logging an info message and returning a status dictionary indicating the server is healthy.
    @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