Skip to main content
Glama
dewanshparashar

Arbitrum MCP Server

get_rpc_url

Retrieve the default RPC URL for Arbitrum Nitro nodes to enable monitoring, interaction, and operations across Arbitrum networks, including core and Orbit chains.

Instructions

Get the current default RPC URL

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The core handler logic for the 'get_rpc_url' tool. It checks if a default RPC URL is set on the server instance and returns a text response with the current default RPC URL or a message indicating none is configured.
    case "get_rpc_url": return { content: [ { type: "text", text: this.defaultRpcUrl ? `Current default RPC URL: ${this.defaultRpcUrl}` : "No default RPC URL configured", }, ], };
  • src/index.ts:839-845 (registration)
    Registration of the 'get_rpc_url' tool in the listAvailableTools method, including its name, description, and input schema (no required parameters). This makes the tool discoverable via the MCP listTools request.
    name: "get_rpc_url", description: "Get the current default RPC URL", inputSchema: { type: "object" as const, properties: {}, }, },
  • Input schema definition for the 'get_rpc_url' tool, specifying an empty object (no input parameters required).
    inputSchema: { type: "object" as const, properties: {}, },
  • Class-level property that stores the default RPC URL, directly accessed by the get_rpc_url handler and modified by related tools like set_rpc_url.
    private defaultRpcUrl: string | null = null;

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