Skip to main content
Glama

health_check

Verify the operational status and accessibility of your SAP Commerce Cloud instance to ensure system availability.

Instructions

Check if the Hybris instance is healthy and reachable

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Core implementation of the health_check tool. Performs a lightweight product search to verify Hybris instance connectivity and returns health status with details.
    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, details: { error: error instanceof Error ? error.message : 'Unknown error' }, }; } }
  • src/index.ts:254-261 (registration)
    Registers the 'health_check' tool in the MCP tools list, including its name, description, and empty input schema.
    { name: 'health_check', description: 'Check if the Hybris instance is healthy and reachable', inputSchema: { type: 'object', properties: {}, }, },
  • Dispatches calls to the 'health_check' tool by invoking the hybrisClient.healthCheck() method within the main MCP tool request handler.
    case 'health_check': result = await hybrisClient.healthCheck(); break;
  • Defines the input schema for the 'health_check' tool (no required parameters). Also note the output type defined in the handler signature.
    inputSchema: { type: 'object', properties: {}, },

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/Emenowicz/hybris-mcp'

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