Skip to main content
Glama

get_health

Check the health status of the Prefect workflow automation server to monitor system availability and ensure workflows can execute properly.

Instructions

Get health status of the Prefect server.

Returns: Health status information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The get_health tool handler, decorated with @mcp.tool. It checks the Prefect server's health by calling client.hello() and returns the status or error as TextContent.
    @mcp.tool async def get_health() -> List[Union[types.TextContent, types.ImageContent, types.EmbeddedResource]]: """ Get health status of the Prefect server. Returns: Health status information """ try: # Test connection to Prefect by calling the health endpoint async with get_client() as client: health_status = await client.hello() return [types.TextContent(type="text", text=str(health_status))] except Exception as e: error_status = { "status": "unhealthy", "message": f"Error connecting to Prefect server: {str(e)}" } return [types.TextContent(type="text", text=str(error_status))]

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/allen-munsch/mcp-prefect'

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