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
| Name | Required | Description | Default |
|---|---|---|---|
| rpcUrl | Yes | The RPC URL to set as default |
Implementation Reference
- src/index.ts:114-123 (handler)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}`, }, ],
- src/index.ts:824-837 (schema)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[] {
- src/index.ts:18-18 (helper)Instance variable 'defaultRpcUrl' used by set_rpc_url (and related tools) to store the configured default RPC URL.private defaultRpcUrl: string | null = null;