Skip to main content
Glama

Eth contract info

eth_contract_info
Read-onlyIdempotent

Identify what lives at a Ethereum address: wallet (EOA, including EIP-7702 delegation) or contract, which token standard it implements (ERC-20, ERC-721, ERC-1155), name and symbol, upgradeable-proxy implementation and admin, smart-wallet proxies, bytecode size, nonce and ETH balance. Costs $0.005 USDC on Base via x402.

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

Input Schema

NameRequiredDescriptionDefault
addressYesAny address on Ethereum

Output Schema

NameRequiredDescriptionDefault
kindNostring, e.g. "ERC-20 token"
nameNostring, e.g. "USD Coin"
chainNostring, e.g. "eth"
proxyNoobject
symbolNostring, e.g. "USDC"
addressNostring, e.g. "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
decimalsNonumber, e.g. 6
standardsNoobject
isContractNoboolean, e.g. true
totalSupplyNostring, e.g. "48016325237.499139"
bytecodeBytesNonumber, e.g. 2186
nativeBalanceNostring, e.g. "0"

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": true,
      +  "properties": {
      +    "address": {
      +      "description": "string, e.g. \"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\""
      +    },
      +    "bytecodeBytes": {
      +      "description": "number, e.g. 2186"
      +    },
      +    "chain": {
      +      "description": "string, e.g. \"eth\""
      +    },
      +    "decimals": {
      +      "description": "number, e.g. 6"
      +    },
      +    "isContract": {
      +      "description": "boolean, e.g. true"
      +    },
      +    "kind": {
      +      "description": "string, e.g. \"ERC-20 token\""
      +    },
      +    "name": {
      +      "description": "string, e.g. \"USD Coin\""
      +    },
      +    "nativeBalance": {
      +      "description": "string, e.g. \"0\""
      +    },
      +    "proxy": {
      +      "description": "object"
      +    },
      +    "standards": {
      +      "description": "object"
      +    },
      +    "symbol": {
      +      "description": "string, e.g. \"USDC\""
      +    },
      +    "totalSupply": {
      +      "description": "string, e.g. \"48016325237.499139\""
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world, so the safety profile is covered. The description adds genuinely non-obvious behavioral context the annotations do not: the call costs $0.005 USDC on Base via x402, meaning it is a paid request requiring payment handling. It stops short of describing failure modes or what happens for non-existent addresses, which keeps it below 5.

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?

Two sentences, purpose front-loaded and then the cost disclosure, with no filler. The long enumerative clause is dense but every listed item is a distinct return capability, so it earns its place; slightly tighter punctuation/phrasing would improve scannability.

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?

For a one-parameter read tool with an output schema, an annotations-covered safety profile, and a pay-per-call model, this is complete: it states scope, what it returns, and the payment requirement. Return-value details are covered by the output schema, so the description does not need to expand further.

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

Parameters5/5

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

With a single required parameter and 100% schema coverage (pattern and description 'Any address on Ethereum' fully specified), the schema carries the semantics and there is little left to add. The description correctly scopes the domain to Ethereum addresses, consistent with the schema and the per-chain sibling tools.

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?

Opens with a specific verb and resource ('Identify what lives at a Ethereum address') and enumerates exactly what is returned: EOA vs contract, EIP-7702 delegation, token standard, name/symbol, proxy implementation and admin, bytecode size, nonce and balance. The implicit chain scoping ('on Ethereum') plus the family of chain-specific siblings (base_contract_info, arbitrum_contract_info) makes the distinction obvious from the name and first clause.

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?

Usage is implied by the enumeration of questions the tool answers (is this a wallet or contract, what standard, is it a proxy), which is enough for an agent to recognize the situation. However, there is no explicit when-to-use/when-not statement and no routing to alternatives — e.g. nothing says to use eth_resolve_ens first for a name, or eth_token_snapshot for supply/holder data.

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