Skip to main content
Glama
tywenk

Model Context Protocol Server for Solana Client

by tywenk

get_epoch_schedule

Retrieve epoch schedule details from the Solana cluster's genesis configuration to understand the timing and structure of epochs on the blockchain.

Instructions

Returns epoch schedule information from this cluster's genesis config.

Returns: str: Epoch schedule in the format "Epoch schedule: {schedule}"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'get_epoch_schedule' tool. Decorated with @mcp.tool() for registration in the MCP server. Fetches the epoch schedule from Solana RPC via AsyncClient and returns a formatted string response.
    @mcp.tool() async def get_epoch_schedule() -> str: """Returns epoch schedule information from this cluster's genesis config. Returns: str: Epoch schedule in the format "Epoch schedule: {schedule}" """ async with AsyncClient(rpc_url) as client: schedule = await client.get_epoch_schedule() return f"Epoch schedule: {schedule}"
  • src/server.py:129-129 (registration)
    The @mcp.tool() decorator registers the get_epoch_schedule function as an MCP tool on the FastMCP instance.
    @mcp.tool()

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