get_minimum_ledger_slot
Retrieve the lowest ledger slot recorded by a Solana node, providing essential blockchain synchronization and data integrity insights for the Model Context Protocol Server.
Instructions
Returns the lowest slot that the node has information about in its ledger.
Returns: str: Minimum ledger slot information
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server.py:515-523 (handler)The handler function for the 'get_minimum_ledger_slot' tool. It uses an AsyncClient to connect to the Solana RPC endpoint and calls client.get_minimum_ledger_slot() to fetch the lowest slot in the ledger, then formats and returns the result as a string.async def get_minimum_ledger_slot() -> str: """Returns the lowest slot that the node has information about in its ledger. Returns: str: Minimum ledger slot information """ async with AsyncClient(rpc_url) as client: slot = await client.get_minimum_ledger_slot() return f"Minimum ledger slot: {slot}"
- src/server.py:514-514 (registration)The @mcp.tool() decorator registers the get_minimum_ledger_slot function as an MCP tool.@mcp.tool()