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}"
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_inflation_governor"
}
}Input 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()