Skip to main content
Glama
tywenk

Model Context Protocol Server for Solana Client

by tywenk

get_inflation_governor

Retrieve the current inflation governor information from the Solana blockchain using the specified RPC method to monitor or analyze monetary policy settings.

Instructions

Returns the current inflation governor.

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The tool handler function decorated with @mcp.tool(), implementing the get_inflation_governor tool by querying the Solana RPC client and returning the formatted inflation governor information.
    @mcp.tool() async def get_inflation_governor() -> str: """Returns the current inflation governor. Returns: str: Inflation governor info in the format "Inflation governor: {governor}" """ async with AsyncClient(rpc_url) as client: governor = await client.get_inflation_governor() return f"Inflation governor: {governor}"
  • src/server.py:165-165 (registration)
    The @mcp.tool() decorator registers the get_inflation_governor function as an MCP tool.
    @mcp.tool()

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