arr_get_status
Check connection status of Sonarr and Radarr to confirm media automation services are operational.
Instructions
Check connection status of Sonarr and Radarr services
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/arr/mcp-functions.ts:676-714 (handler)Main handler function that checks connection status of both Sonarr and Radarr services. It calls getSystemStatus() on each client, catches errors, and returns availability info.
async arrGetStatus(): Promise<Record<string, unknown>> { const results: Record<string, unknown> = {}; const sonarrResult = await (async () => { try { const client = this.ensureSonarr(); const status = await client.getSystemStatus(); return { available: true, version: status.version, appName: status.appName }; } catch (error) { return { available: false, error: error instanceof Error ? error.message : String(error), }; } })(); const radarrResult = await (async () => { try { const client = this.ensureRadarr(); const status = await client.getSystemStatus(); return { available: true, version: status.version, appName: status.appName }; } catch (error) { return { available: false, error: error instanceof Error ? error.message : String(error), }; } })(); const [sonarr, radarr] = await Promise.allSettled([sonarrResult, radarrResult]); results.sonarr = sonarr.status === "fulfilled" ? sonarr.value : { available: false, error: "Check failed" }; results.radarr = radarr.status === "fulfilled" ? radarr.value : { available: false, error: "Check failed" }; return { success: true, services: results, }; } - src/arr/tool-schemas.ts:205-211 (schema)Schema definition for arr_get_status - a cross-service tool with no input parameters.
export const ARR_CROSS_TOOL_SCHEMAS = [ { name: "arr_get_status", description: "Check connection status of Sonarr and Radarr services", inputSchema: { type: "object" as const, properties: {} }, }, ]; - src/arr/tool-registry.ts:117-119 (registration)Registration of arr_get_status in the tool registry, delegating to arrFunctions.arrGetStatus().
registry.register("arr_get_status", () => arrFunctions.arrGetStatus().then(wrapResponse) );