Skip to main content
Glama
rainhan99

Cloud Manage MCP Server

by rainhan99

get_system_status

Retrieve comprehensive system status overview for cloud servers, including power state, resource usage, and operational health monitoring.

Instructions

获取整个系统的状态概览

Returns:
    Dict: 系统状态信息

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • main.py:702-736 (handler)
    The get_system_status tool handler function. Decorated with @mcp.tool() for registration in the MCP server. Returns a dictionary with system status overview, including provider availability, IP detection status, and capabilities.
    @mcp.tool()
    def get_system_status() -> Dict:
        """
        获取整个系统的状态概览
        
        Returns:
            Dict: 系统状态信息
        """
        provider_status = {}
        available_count = 0
        
        for provider_name, provider in PROVIDERS.items():
            is_available = getattr(provider, 'available', False)
            provider_status[provider_name] = {
                'available': is_available,
                'error': getattr(provider, 'error', None) if not is_available else None
            }
            if is_available:
                available_count += 1
        
        return {
            'system_status': 'operational' if available_count > 0 else 'limited',
            'total_providers': len(PROVIDERS),
            'available_providers': available_count,
            'provider_status': provider_status,
            'ip_detection_enabled': bool(IPINFO_API_TOKEN),
            'security_features_enabled': True,
            'version': '2.0.0',
            'capabilities': {
                'aws': '只读查询',
                'digitalocean': '查询和电源管理',
                'vultr': '查询和电源管理', 
                'alibaba': '查询和电源管理'
            }
        }
  • main.py:702-702 (registration)
    Registration of the get_system_status tool via @mcp.tool() decorator on the handler function.
    @mcp.tool()

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/rainhan99/cloud_manage_mcp_server'

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