Skip to main content
Glama
dewanshparashar

Arbitrum MCP Server

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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",
          },
        ],
      };
  • 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;
      }
  • The class property defaultRpcUrl that stores the default RPC URL, which is cleared by the clear_rpc_url tool.
    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