get_cronjobs
List and check the status of all cron jobs in SAP Commerce Cloud (Hybris) instances for system administration and monitoring.
Instructions
List all cron jobs and their status
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/hybris-client.ts:464-469 (handler)The core handler function getCronJobs() in HybrisClient class that performs the HAC API request to fetch the list of cron jobs and their status.async getCronJobs(): Promise<{ cronJobs: { code: string; active: boolean; status: string }[] }> { return this.hacRequest<{ cronJobs: { code: string; active: boolean; status: string }[] }>( `${this.hacPrefix}/monitoring/cronjobs`, { method: 'GET' } ); }
- src/index.ts:189-196 (registration)MCP tool registration defining the name, description, and empty input schema for get_cronjobs.{ name: 'get_cronjobs', description: 'List all cron jobs and their status', inputSchema: { type: 'object', properties: {}, }, },
- src/hybris-client.ts:464-464 (schema)TypeScript output type definition specifying the structure of the cron jobs response.async getCronJobs(): Promise<{ cronJobs: { code: string; active: boolean; status: string }[] }> {
- src/index.ts:343-345 (handler)Tool dispatcher case in the MCP callTool handler that invokes the getCronJobs method.case 'get_cronjobs': result = await hybrisClient.getCronJobs(); break;