Skip to main content
Glama
tywenk

Model Context Protocol Server for Solana Client

by tywenk

get_supply

Retrieve current supply data from the Solana blockchain using the Model Context Protocol Server, providing essential details in a clear and structured format.

Instructions

Returns information about the current supply.

Returns: str: Supply information in the format "Supply info: {supply}"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • This is the handler function for the 'get_supply' tool. It is decorated with @mcp.tool(), which registers it as an MCP tool. The function fetches the current supply information from the Solana RPC client and formats it as a string.
    @mcp.tool()
    async def get_supply() -> str:
        """Returns information about the current supply.
    
        Returns:
            str: Supply information in the format "Supply info: {supply}"
        """
        async with AsyncClient(rpc_url) as client:
            supply = await client.get_supply()
            return f"Supply info: {supply}"

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