Skip to main content
Glama
aiexp1

Tanod MCP server

chainpeek: detect a proxy contract and its implementation

detect_proxy
Read-onlyIdempotent

Check whether a contract is a proxy and identify its type by reading EIP-1967, EIP-1822, and legacy storage slots on Ethereum, Base, or Robinhood.

Instructions

chainpeek: detect whether a contract is a proxy, and of which kind. For code size and hash use get_contract_code. 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. Docs: https://tanod.dev/learn/proxy-contract-detection-api.html

Input Schema

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

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNo
adminNo
chainNo
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
slotsNo
beaconNo
addressNo
is_proxyNo
patternsNo
rpc_callsNo
code_bytesNo
is_contractNo
implementationNo
implementation_has_codeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare read-only/idempotent/non-destructive, but the description goes well beyond them: the exact read procedure (code, EIP-1967/1822/OZ legacy slots, slot 0, one multicall), the staleness caveat that an upgradeable proxy's implementation can change after the read, the 5xx-and-not-charged behavior on malformed node answers, typical latency (1-4 s), price (USD 0.002) and a free tier (10 reads per IP per UTC day).

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 purpose and the sibling exclusion, then a compact chain of procedural detail, caveats, and pricing. Dense but every sentence earns its place; the long `kind` enumeration is the only borderline element and it materially aids interpretation.

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?

Despite an output schema existing, the description covers everything an agent needs to call this correctly and interpret it: classification kinds, return fields, staleness caveat, failure semantics, cost, rate limits, and a docs link. Nothing material 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% and the schema documents both `chain` (with enum) and `address` (with pattern/length), so the schema already carries the parameter burden. The description adds no parameter-level detail (no enum values restated, no address format guidance), so the 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?

States a specific verb+resource ('detect whether a contract is a proxy, and of which kind') and immediately distinguishes itself from the closest sibling: 'For code size and hash use get_contract_code.' An agent can pick it out of the very large sibling list without opening a 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 explicitly routes the code-size/hash use case to get_contract_code and describes the trigger context (you want proxy classification and implementation/admin/beacon). It does not, however, address when this is preferable to siblings like scan_contract_source, check_contract_before_interaction, or get_storage_at, so the guidance is clear but not exhaustive.

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

Deploy Server

Other Tools