Skip to main content
Glama
tywenk

Model Context Protocol Server for Solana Client

by tywenk

get_inflation_rate

Retrieve the current inflation rate for the Solana blockchain epoch with precision, aiding in economic analysis and decision-making.

Instructions

Returns the specific inflation values for the current epoch.

Returns: str: Inflation rate info in the format "Inflation rate: {rate}"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'get_inflation_rate' tool. It is registered via the @mcp.tool() decorator and implements the tool logic by querying the Solana RPC client for the current epoch's inflation rate and returning a formatted string.
    @mcp.tool() async def get_inflation_rate() -> str: """Returns the specific inflation values for the current epoch. Returns: str: Inflation rate info in the format "Inflation rate: {rate}" """ async with AsyncClient(rpc_url) as client: rate = await client.get_inflation_rate() return f"Inflation rate: {rate}"
  • src/server.py:177-177 (registration)
    The @mcp.tool() decorator registers the get_inflation_rate function as an MCP tool.
    @mcp.tool()
  • The function signature and docstring define the tool schema: no input parameters, returns a string with inflation rate information.
    async def get_inflation_rate() -> str: """Returns the specific inflation values for the current epoch. Returns: str: Inflation rate info in the format "Inflation rate: {rate}"

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