maintenance_trigger
Initiate manual maintenance operations for Arbitrum nodes using admin API access to manage chain health and node functionality.
Instructions
Manually trigger maintenance operations (requires admin API)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rpcUrl | No | The RPC URL of the Arbitrum node (optional if default is set) | |
| chainName | No | Chain name (e.g., 'Xai', 'Arbitrum One') - will auto-resolve to RPC URL |
Implementation Reference
- src/index.ts:668-682 (handler)MCP tool handler for 'maintenance_trigger'. Resolves RPC URL, creates NitroNodeClient instance, invokes triggerMaintenance method, and formats result as MCP response.
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:1484-1504 (registration)Tool registration definition returned by listTools handler, including name, description, and input schema.
{ 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: [], }, }, - Helper method in NitroNodeClient that performs the actual RPC call to the node's 'maintenance_trigger' method and handles the 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 }`, }; }