Skip to main content
Glama

Agent Data Hub

Contract inspector: EOA vs contract, token standard, proxy

chain_contract
Read-onlyIdempotent

Inspect any EVM address: wallet (EOA), EIP-7702 delegated wallet, or contract. For contracts: detected standard (ERC-20 / ERC-721 / ERC-1155 / ERC-165), name, symbol, decimals and total supply for tokens, proxy type (EIP-1967, beacon, EIP-1167 clone) with implementation address, owner(), bytecode size and code hash. Use to check what you are about to interact with. Price: $0.002 per call (USDC on Base via x402); the first 10 calls per day are free.

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": "chain_contract"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNoChain (default base)
addressYesAddress 0x…

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, openWorld), and the description adds genuinely new behavioral facts: a per-call price of $0.002 in USDC on Base via x402 plus 10 free calls per day. That cost/rate-limit disclosure is exactly the kind of context annotations cannot carry. It stops short of describing failure modes for invalid addresses or unsupported chains.

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?

Front-loaded with the identity-check sentence, then a dense but well-ordered enumeration of returned fields grouped by contract vs token vs proxy, then pricing last. Given there is no output schema, the field enumeration earns its space rather than being redundant.

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

Completeness4/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 correctly compensates by enumerating return values, and it discloses cost so the agent can decide whether to call. Minor gaps remain: no mention of behavior for an invalid address or an address with no code on the selected chain, which matters for an inspector tool whose whole point is distinguishing EOA from contract.

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% for both parameters, including the 'default base' note on the chain enum and the '0x…' address format, so the schema does the semantic work. The description adds no parameter-level detail such as whether an ENS name would be accepted in place of a hex address, which is the one ambiguity an agent might hit.

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?

States a specific verb ('Inspect') and resource ('any EVM address') and immediately enumerates the three address categories it resolves (EOA, EIP-7702 delegated wallet, contract). It then lists the concrete outputs (token standard, proxy type, owner(), bytecode size, code hash), which is enough to distinguish it from siblings like chain_token or chain_balance 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?

Gives a clear situational trigger: 'Use to check what you are about to interact with,' which frames it as a pre-interaction safety check rather than a data-fetch tool. It does not name alternatives or exclusions (e.g., when to prefer chain_token for token metadata), so it stops short of full routing guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources