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