Skip to main content
Glama

get_system_info

Retrieve SAP Commerce Cloud (Hybris) system information and health status for monitoring and administration tasks.

Instructions

Get Hybris system information and health status

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Core handler implementation for 'get_system_info' tool. Executes a Groovy script through the Hybris Administration Console (HAC) to gather comprehensive system information including Hybris version, tenant details, JVM memory usage, OS info, and more. Parses and returns the result as a JSON object.
    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 { output: result.output, result: result.result, }; } catch { return { output: result.output, result: result.result, parseError: 'Failed to parse system info JSON', }; } }
  • Tool schema definition: no input parameters required, returns system info as JSON.
    { name: 'get_system_info', description: 'Get Hybris system information and health status', inputSchema: { type: 'object', properties: {}, }, },
  • src/index.ts:450-452 (registration)
    Tool handler registration in the MCP CallToolRequest switch statement, delegating to HybrisClient.getSystemInfo()
    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/Emenowicz/hybris-mcp'

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