get_node
Retrieve detailed metrics and system information for a specific infrastructure node, including resource usage, running containers, and health status, to monitor and manage node performance effectively.
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
| Name | Required | Description | Default |
|---|---|---|---|
| node_id | Yes | ||
| project_id | Yes |
Implementation Reference
- src/mcp_coroot/server.py:1228-1242 (handler)The primary handler function for the 'get_node' MCP tool. It is decorated with @mcp.tool() which registers it as an MCP tool, and delegates to get_node_impl for execution.@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]
- src/mcp_coroot/server.py:1218-1226 (helper)Helper function that implements the core logic of fetching node details via the CorootClient.@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, }
- src/mcp_coroot/client.py:932-946 (helper)CorootClient.get_node method that performs the HTTP request to the Coroot API to retrieve specific node information, called by the MCP tool handler.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