Skip to main content
Glama

get_system_info

Retrieve SAP Commerce Cloud (Hybris) system details and health status for monitoring and troubleshooting.

Instructions

Get Hybris system information and health status

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The implementation of the getSystemInfo method, which executes a Groovy script to collect system information and parses the JSON response.
      async getSystemInfo(): Promise<Record<string, unknown>> {
        // Use Groovy script to get system info
        const script = `
    import de.hybris.platform.core.Registry
    import de.hybris.platform.util.Config
    
    def tenant = Registry.getCurrentTenant()
    def runtime = Runtime.getRuntime()
    
    def info = [
        hybrisVersion: Config.getString("build.version", "unknown"),
        buildNumber: Config.getString("build.number", "unknown"),
        tenantId: tenant.getTenantID(),
        clusterId: Config.getInt("cluster.id", 0),
        clusterIsland: Config.getInt("cluster.island.id", 0),
        javaVersion: System.getProperty("java.version"),
        javaVendor: System.getProperty("java.vendor"),
        osName: System.getProperty("os.name"),
        osArch: System.getProperty("os.arch"),
        maxMemoryMB: (runtime.maxMemory() / 1024 / 1024) as int,
        totalMemoryMB: (runtime.totalMemory() / 1024 / 1024) as int,
        freeMemoryMB: (runtime.freeMemory() / 1024 / 1024) as int,
        availableProcessors: runtime.availableProcessors()
    ]
    
    return groovy.json.JsonOutput.toJson(info)
    `;
        const result = await this.executeGroovyScript(script);
        try {
          // Parse the JSON result - executionResult contains the returned value
          const jsonStr = String(result.result || '');
          if (jsonStr && jsonStr.startsWith('{')) {
            return JSON.parse(jsonStr);
          }
          // If result is not JSON, return what we have
          return {
  • src/index.ts:293-303 (registration)
    The definition and registration of the 'get_system_info' tool within the MCP tool list.
    {
      name: 'get_system_info',
      description: 'Get Hybris system information and health status',
      inputSchema: {
        type: 'object',
        properties: {},
      },
    },
    {
      name: 'trigger_catalog_sync',
      description: 'Trigger a catalog synchronization between versions',
  • The case statement handling the 'get_system_info' tool call by invoking the hybrisClient.getSystemInfo() method.
    case 'get_system_info':
      result = await hybrisClient.getSystemInfo();
      break;

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

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