Skip to main content
Glama
x402-data-mcp

x402-data-mcp

Is it a contract, a proxy or a token, on five chains ($0.002)

inspect_contract

Inspect a wallet or contract address across Base, Ethereum, Arbitrum, Optimism, and Polygon in one call to get bytecode, proxy/delegation info, and token standard metadata.

Instructions

Inspect any address on Base, Ethereum, Arbitrum, Optimism and Polygon in one call: wallet or contract, bytecode size and hash, EIP-7702 delegation, proxy type and implementation/admin/beacon (EIP-1967, beacon, EIP-1167 clones, legacy ZeppelinOS such as USDC), and token standard with on-chain name, symbol, decimals and total supply (ERC-20, ERC-721, ERC-1155). Not charged if every chain fails. No API key. Price: $0.002 USDC per call, paid over x402 on Base from the wallet in X402_PRIVATE_KEY (not charged when the call fails).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "address": "<address>"
    },
    "name": "inspect_contract"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainsNoComma list, any of: base,ethereum,arbitrum,optimism,polygon. Default: all five.
addressYesAddress to inspect

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations it discloses the payment mechanics (x402, $0.002 USDC per call on Base, funded by X402_PRIVATE_KEY), that no API key is needed, and that failed calls are not billed — which explains and justifies readOnlyHint=false and idempotentHint=false. This is exactly the kind of cost/side-effect context annotations cannot carry.

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

Conciseness4/5

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

The capability list is front-loaded and dense with no filler, but the pricing/failure statement is repeated twice ('Not charged if every chain fails' and 'not charged when the call fails'), which is avoidable duplication in an otherwise tight definition.

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

Completeness5/5

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

With no output schema, the description still fully characterizes the return payload (bytecode size/hash, proxy type with implementation/admin/beacon, token standard plus name, symbol, decimals, total supply). Cost, auth, chain coverage, and failure behavior are all covered for a paid, multi-chain tool.

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% and both parameters are documented there, including the chain list and its default, so the description adds little parameter-level meaning beyond what the schema already provides. Baseline 3 applies.

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

Purpose5/5

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

The description names a specific verb (inspect) and enumerates exactly what is determined about an address: wallet vs contract, bytecode size/hash, EIP-7702 delegation, proxy type and implementation, and token standard with metadata. That scope is concrete enough to separate it from siblings such as get_nft_metadata or get_balances without opening any schema.

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

Usage Guidelines4/5

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

It makes the triggering context clear ('inspect any address ... in one call', with the chain default spelled out), so an agent knows when this tool answers its question. It stops short of naming an alternative or an exclusion condition, so it falls short of the top band.

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