Skip to main content
Glama

Model Context Protocol Server for Solana Client

by tywenk

get_blocks

Retrieve a list of confirmed blocks between specified Solana blockchain slots using the MCP server. Ideal for analyzing transaction history or verifying block data.

Instructions

Returns a list of confirmed blocks between two slots.

Args: start_slot (int): Start slot as u64 integer end_slot (Optional[int], optional): End slot as u64 integer. Defaults to None.

Returns: str: List of blocks in the format "Blocks: {blocks}"

Input Schema

NameRequiredDescriptionDefault
end_slotNo
start_slotYes

Input Schema (JSON Schema)

{ "properties": { "end_slot": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "title": "End Slot" }, "start_slot": { "title": "Start Slot", "type": "integer" } }, "required": [ "start_slot" ], "title": "get_blocksArguments", "type": "object" }

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