get_system_status
Monitor system health and operational metrics for TrendRadar, including version details, data statistics, and cache status.
Instructions
获取系统运行状态和健康检查信息
返回系统版本、数据统计、缓存状态等信息
Returns: JSON格式的系统状态信息
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_system_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- mcp_server/tools/system.py:33-66 (handler)The handler implementation for the `get_system_status` tool within the `SystemManagementTools` class. It fetches the status from the `data_service` and returns it with a success flag or handles exceptions.
def get_system_status(self) -> Dict: """ 获取系统运行状态和健康检查信息 Returns: 系统状态字典 Example: >>> tools = SystemManagementTools() >>> result = tools.get_system_status() >>> print(result['system']['version']) """ try: # 获取系统状态 status = self.data_service.get_system_status() return { **status, "success": True } except MCPError as e: return { "success": False, "error": e.to_dict() } except Exception as e: return { "success": False, "error": { "code": "INTERNAL_ERROR", "message": str(e) } }