Skip to main content
Glama
jamesbrink

MCP Server for Coroot

get_node

Retrieve comprehensive metrics and health status for a specific infrastructure node, including resource usage, running containers, and system information.

Instructions

Get detailed information about a specific infrastructure node.

Retrieves comprehensive metrics and information about a node including:

  • Resource usage (CPU, memory, disk, network)

  • Running containers

  • System information

  • Health status

Args: project_id: Project ID node_id: Node ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYes
node_idYes

Implementation Reference

  • MCP tool registration for 'get_node' using @mcp.tool() decorator
    @mcp.tool()
    async def get_node(project_id: str, node_id: str) -> dict[str, Any]:
        """Get detailed information about a specific infrastructure node.
    
        Retrieves comprehensive metrics and information about a node including:
        - Resource usage (CPU, memory, disk, network)
        - Running containers
        - System information
        - Health status
    
        Args:
            project_id: Project ID
            node_id: Node ID
        """
        return await get_node_impl(project_id, node_id)  # type: ignore[no-any-return]
  • Handler implementation that calls the CorootClient.get_node and formats the response
    @handle_errors
    async def get_node_impl(project_id: str, node_id: str) -> dict[str, Any]:
        """Get node details."""
        node = await get_client().get_node(project_id, node_id)
        return {
            "success": True,
            "node": node,
        }
  • CorootClient helper method that performs the HTTP GET request to retrieve node details from the Coroot API
    async def get_node(self, project_id: str, node_id: str) -> dict[str, Any]:
        """Get detailed information about a specific node.
    
        Args:
            project_id: Project ID.
            node_id: Node ID.
    
        Returns:
            Node details including metrics and containers.
        """
        response = await self._request(
            "GET", f"/api/project/{project_id}/node/{node_id}"
        )
        data: dict[str, Any] = response.json()
        return data

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/jamesbrink/mcp-coroot'

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