Skip to main content
Glama

EVM Wallet & Token Due-Diligence (x402)

evm_code

Read-only

$0.002 (x402). Is this address a contract, a plain EOA, or an EIP-7702 delegated EOA? On Ethereum, Base, Arbitrum, Optimism, Polygon or BSC: bytecode size, 7702 delegate target, upgradeable-proxy slots (EIP-1967 implementation/admin/beacon, legacy Zeppelin) and nonce.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "evm_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNoethereum|base|arbitrum|optimism|polygon|bsc
addressNo0x...

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, so the description carries the rest, and it does add real value: a cost and payment mechanism ('$0.002 (x402)'), the exact chains served, and the concrete outputs (bytecode size, 7702 delegate target, proxy slots, nonce). It stops short of stating failure behavior for invalid addresses or unavailable chains, and does not warn that the call is billed even when the address turns out to be an EOA.

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?

Dense and front-loaded, with the core question stated in the second sentence and the returned fields bundled at the end. The leading price token is a slightly awkward opener but is still high-value information delivered early; the parenthetical slot enumeration is compact rather than padded.

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 naming the return fields, and it discloses the payment requirement, which is essential for a metered tool. Missing only edge-case behavior (invalid address, unsupported chain) and any note on response shape for an address that is not a 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 coverage is 100% and the chain parameter already lists ethereum|base|arbitrum|optimism|polygon|bsc, so the description's chain enumeration largely restates the schema. It does imply the address is expected as a 0x hex value and that results differ per chain, but adds no format or validation detail beyond that.

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 poses a precise classification question (contract vs. plain EOA vs. EIP-7702 delegated EOA) against a specific resource and enumerates the six supported chains, which clearly separates it from siblings like evm_balance, evm_nonce, and decode_evm_tx.

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 only implied by the question framing: an agent can infer it should call this when it needs to know whether an address holds code. There is no explicit when-to-use, no exclusion against related tools such as evm_nonce or evm_balance, and no guidance that this is a paid call worth avoiding for trivial checks.

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