Skip to main content
Glama
dewanshparashar

Arbitrum MCP Server

set_rpc_url

Configure the default RPC endpoint for connecting to Arbitrum networks, enabling chain monitoring and node operations.

Instructions

Set the default RPC URL for subsequent requests

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rpcUrlYesThe RPC URL to set as default

Implementation Reference

  • Handler logic for the 'set_rpc_url' tool. Sets the default RPC URL on the server instance and returns a confirmation message.
    switch (name) { case "set_rpc_url": this.defaultRpcUrl = args.rpcUrl as string; return { content: [ { type: "text", text: `Default RPC URL set to: ${this.defaultRpcUrl}`, }, ],
  • Input schema definition for the 'set_rpc_url' tool, specifying that 'rpcUrl' (string) is required.
    { name: "set_rpc_url", description: "Set the default RPC URL for subsequent requests", inputSchema: { type: "object" as const, properties: { rpcUrl: { type: "string", description: "The RPC URL to set as default", }, }, required: ["rpcUrl"], }, },
  • src/index.ts:821-821 (registration)
    The 'set_rpc_url' tool is registered by being included in the array returned by getAvailableTools(), which handles ListToolsRequestSchema.
    private getAvailableTools(): Tool[] {
  • Instance variable 'defaultRpcUrl' used by set_rpc_url (and related tools) to store the configured default 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