Skip to main content
Glama
tywenk

Model Context Protocol Server for Solana Client

by tywenk

get_slot

Retrieve the current slot being processed by a Solana node using the Model Context Protocol Server. Use this tool to monitor blockchain progress and synchronize data efficiently.

Instructions

Returns the current slot the node is processing.

Returns: str: Current slot in the format "Current slot: {slot}"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'get_slot' MCP tool. It is registered via the @mcp.tool() decorator and implements the tool logic by querying the Solana RPC client for the current slot and returning a formatted string response.
    @mcp.tool()
    async def get_slot() -> str:
        """Returns the current slot the node is processing.
    
        Returns:
            str: Current slot in the format "Current slot: {slot}"
        """
        async with AsyncClient(rpc_url) as client:
            slot = await client.get_slot()
            return f"Current slot: {slot}"
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the return format ('str: Current slot in the format "Current slot: {slot}"'), which adds some context, but it doesn't cover other important aspects like whether this is a read-only operation, potential errors, or performance characteristics. For a tool with zero annotation coverage, this is insufficient.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is highly concise and well-structured, using two brief sentences that directly state the purpose and return format without any wasted words. It's front-loaded with the core functionality, making it easy for an agent to parse quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (0 parameters, no output schema, no annotations), the description is adequate but has gaps. It explains the return format, which is helpful, but lacks behavioral context (e.g., safety, errors) and usage guidelines relative to siblings. For a basic read operation, it's minimally viable but could be more informative.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has 0 parameters, and the input schema has 100% description coverage (though empty). The description doesn't need to add parameter details, so it appropriately focuses on the return value. This meets the baseline for tools with no parameters, as there's nothing to compensate for.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with a specific verb ('Returns') and resource ('current slot the node is processing'), making it easy to understand what it does. However, it doesn't explicitly distinguish itself from sibling tools like 'get_minimum_ledger_slot' or 'get_slot_leader', which also deal with slots, leaving some ambiguity about its unique role.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives, such as other slot-related tools in the sibling list. It lacks context about scenarios where this tool is appropriate, prerequisites, or exclusions, leaving the agent to infer usage based on the name alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Related Tools

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