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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server.py:298-307 (handler)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}"