Skip to main content
Glama
tywenk

Model Context Protocol Server for Solana Client

by tywenk

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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}"

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/tywenk/mcp-sol'

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