Skip to main content
Glama
dewanshparashar

Arbitrum MCP Server

arbdebug_validationInputsAt

Retrieve validation inputs for a specific message on Arbitrum Nitro nodes using the debug API, enabling precise monitoring and troubleshooting of chain health and node operations.

Instructions

Get validation inputs at a specific message (requires debug API)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainNameNoChain name (e.g., 'Xai', 'Arbitrum One') - will auto-resolve to RPC URL
msgNumYesMessage number to get validation inputs for
rpcUrlNoThe RPC URL of the Arbitrum node (optional if default is set)
targetNoTarget for validation inputs

Implementation Reference

  • MCP tool handler implementation. Resolves RPC URL from arguments or chain name, creates NitroNodeClient instance, calls getValidationInputsAt(msgNum, target), and returns JSON-formatted result.
    case "arbdebug_validationInputsAt": { const rpcUrl = await this.resolveRpcUrl( (args.rpcUrl as string) || (args.chainName as string) ); const nodeClient = new NitroNodeClient(rpcUrl); const result = await nodeClient.getValidationInputsAt( args.msgNum as number, args.target as string ); return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], }; }
  • Tool schema definition including input schema with properties for rpcUrl, chainName, msgNum (required), and target.
    name: "arbdebug_validationInputsAt", description: "Get validation inputs at a specific message (requires debug 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", }, msgNum: { type: "number", description: "Message number to get validation inputs for", }, target: { type: "string", description: "Target for validation inputs", }, }, required: ["msgNum"], }, },
  • Helper function in NitroNodeClient that performs the actual RPC call to 'arbdebug_validationInputsAt' with hex-encoded msgNum and optional target, returning validation inputs or error.
    async getValidationInputsAt( msgNum: number, target?: string ): Promise<ValidationInputs> { try { const params = [`0x${msgNum.toString(16)}`]; if (target) { params.push(target); } const inputs = await this.makeRpcCall( "arbdebug_validationInputsAt", params ); return { inputs }; } catch (error) { return { inputs: null, error: `Validation inputs not supported on this RPC endpoint: ${ (error as Error).message }`, }; } }
  • Type definition for the return value of the validation inputs RPC call.
    export interface ValidationInputs { inputs: any; error?: string; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dewanshparashar/arbitrum-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server