Skip to main content
Glama

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
NameRequiredDescriptionDefault
node_idYes
project_idYes

Implementation Reference

  • 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]
  • 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, }
  • 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

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