system_status
Monitor system health and status of media management services to ensure operational continuity and identify potential issues.
Instructions
Get system status and health information
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service | Yes |
Implementation Reference
- src/index.ts:30-38 (registration)Tool registration including name, description, and input schema requiring 'service' parameter.{ name: "system_status", description: "Get system status and health information", inputSchema: { type: "object", properties: { service: { type: "string" } }, required: ["service"], }, },
- src/index.ts:275-276 (handler)Dispatch handler in main CallToolRequestSchema that routes 'system_status' calls to the service.systemStatus() method.case "system_status": return await service.systemStatus();
- src/services/shared.ts:176-202 (handler)Core implementation of systemStatus tool: fetches /api/v3/system/status, parses response, wraps in OperationResult<SystemStatusData>.async systemStatus(): Promise<OperationResult<SystemStatusData>> { const operation = withMetrics( this.serviceName, "systemStatus", async () => { debugOperation(this.serviceName, "systemStatus"); const response = await fetchJson(this.buildApiUrl("/system/status")); const data = StatusSchema.parse(response); return { ok: true, data: { service: this.serviceName, name: data.instanceName || data.appName, version: data.version, isHealthy: true, }, }; }, ); try { return await operation(); } catch (error) { return handleError(error, this.serviceName); } }
- src/services/base.ts:26-32 (schema)Type definition for SystemStatusData returned by the tool.export interface SystemStatusData { service: string; name: string; version: string; startTime?: string; isHealthy: boolean; }
- src/services/base.ts:242-242 (schema)Interface declaration for the systemStatus method in ServiceImplementation.systemStatus(): Promise<OperationResult<SystemStatusData>>;