Skip to main content
Glama

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
NameRequiredDescriptionDefault
serviceYes

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"], }, },
  • Dispatch handler in main CallToolRequestSchema that routes 'system_status' calls to the service.systemStatus() method.
    case "system_status": return await service.systemStatus();
  • 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); } }
  • Type definition for SystemStatusData returned by the tool.
    export interface SystemStatusData { service: string; name: string; version: string; startTime?: string; isHealthy: boolean; }
  • Interface declaration for the systemStatus method in ServiceImplementation.
    systemStatus(): Promise<OperationResult<SystemStatusData>>;

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/thesammykins/FlixBridge'

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