Skip to main content
Glama

Tanod Chain

chainpeek: detect a proxy contract and its implementation

detect_proxy
Read-onlyIdempotent

chainpeek: detect whether a contract is a proxy, and of which kind. Input: chain (ethereum | base) and address (0x + 40 hex). Reads the code, the EIP-1967 / EIP-1822 / OpenZeppelin legacy slots and slot 0, then one multicall. Returns is_contract, is_proxy, kind (eip1967_transparent | eip1967_uups | eip1967 | eip1967_beacon | eip1822_uups | oz_legacy | eip1167_minimal | erc7511_minimal | eip7702_delegation, or the multisig-wallet kind when slot 0 and masterCopy() agree), implementation (and whether it has code), admin, beacon and the raw slots. An upgradeable proxy's implementation can change after this read. A malformed or inconsistent node answer is a 5xx and is not charged. Typically 1-4 s. Price: USD 0.002. Free: 10 chain reads per IP per UTC day (every chainpeek read, the sanctions screen and the single URL check share one pool).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainYesChain to read.
addressYesContract address (0x + 40 hex).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations cover the safety profile (readOnly, idempotent, non-destructive, openWorld), and the description adds substantial extra context: the exact slots read, that an upgradeable proxy's implementation can change after the read, that malformed/inconsistent node answers return 5xx uncharged, latency of 1-4s, pricing, and the shared free-tier rate limit. This is far beyond what the annotations provide.

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?

Front-loaded with the core action and inputs before the return field list, then caveats, latency, and pricing. It is a dense single-paragraph block, but nearly every clause carries operational value for a tool with this many return fields; minor density cost only.

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 carries the full burden and does so thoroughly: it enumerates is_contract, is_proxy, kind (with all enum values), implementation and whether it has code, admin, beacon, and raw slots, plus the transient nature of the implementation for upgradeable proxies. Nothing an agent needs to interpret results is missing.

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% with an enum on `chain` and a regex pattern on `address`, so the schema already documents both parameters fully. The description restates the same input contract (ethereum|base, 0x+40 hex) without adding new syntax or semantic detail, so the baseline of 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?

States a precise verb+resource: detecting whether a contract is a proxy and which kind, across two named chains. The enumerated `kind` values (eip1967_transparent, eip1822_uups, eip1167_minimal, etc.) make the scope unambiguous and clearly separate it from siblings like scan_contract_source or check_contract_before_interaction.

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 makes the usage context inferable (you call it to classify a deployed contract), but it never explicitly says when to prefer this over siblings such as scan_contract_address, scan_contract_source, or check_contract_before_interaction. No when-not guidance or alternative routing is offered.

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