Skip to main content
Glama
tywenk

Model Context Protocol Server for Solana Client

by tywenk

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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()

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