Skip to main content
Glama

server_health_check

Check server and Azure DevOps connection health to ensure reliable development workflow operations.

Instructions

Performs a comprehensive health check of the server and Azure DevOps connection.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Executes the server_health_check tool logic by validating server environment, client status, tool registration, and testing Azure DevOps connection via get_projects().
    async def _health_check(self) -> Dict[str, Any]: """Perform comprehensive health check.""" health_status = { "server_status": "healthy", "environment_check": self._validate_environment(), "client_initialized": self.client is not None, "tools_registered": self.tools_registered, "total_tools": len(self.tools), "azure_devops_connection": "unknown" } if self.client: try: # Test Azure DevOps connection projects = self.client.get_projects() health_status["azure_devops_connection"] = "connected" health_status["available_projects"] = len(projects) except Exception as e: health_status["azure_devops_connection"] = f"error: {str(e)}" return health_status
  • Defines the input schema, description, and registers the server_health_check tool in the self.tools list.
    types.Tool( name="server_health_check", description="Performs a comprehensive health check of the server and Azure DevOps connection.", inputSchema={ "type": "object", "properties": {}, "additionalProperties": False } ),
  • Dispatches the server_health_check tool call to the _health_check handler in _execute_tool method.
    if name == "server_health_check": return await self._health_check()
  • Helper code in setup validation script that checks for presence of server_health_check among key tools.
    key_tools = ['create_work_item', 'get_work_item', 'create_wiki_page', 'server_health_check'] found_tools = [tool.name for tool in server.tools if tool.name in key_tools] for tool in found_tools: self.log_info(f" ✓ {tool}") missing_tools = set(key_tools) - set(found_tools) for tool in missing_tools: self.log_warning(f" ✗ {tool} (not found)") return tools_count > 0

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/xrmghost/mcp-azure-devops'

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