Skip to main content
Glama
dewanshparashar

Arbitrum MCP Server

arb_latest_validated

Retrieve the latest validated global state from Arbitrum networks using an admin API. Specify the RPC URL or chain name to access real-time chain health and node data.

Instructions

Get the latest validated global state information (requires admin API)

Input Schema

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

Implementation Reference

  • src/index.ts:1149-1169 (registration)
    Registration of the 'arb_latest_validated' tool in the list of available tools, including its name, description, and input schema definition.
    { name: "arb_latest_validated", description: "Get the latest validated global state information (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: [], }, },
  • MCP server handler for the 'arb_latest_validated' tool: resolves RPC URL or chain name, creates NitroNodeClient instance, calls getLatestValidated method, and returns the result as JSON text content.
    case "arb_latest_validated": { const rpcUrl = await this.resolveRpcUrl( (args.rpcUrl as string) || (args.chainName as string) ); const nodeClient = new NitroNodeClient(rpcUrl); const validated = await nodeClient.getLatestValidated(); return { content: [ { type: "text", text: JSON.stringify(validated, null, 2), }, ], }; }
  • Core implementation of getLatestValidated: performs RPC call to 'arb_latestValidated' with no parameters, handles errors gracefully.
    async getLatestValidated(): Promise<any> { try { return await this.makeRpcCall("arb_latestValidated", []); } catch (error) { return { error: `Latest validated state not supported on this RPC endpoint: ${ (error as Error).message }`, }; } }

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