maintenance_trigger
Initiate maintenance operations for Arbitrum Nitro nodes and chains by specifying RPC URLs or chain names. Facilitates manual intervention through admin API for enhanced node management and system stability.
Instructions
Manually trigger maintenance operations (requires admin API)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chainName | No | Chain name (e.g., 'Xai', 'Arbitrum One') - will auto-resolve to RPC URL | |
| rpcUrl | No | The RPC URL of the Arbitrum node (optional if default is set) |
Implementation Reference
- src/index.ts:668-682 (handler)MCP server handler for 'maintenance_trigger' tool. Resolves RPC URL using chain name or provided URL, instantiates NitroNodeClient, calls triggerMaintenance(), and returns the result as text content.case "maintenance_trigger": { const rpcUrl = await this.resolveRpcUrl( (args.rpcUrl as string) || (args.chainName as string) ); const nodeClient = new NitroNodeClient(rpcUrl); const result = await nodeClient.triggerMaintenance(); return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], }; }
- src/index.ts:1485-1504 (registration)Tool registration in getAvailableTools() method, including name, description, and input schema for list tools response.name: "maintenance_trigger", description: "Manually trigger maintenance operations (requires admin API)", inputSchema: { type: "object" as const, properties: { rpcUrl: { type: "string", description: "The RPC URL of the Arbitrum node (optional if default is set)", }, chainName: { type: "string", description: "Chain name (e.g., 'Xai', 'Arbitrum One') - will auto-resolve to RPC URL", }, }, required: [], }, },
- NitroNodeClient helper method that executes the actual RPC call to the node's 'maintenance_trigger' method and handles success/error response.async triggerMaintenance(): Promise<{ success: boolean; error?: string }> { try { await this.makeRpcCall("maintenance_trigger", []); return { success: true }; } catch (error) { return { success: false, error: `Trigger maintenance not supported on this RPC endpoint: ${ (error as Error).message }`, }; }