Skip to main content
Glama
tywenk

Model Context Protocol Server for Solana Client

by tywenk

get_first_available_block

Retrieve the slot of the lowest confirmed block available on the Solana blockchain using the Model Context Protocol Server for Solana Client.

Instructions

Returns the slot of the lowest confirmed block available.

Returns: str: First available block information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the MCP tool 'get_first_available_block'. Decorated with @mcp.tool() for automatic registration and schema inference from signature and docstring. It creates an AsyncClient to the Solana RPC, calls get_first_available_block(), and returns a formatted string result.
    @mcp.tool() async def get_first_available_block() -> str: """Returns the slot of the lowest confirmed block available. Returns: str: First available block information """ async with AsyncClient(rpc_url) as client: block = await client.get_first_available_block() return f"First available block: {block}"

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