get_server_status
Verify the operational status and connectivity of Radarr and Sonarr servers to ensure smooth content management and automation workflows.
Instructions
Check the status and connectivity of Radarr and Sonarr servers.
Returns: Status information for both servers
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/arr_assistant_mcp/main.py:479-499 (handler)The main handler function for the 'get_server_status' tool, registered via the @mcp.tool decorator. It verifies the configuration, initializes the MediaServerAPI, checks Radarr and Sonarr statuses asynchronously, and returns a dictionary with the results including a timestamp.@mcp.tool async def get_server_status() -> Dict[str, Any]: """ Check the status and connectivity of Radarr and Sonarr servers. Returns: Status information for both servers """ if not config: return {"error": "Server not configured"} api = MediaServerAPI(config) radarr_status = await api.check_radarr_status() sonarr_status = await api.check_sonarr_status() return { "radarr": radarr_status, "sonarr": sonarr_status, "timestamp": datetime.now().isoformat() }