validator_exit
Initiate a validator exit request on the Solana blockchain using the Model Context Protocol Server. This tool facilitates the process of requesting a validator to exit, ensuring proper blockchain node management.
Instructions
Request to have the validator exit.
Returns: str: Validator exit request result
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server.py:653-662 (handler)The handler function decorated with @mcp.tool(), which registers and implements the 'validator_exit' MCP tool. It uses an AsyncClient to call validator_exit on the RPC endpoint and returns a formatted result string.@mcp.tool() async def validator_exit() -> str: """Request to have the validator exit. Returns: str: Validator exit request result """ async with AsyncClient(rpc_url) as client: result = await client.validator_exit() return f"Validator exit request: {result}"