clear_rpc_url
Remove the default RPC URL configuration to reset connection settings for Arbitrum network interactions.
Instructions
Clear the default RPC URL
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:138-150 (handler)The handler logic for the 'clear_rpc_url' tool. It stores the old URL, sets defaultRpcUrl to null, and returns a text confirmation message indicating whether an URL was cleared or none was set.case "clear_rpc_url": const oldUrl = this.defaultRpcUrl; this.defaultRpcUrl = null; return { content: [ { type: "text", text: oldUrl ? `Cleared default RPC URL: ${oldUrl}` : "No default RPC URL was configured", }, ], };
- src/index.ts:846-853 (schema)The schema definition and registration for the 'clear_rpc_url' tool in the list of available tools. It specifies the name, description, and empty input schema (no parameters required).{ name: "clear_rpc_url", description: "Clear the default RPC URL", inputSchema: { type: "object" as const, properties: {}, }, },
- src/index.ts:93-102 (registration)The ListToolsRequestSchema handler that returns the list of tools including 'clear_rpc_url' via getAvailableTools().this.server.setRequestHandler(ListToolsRequestSchema, async () => { try { console.error("Handling list tools request"); return { tools: this.getAvailableTools(), }; } catch (error) { console.error("Error in list tools handler:", error); throw error; }
- src/index.ts:18-18 (helper)The class property defaultRpcUrl that stores the default RPC URL, which is cleared by the clear_rpc_url tool.private defaultRpcUrl: string | null = null;