Skip to main content
Glama

health_check

Monitor and verify the operational status and connectivity of AI assistant integrations within Buildable projects via the Model Context Protocol (MCP).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler for the 'health_check' tool: checks if client is connected, calls client.healthCheck(), formats and returns the result as MCP content block.
    this.server.tool('health_check', {}, async () => { if (!this.client) { throw new Error('Not connected to Buildable API'); } const result = await this.client.healthCheck(); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; });
  • Client method implementing the actual health check by making a GET request to the '/health' API endpoint and returning status and timestamp.
    async healthCheck(): Promise<{ status: string; timestamp: string }> { try { const response = await this.makeRequest<{ status: string; timestamp: string; }>('GET', '/health'); this.log('debug', 'Health check passed'); return response.data!; } catch (error) { this.log('error', 'Health check failed:', error); throw error; } }
  • src/cli.ts:255-269 (registration)
    Registration of the 'health_check' tool on the MCP server with empty input schema and the handler function.
    this.server.tool('health_check', {}, async () => { if (!this.client) { throw new Error('Not connected to Buildable API'); } const result = await this.client.healthCheck(); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; });

Other Tools

Related 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/chunkydotdev/bldbl-mcp'

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