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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:126-136 (handler)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: {}, }, },
- src/index.ts:841-844 (schema)Input schema definition for the 'get_rpc_url' tool, specifying an empty object (no input parameters required).inputSchema: { type: "object" as const, properties: {}, },
- src/index.ts:18-18 (helper)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;