get_cluster_nodes
Retrieve detailed information about all nodes participating in a Solana blockchain cluster, enabling users to monitor network structure and node activity.
Instructions
Returns information about all the nodes participating in the cluster.
Returns: str: Cluster nodes information in the format "Cluster nodes: {nodes}"
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server.py:105-114 (handler)The main handler function for the 'get_cluster_nodes' tool. It is decorated with @mcp.tool() for registration, creates an AsyncClient with rpc_url, calls client.get_cluster_nodes(), and returns a formatted string with the nodes information. No input parameters are required.@mcp.tool() async def get_cluster_nodes() -> str: """Returns information about all the nodes participating in the cluster. Returns: str: Cluster nodes information in the format "Cluster nodes: {nodes}" """ async with AsyncClient(rpc_url) as client: nodes = await client.get_cluster_nodes() return f"Cluster nodes: {nodes}"