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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server.py:129-138 (handler)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()