Skip to main content
Glama
driosalido
by driosalido

check_karma

Verify connectivity to the Karma Alert dashboard for monitoring Kubernetes alerts. This tool confirms the server connection is active before accessing alert data.

Instructions

Check connection to Karma server

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Implementation of the `check_karma` MCP tool, which performs an HTTP GET request to the Karma health endpoint to verify the server status.
    @mcp.tool()
    async def check_karma() -> str:
        """Check connection to Karma server"""
        try:
            async with httpx.AsyncClient() as client:
                response = await client.get(f"{KARMA_URL}/health")
                if response.status_code == 200:
                    return f"✓ Karma is running at {KARMA_URL}"
                else:
                    return f"⚠ Karma responded with code {response.status_code}"
        except Exception as e:
            return f"✗ Error connecting to Karma: {str(e)}"

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/driosalido/mcp-karma'

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