health_check
Monitor and verify the operational status and connectivity of AI assistant integrations within Buildable projects via the Model Context Protocol (MCP).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "health_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/cli.ts:255-269 (handler)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), }, ], }; }); - src/client.ts:267-280 (helper)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), }, ], }; });