Skip to main content
Glama
dewanshparashar

Arbitrum MCP Server

arbtrace_callMany

Batch trace multiple contract calls on Arbitrum networks to monitor interactions and analyze chain activity efficiently using trace APIs.

Instructions

Trace multiple calls in batch for efficiency (requires trace API)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rpcUrlNoThe RPC URL of the Arbitrum node (optional if default is set)
chainNameNoChain name (e.g., 'Xai', 'Arbitrum One') - will auto-resolve to RPC URL
callsYesArray of call objects to trace
blockNumOrHashNoBlock number or hash (defaults to 'latest')

Implementation Reference

  • MCP tool handler that resolves the RPC URL using chain name or provided URL, instantiates NitroNodeClient, invokes traceCallMany method, and returns JSON-formatted trace results.
    case "arbtrace_callMany": {
      const rpcUrl = await this.resolveRpcUrl(
        (args.rpcUrl as string) || (args.chainName as string)
      );
      const nodeClient = new NitroNodeClient(rpcUrl);
      const result = await nodeClient.traceCallMany(
        args.calls as any[],
        args.blockNumOrHash as string
      );
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify(result, null, 2),
          },
        ],
      };
    }
  • Tool schema definition including name, description, and input schema specifying required 'calls' array and optional rpcUrl, chainName, blockNumOrHash.
      name: "arbtrace_callMany",
      description:
        "Trace multiple calls in batch for efficiency (requires trace API)",
      inputSchema: {
        type: "object" as const,
        properties: {
          rpcUrl: {
            type: "string",
            description:
              "The RPC URL of the Arbitrum node (optional if default is set)",
          },
          chainName: {
            type: "string",
            description:
              "Chain name (e.g., 'Xai', 'Arbitrum One') - will auto-resolve to RPC URL",
          },
          calls: {
            type: "array",
            description: "Array of call objects to trace",
            items: { type: "object" },
          },
          blockNumOrHash: {
            type: "string",
            description: "Block number or hash (defaults to 'latest')",
          },
        },
        required: ["calls"],
      },
    },
  • Helper method in NitroNodeClient that performs the actual RPC call to 'arbtrace_callMany' with calls array and block, handles errors, and returns TraceResult.
    async traceCallMany(
      calls: any[],
      blockNumOrHash?: string
    ): Promise<TraceResult> {
      try {
        const traces = await this.makeRpcCall("arbtrace_callMany", [
          calls,
          blockNumOrHash || "latest",
        ]);
        return { traces };
      } catch (error) {
        return {
          traces: null,
          error: `Trace callMany not supported on this RPC endpoint: ${
            (error as Error).message
          }`,
        };
      }
    }
  • Generic RPC call helper method used by traceCallMany to send JSON-RPC POST request to the Nitro node RPC endpoint.
    private async makeRpcCall(method: string, params: any[]): Promise<any> {
      try {
        const requestBody = {
          jsonrpc: "2.0",
          id: Date.now(),
          method,
          params,
        };
    
        console.error(`Making RPC call to ${this.rpcUrl}: ${method}`);
        
        const response = await fetch(this.rpcUrl, {
          method: "POST",
          headers: {
            "Content-Type": "application/json",
          },
          body: JSON.stringify(requestBody),
        });
    
        if (!response.ok) {
          throw new Error(`HTTP ${response.status}: ${response.statusText}`);
        }
    
        const data = await response.json();
    
        if (data.error) {
          throw new Error(`RPC Error: ${data.error.message}`);
        }
    
        return data.result;
      } catch (error) {
        console.error(`RPC call failed for ${method} on ${this.rpcUrl}:`, error);
        if (error instanceof Error) {
          throw error;
        } else {
          throw new Error(`Unknown error during RPC call: ${String(error)}`);
        }
      }
    }
  • src/index.ts:821-1681 (registration)
    Tool registration via getAvailableTools() method that returns the full list of Tool objects including arbtrace_callMany schema for ListToolsRequestSchema handler.
    private getAvailableTools(): Tool[] {
      console.error("ArbitrumMCPServer: Creating tools list");
      const tools = [
        {
          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"],
          },
        },
        {
          name: "get_rpc_url",
          description: "Get the current default RPC URL",
          inputSchema: {
            type: "object" as const,
            properties: {},
          },
        },
        {
          name: "clear_rpc_url",
          description: "Clear the default RPC URL",
          inputSchema: {
            type: "object" as const,
            properties: {},
          },
        },
        {
          name: "node_health",
          description:
            "Check Arbitrum node health status (requires admin API access - may not work with public RPCs)",
          inputSchema: {
            type: "object" as const,
            properties: {
              rpcUrl: {
                type: "string",
                description:
                  "The RPC URL of the Arbitrum node (optional if default is set)",
              },
              chainName: {
                type: "string",
                description:
                  "Chain name (e.g., 'Xai', 'Arbitrum One') - will auto-resolve to RPC URL",
              },
            },
            required: [],
          },
        },
        {
          name: "sync_status",
          description:
            "Get node synchronization status (may fall back to current block number if sync API unavailable)",
          inputSchema: {
            type: "object" as const,
            properties: {
              rpcUrl: {
                type: "string",
                description:
                  "The RPC URL of the Arbitrum node (optional if default is set)",
              },
            },
            required: [],
          },
        },
        {
          name: "node_peers",
          description:
            "Get connected peers information (requires admin API access - will not work with public RPCs)",
          inputSchema: {
            type: "object" as const,
            properties: {
              rpcUrl: {
                type: "string",
                description:
                  "The RPC URL of the Arbitrum node (optional if default is set)",
              },
            },
            required: [],
          },
        },
        {
          name: "arbos_version",
          description:
            "Get the ArbOS version number for any Arbitrum chain. Use this for questions like 'what ArbOS version is Xai running?', 'ArbOS version of Arbitrum One', 'what version of ArbOS', or 'check ArbOS version'. Supports chain names like 'Xai', 'Arbitrum One', 'Nova', etc.",
          inputSchema: {
            type: "object" as const,
            properties: {
              rpcUrl: {
                type: "string",
                description:
                  "The RPC URL of the Arbitrum node (optional if default is set)",
              },
              chainName: {
                type: "string",
                description:
                  "Chain name (e.g., 'Xai', 'Arbitrum One', 'Nova') - will auto-resolve to RPC URL",
              },
            },
            required: [],
          },
        },
        {
          name: "latest_block",
          description: "Get the latest block information",
          inputSchema: {
            type: "object" as const,
            properties: {
              rpcUrl: {
                type: "string",
                description:
                  "The RPC URL of the chain (optional if default is set)",
              },
            },
            required: [],
          },
        },
        {
          name: "get_balance",
          description: "Get balance of an address in wei",
          inputSchema: {
            type: "object" as const,
            properties: {
              rpcUrl: {
                type: "string",
                description:
                  "The RPC URL of the chain (optional if default is set)",
              },
              address: {
                type: "string",
                description: "Ethereum address to check balance for",
              },
            },
            required: ["address"],
          },
        },
        {
          name: "get_balance_ether",
          description: "Get balance of an address in ETH",
          inputSchema: {
            type: "object" as const,
            properties: {
              rpcUrl: {
                type: "string",
                description:
                  "The RPC URL of the chain (optional if default is set)",
              },
              address: {
                type: "string",
                description: "Ethereum address to check balance for",
              },
            },
            required: ["address"],
          },
        },
        {
          name: "get_transaction",
          description: "Get transaction details by hash",
          inputSchema: {
            type: "object" as const,
            properties: {
              rpcUrl: {
                type: "string",
                description:
                  "The RPC URL of the chain (optional if default is set)",
              },
              txHash: {
                type: "string",
                description: "Transaction hash",
              },
            },
            required: ["txHash"],
          },
        },
        {
          name: "get_transaction_receipt",
          description: "Get transaction receipt by hash",
          inputSchema: {
            type: "object" as const,
            properties: {
              rpcUrl: {
                type: "string",
                description:
                  "The RPC URL of the chain (optional if default is set)",
              },
              txHash: {
                type: "string",
                description: "Transaction hash",
              },
            },
            required: ["txHash"],
          },
        },
        {
          name: "is_contract",
          description: "Check if an address is a contract",
          inputSchema: {
            type: "object" as const,
            properties: {
              rpcUrl: {
                type: "string",
                description:
                  "The RPC URL of the chain (optional if default is set)",
              },
              address: {
                type: "string",
                description: "Address to check",
              },
            },
            required: ["address"],
          },
        },
        {
          name: "list_chains",
          description:
            "List all available Arbitrum Orbit chains and their names. Use this to see what chains are available for querying.",
          inputSchema: {
            type: "object" as const,
            properties: {},
          },
        },
        {
          name: "search_chains",
          description:
            "Search for Arbitrum chains by name, chain ID, or partial name match. Perfect for finding chains when you have incomplete information.",
          inputSchema: {
            type: "object" as const,
            properties: {
              query: {
                type: "string",
                description:
                  "Search query (chain name like 'Xai', 'Arbitrum One', chain ID like '42161', or partial name)",
              },
            },
            required: ["query"],
          },
        },
        {
          name: "chain_info",
          description:
            "Get comprehensive chain information including rollup contract address, bridge addresses, chain ID, RPC URL, explorer URL, native token details, and all bridge contract addresses. Use this for questions about rollup addresses, bridge contracts, chain IDs, or any chain-specific data for Arbitrum chains like Xai, Arbitrum One, etc.",
          inputSchema: {
            type: "object" as const,
            properties: {
              chainName: {
                type: "string",
                description:
                  "Chain name to look up (e.g., 'Xai', 'Arbitrum One', 'Nova', 'Stylus')",
              },
            },
            required: ["chainName"],
          },
        },
        {
          name: "get_rollup_address",
          description:
            "Get the rollup contract address for a specific Arbitrum chain. Use this for direct rollup address queries like 'what's the rollup address of Xai?', 'Xai rollup contract', or 'rollup address for Arbitrum One'.",
          inputSchema: {
            type: "object" as const,
            properties: {
              chainName: {
                type: "string",
                description:
                  "Chain name to get rollup address for (e.g., 'Xai', 'Arbitrum One', 'Nova')",
              },
            },
            required: ["chainName"],
          },
        },
    
        // ========== NEW ARBITRUM NODE TOOLS ==========
    
        {
          name: "arb_check_publisher_health",
          description:
            "Check the health status of the transaction publisher/sequencer (requires admin API)",
          inputSchema: {
            type: "object" as const,
            properties: {
              rpcUrl: {
                type: "string",
                description:
                  "The RPC URL of the Arbitrum node (optional if default is set)",
              },
              chainName: {
                type: "string",
                description:
                  "Chain name (e.g., 'Xai', 'Arbitrum One') - will auto-resolve to RPC URL",
              },
            },
            required: [],
          },
        },
        {
          name: "arb_get_raw_block_metadata",
          description:
            "Retrieve raw block metadata for specified block ranges (requires admin API)",
          inputSchema: {
            type: "object" as const,
            properties: {
              rpcUrl: {
                type: "string",
                description:
                  "The RPC URL of the Arbitrum node (optional if default is set)",
              },
              chainName: {
                type: "string",
                description:
                  "Chain name (e.g., 'Xai', 'Arbitrum One') - will auto-resolve to RPC URL",
              },
              fromBlock: {
                type: "number",
                description: "Starting block number",
              },
              toBlock: {
                type: "number",
                description:
                  "Ending block number (defaults to fromBlock if not provided)",
              },
            },
            required: ["fromBlock"],
          },
        },
        {
          name: "arb_latest_validated",
          description:
            "Get the latest validated global state information (requires admin API)",
          inputSchema: {
            type: "object" as const,
            properties: {
              rpcUrl: {
                type: "string",
                description:
                  "The RPC URL of the Arbitrum node (optional if default is set)",
              },
              chainName: {
                type: "string",
                description:
                  "Chain name (e.g., 'Xai', 'Arbitrum One') - will auto-resolve to RPC URL",
              },
            },
            required: [],
          },
        },
        {
          name: "arbtrace_call",
          description:
            "Trace individual calls with specified trace types (requires trace API)",
          inputSchema: {
            type: "object" as const,
            properties: {
              rpcUrl: {
                type: "string",
                description:
                  "The RPC URL of the Arbitrum node (optional if default is set)",
              },
              chainName: {
                type: "string",
                description:
                  "Chain name (e.g., 'Xai', 'Arbitrum One') - will auto-resolve to RPC URL",
              },
              callArgs: {
                type: "object",
                description: "Call arguments (to, from, data, etc.)",
              },
              traceTypes: {
                type: "array",
                description:
                  "Array of trace types (e.g., ['trace', 'stateDiff'])",
                items: { type: "string" },
              },
              blockNumOrHash: {
                type: "string",
                description: "Block number or hash (defaults to 'latest')",
              },
            },
            required: ["callArgs"],
          },
        },
        {
          name: "arbtrace_callMany",
          description:
            "Trace multiple calls in batch for efficiency (requires trace API)",
          inputSchema: {
            type: "object" as const,
            properties: {
              rpcUrl: {
                type: "string",
                description:
                  "The RPC URL of the Arbitrum node (optional if default is set)",
              },
              chainName: {
                type: "string",
                description:
                  "Chain name (e.g., 'Xai', 'Arbitrum One') - will auto-resolve to RPC URL",
              },
              calls: {
                type: "array",
                description: "Array of call objects to trace",
                items: { type: "object" },
              },
              blockNumOrHash: {
                type: "string",
                description: "Block number or hash (defaults to 'latest')",
              },
            },
            required: ["calls"],
          },
        },
        {
          name: "arbtrace_replayBlockTransactions",
          description:
            "Replay and trace all transactions in a specific block (requires trace API)",
          inputSchema: {
            type: "object" as const,
            properties: {
              rpcUrl: {
                type: "string",
                description:
                  "The RPC URL of the Arbitrum node (optional if default is set)",
              },
              chainName: {
                type: "string",
                description:
                  "Chain name (e.g., 'Xai', 'Arbitrum One') - will auto-resolve to RPC URL",
              },
              blockNumOrHash: {
                type: "string",
                description: "Block number or hash to replay",
              },
              traceTypes: {
                type: "array",
                description:
                  "Array of trace types (e.g., ['trace', 'stateDiff'])",
                items: { type: "string" },
              },
            },
            required: ["blockNumOrHash"],
          },
        },
        {
          name: "arbtrace_replayTransaction",
          description:
            "Replay and trace a specific transaction (requires trace API)",
          inputSchema: {
            type: "object" as const,
            properties: {
              rpcUrl: {
                type: "string",
                description:
                  "The RPC URL of the Arbitrum node (optional if default is set)",
              },
              chainName: {
                type: "string",
                description:
                  "Chain name (e.g., 'Xai', 'Arbitrum One') - will auto-resolve to RPC URL",
              },
              txHash: {
                type: "string",
                description: "Transaction hash to replay",
              },
              traceTypes: {
                type: "array",
                description:
                  "Array of trace types (e.g., ['trace', 'stateDiff'])",
                items: { type: "string" },
              },
            },
            required: ["txHash"],
          },
        },
        {
          name: "arbtrace_transaction",
          description:
            "Get trace information for a specific transaction (requires trace API)",
          inputSchema: {
            type: "object" as const,
            properties: {
              rpcUrl: {
                type: "string",
                description:
                  "The RPC URL of the Arbitrum node (optional if default is set)",
              },
              chainName: {
                type: "string",
                description:
                  "Chain name (e.g., 'Xai', 'Arbitrum One') - will auto-resolve to RPC URL",
              },
              txHash: {
                type: "string",
                description: "Transaction hash to trace",
              },
            },
            required: ["txHash"],
          },
        },
        {
          name: "arbtrace_get",
          description:
            "Get specific trace data at a given path within a transaction (requires trace API)",
          inputSchema: {
            type: "object" as const,
            properties: {
              rpcUrl: {
                type: "string",
                description:
                  "The RPC URL of the Arbitrum node (optional if default is set)",
              },
              chainName: {
                type: "string",
                description:
                  "Chain name (e.g., 'Xai', 'Arbitrum One') - will auto-resolve to RPC URL",
              },
              txHash: {
                type: "string",
                description: "Transaction hash",
              },
              path: {
                type: "array",
                description: "Path to specific trace data",
                items: { type: "string" },
              },
            },
            required: ["txHash"],
          },
        },
        {
          name: "arbtrace_block",
          description:
            "Get trace information for all transactions in a block (requires trace API)",
          inputSchema: {
            type: "object" as const,
            properties: {
              rpcUrl: {
                type: "string",
                description:
                  "The RPC URL of the Arbitrum node (optional if default is set)",
              },
              chainName: {
                type: "string",
                description:
                  "Chain name (e.g., 'Xai', 'Arbitrum One') - will auto-resolve to RPC URL",
              },
              blockNumOrHash: {
                type: "string",
                description: "Block number or hash to trace",
              },
            },
            required: ["blockNumOrHash"],
          },
        },
        {
          name: "arbtrace_filter",
          description:
            "Filter traces based on specified criteria (requires trace API)",
          inputSchema: {
            type: "object" as const,
            properties: {
              rpcUrl: {
                type: "string",
                description:
                  "The RPC URL of the Arbitrum node (optional if default is set)",
              },
              chainName: {
                type: "string",
                description:
                  "Chain name (e.g., 'Xai', 'Arbitrum One') - will auto-resolve to RPC URL",
              },
              filter: {
                type: "object",
                description: "Filter criteria for traces",
              },
            },
            required: ["filter"],
          },
        },
        {
          name: "arbdebug_validateMessageNumber",
          description: "Validate a specific message number (requires debug API)",
          inputSchema: {
            type: "object" as const,
            properties: {
              rpcUrl: {
                type: "string",
                description:
                  "The RPC URL of the Arbitrum node (optional if default is set)",
              },
              chainName: {
                type: "string",
                description:
                  "Chain name (e.g., 'Xai', 'Arbitrum One') - will auto-resolve to RPC URL",
              },
              msgNum: {
                type: "number",
                description: "Message number to validate",
              },
              full: {
                type: "boolean",
                description: "Whether to perform full validation",
              },
              moduleRoot: {
                type: "string",
                description: "Optional module root hash",
              },
            },
            required: ["msgNum"],
          },
        },
        {
          name: "arbdebug_validationInputsAt",
          description:
            "Get validation inputs at a specific message (requires debug API)",
          inputSchema: {
            type: "object" as const,
            properties: {
              rpcUrl: {
                type: "string",
                description:
                  "The RPC URL of the Arbitrum node (optional if default is set)",
              },
              chainName: {
                type: "string",
                description:
                  "Chain name (e.g., 'Xai', 'Arbitrum One') - will auto-resolve to RPC URL",
              },
              msgNum: {
                type: "number",
                description: "Message number to get validation inputs for",
              },
              target: {
                type: "string",
                description: "Target for validation inputs",
              },
            },
            required: ["msgNum"],
          },
        },
        {
          name: "maintenance_status",
          description:
            "Check maintenance status - seconds since last maintenance (requires admin API)",
          inputSchema: {
            type: "object" as const,
            properties: {
              rpcUrl: {
                type: "string",
                description:
                  "The RPC URL of the Arbitrum node (optional if default is set)",
              },
              chainName: {
                type: "string",
                description:
                  "Chain name (e.g., 'Xai', 'Arbitrum One') - will auto-resolve to RPC URL",
              },
            },
            required: [],
          },
        },
        {
          name: "maintenance_trigger",
          description:
            "Manually trigger maintenance operations (requires admin API)",
          inputSchema: {
            type: "object" as const,
            properties: {
              rpcUrl: {
                type: "string",
                description:
                  "The RPC URL of the Arbitrum node (optional if default is set)",
              },
              chainName: {
                type: "string",
                description:
                  "Chain name (e.g., 'Xai', 'Arbitrum One') - will auto-resolve to RPC URL",
              },
            },
            required: [],
          },
        },
        {
          name: "timeboost_sendExpressLaneTransaction",
          description:
            "Submit priority transactions through express lanes for faster processing (requires timeboost API)",
          inputSchema: {
            type: "object" as const,
            properties: {
              rpcUrl: {
                type: "string",
                description:
                  "The RPC URL of the Arbitrum node (optional if default is set)",
              },
              chainName: {
                type: "string",
                description:
                  "Chain name (e.g., 'Xai', 'Arbitrum One') - will auto-resolve to RPC URL",
              },
              submission: {
                type: "object",
                description: "Express lane submission data",
              },
            },
            required: ["submission"],
          },
        },
        {
          name: "auctioneer_submitAuctionResolutionTransaction",
          description:
            "Submit auction resolution transactions for express lane functionality (requires auctioneer API)",
          inputSchema: {
            type: "object" as const,
            properties: {
              rpcUrl: {
                type: "string",
                description:
                  "The RPC URL of the Arbitrum node (optional if default is set)",
              },
              chainName: {
                type: "string",
                description:
                  "Chain name (e.g., 'Xai', 'Arbitrum One') - will auto-resolve to RPC URL",
              },
              transaction: {
                type: "object",
                description: "Auction resolution transaction data",
              },
            },
            required: ["transaction"],
          },
        },
    
        // ========== MONITORING TOOLS ==========
    
        {
          name: "batch_posting_status",
          description:
            "Monitor batch posting activity. Tracks when batches were last posted to the sequencer inbox and current backlog size. Essential for PM and support teams to understand chain data availability status.",
          inputSchema: {
            type: "object" as const,
            properties: {
              rpcUrl: {
                type: "string",
                description:
                  "The RPC URL of the Arbitrum chain (optional if default is set)",
              },
              chainName: {
                type: "string",
                description:
                  "Chain name (e.g., 'Xai', 'Arbitrum One') - will auto-resolve to RPC URL",
              },
              parentRpcUrl: {
                type: "string",
                description: "Parent chain RPC URL (e.g., Ethereum mainnet RPC)",
              },
              sequencerInboxAddress: {
                type: "string",
                description: "Sequencer inbox contract address",
              },
              bridgeAddress: {
                type: "string",
                description: "Bridge contract address",
              },
            },
            required: ["parentRpcUrl", "sequencerInboxAddress", "bridgeAddress"],
          },
        },
        {
          name: "assertion_status",
          description:
            "Monitor assertion creation and confirmation activity. Tracks NodeCreated vs NodeConfirmed events to understand rollup validation status. Critical for PM and support teams to monitor chain security and finality.",
          inputSchema: {
            type: "object" as const,
            properties: {
              rpcUrl: {
                type: "string",
                description:
                  "The RPC URL of the Arbitrum chain (optional if default is set)",
              },
              chainName: {
                type: "string",
                description:
                  "Chain name (e.g., 'Xai', 'Arbitrum One') - will auto-resolve to RPC URL",
              },
              parentRpcUrl: {
                type: "string",
                description: "Parent chain RPC URL (e.g., Ethereum mainnet RPC)",
              },
              rollupAddress: {
                type: "string",
                description: "Rollup contract address",
              },
            },
            required: ["parentRpcUrl", "rollupAddress"],
          },
        },
        {
          name: "gas_status",
          description:
            "Monitor current gas prices on the chain. Essential for identifying gas price spikes and understanding transaction costs. Useful for PM and support teams to monitor network congestion.",
          inputSchema: {
            type: "object" as const,
            properties: {
              rpcUrl: {
                type: "string",
                description:
                  "The RPC URL of the Arbitrum chain (optional if default is set)",
              },
              chainName: {
                type: "string",
                description:
                  "Chain name (e.g., 'Xai', 'Arbitrum One') - will auto-resolve to RPC URL",
              },
            },
            required: [],
          },
        },
        {
          name: "comprehensive_chain_status",
          description:
            "Get comprehensive chain status including ArbOS version, batch posting, assertion monitoring, and gas prices. Perfect for PM and support teams asking 'what is the current status of XAI?' or similar comprehensive status checks. Auto-resolves contract addresses from chain name when possible.",
          inputSchema: {
            type: "object" as const,
            properties: {
              rpcUrl: {
                type: "string",
                description:
                  "The RPC URL of the Arbitrum chain (optional if default is set)",
              },
              chainName: {
                type: "string",
                description:
                  "Chain name (e.g., 'Xai', 'Arbitrum One') - will auto-resolve RPC URL and contract addresses",
              },
              parentRpcUrl: {
                type: "string",
                description: "Parent chain RPC URL (auto-resolved if chainName provided)",
              },
              sequencerInboxAddress: {
                type: "string",
                description: "Sequencer inbox contract address (auto-resolved if chainName provided)",
              },
              bridgeAddress: {
                type: "string",
                description: "Bridge contract address (auto-resolved if chainName provided)",
              },
              rollupAddress: {
                type: "string",
                description: "Rollup contract address (auto-resolved if chainName provided)",
              },
            },
            required: [],
          },
        },
      ];
      console.error(`ArbitrumMCPServer: Created ${tools.length} tools`);
      return tools;
    }
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions 'for efficiency' and 'requires trace API', which adds some context about performance and prerequisites. However, it lacks details on what 'trace' entails (e.g., what data is returned, error handling, rate limits, or side effects), leaving significant gaps for a tool that likely interacts with blockchain nodes.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that front-loads the key information ('Trace multiple calls in batch for efficiency') and includes a necessary prerequisite ('requires trace API'). There's no wasted text, and it's appropriately sized for the tool's complexity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of tracing blockchain calls (with 4 parameters, no output schema, and no annotations), the description is incomplete. It lacks details on what the tool returns, how errors are handled, or the scope of 'trace' (e.g., debugging info, gas usage). Without annotations or an output schema, the description should provide more behavioral context to be fully helpful.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, meaning all parameters are documented in the input schema. The description doesn't add any semantic details beyond what's in the schema (e.g., it doesn't explain the structure of 'calls' array items or clarify 'trace API' requirements). Since the schema does the heavy lifting, the baseline score of 3 is appropriate, as the description doesn't compensate or add extra value.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Trace multiple calls in batch') and the resource ('calls'), making the purpose understandable. However, it doesn't distinguish this tool from its sibling 'arbtrace_call' (which presumably traces single calls), missing an opportunity for explicit differentiation that would warrant a score of 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies when to use this tool ('for efficiency') and mentions a prerequisite ('requires trace API'), providing some contextual guidance. However, it doesn't explicitly state when to use this versus alternatives like 'arbtrace_call' or other trace siblings, nor does it specify when not to use it, keeping the guidance at an implied level rather than explicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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