health_check
Verify the operational status and connectivity of SAP Commerce Cloud (Hybris) instances to ensure system availability and proper functioning.
Instructions
Check if the Hybris instance is healthy and reachable
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/hybris-client.ts:865-878 (handler)The handler function for the health_check tool.
async healthCheck(): Promise<{ healthy: boolean; details: Record<string, unknown> }> { try { // Test connectivity via a simple product search const result = await this.searchProducts('', 1, 0); return { healthy: true, details: { baseSiteId: this.config.baseSiteId, totalProducts: result.pagination?.totalResults ?? 'unknown', }, }; } catch (error) { return { healthy: false, - src/index.ts:323-330 (registration)The registration of the health_check tool in the MCP tool list.
{ name: 'health_check', description: 'Check if the Hybris instance is healthy and reachable', inputSchema: { type: 'object', properties: {}, }, }, - src/index.ts:470-472 (handler)The execution switch-case block that calls the healthCheck handler.
case 'health_check': result = await hybrisClient.healthCheck(); break;