Skip to main content
Glama

check_eip7702_delegation

Read-onlyIdempotent

Inspect a single EVM externally owned account (EOA) via live eth_getCode RPC to detect active Pectra EIP-7702 delegation hijacks (0xef0100...23-byte designator). Read-only, non-destructive lookup on Ethereum, Base, Arbitrum, or Polygon (5 free calls/hour per IP; paid API keys use the plan's remaining quota). Returns JSON with address, network, delegated (boolean), delegate_contract (0x address or null), risk_score (0-100), and verdict (PASS, WARN, BLOCK). Use this tool for targeted single-address EOA code checks; use scan_evm_dust_and_hygiene for full 8-chain token balance and dust discovery.

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

Input Schema

NameRequiredDescriptionDefault
addressYes42-character hexadecimal EVM wallet address (`0x` followed by 40 hex chars) to inspect for EIP-7702 bytecode delegation.
networkNoTarget EVM chain for live `eth_getCode` inspection (`base`, `ethereum`, `arbitrum`, or `polygon`). Defaults to `base`.base

Output Schema

NameRequiredDescriptionDefault
addressYes
networkYes
verdictYes
delegatedNo
risk_scoreNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / address / description
      Added value: +"42-character hexadecimal EVM wallet address (`0x` followed by 40 hex chars) to inspect for EIP-7702 bytecode delegation."
    • addedInput schema / properties / network / description
      Added value: +"Target EVM chain for live `eth_getCode` inspection (`base`, `ethereum`, `arbitrum`, or `polygon`). Defaults to `base`."
    • addedInput schema / properties / network / enum
      Added value: +[
      +  "base",
      +  "ethereum",
      +  "arbitrum",
      +  "polygon"
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "address": {
      +      "type": "string"
      +    },
      +    "delegated": {
      +      "type": "boolean"
      +    },
      +    "network": {
      +      "type": "string"
      +    },
      +    "risk_score": {
      +      "type": "integer"
      +    },
      +    "verdict": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "address",
      +    "network",
      +    "verdict"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly, non-destructive, idempotent, and open-world, and the description goes beyond them by disclosing live RPC behavior, the four supported chains, the 5-calls/hour per-IP free tier, and paid-key quota mechanics. That rate-limit and quota context is exactly the kind of operational trait annotations cannot express. Minor shortfall: it does not say what happens on RPC failure or unsupported inputs beyond the verdict enum.

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 purpose, mechanism, and the discriminating sibling reference in the first two sentences. The trailing enumeration of return fields duplicates the existing output schema, which is mildly redundant, but the paragraph remains tight overall.

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?

Output schema exists and annotations cover the safety profile, so the description need not explain return values in depth; it nonetheless names the key fields to set expectations. With both parameters fully documented in schema and the cross-chain scope, rate limits, and sibling boundary stated, an agent has everything needed to call it correctly.

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

Parameters4/5

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

Schema description coverage is 100%, so the baseline is 3 and the schema already documents the address format and network enum. The description adds modest value by tying the address parameter to the specific check being run (EIP-7702 bytecode delegation) rather than a generic address lookup. No syntax or format detail beyond the schema is introduced, so it does not exceed a 4.

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 and resource ("Inspect a single EVM externally owned account (EOA)") plus the detection mechanism (live eth_getCode for the 0xef0100...23-byte EIP-7702 designator). It explicitly names the sibling it is not (scan_evm_dust_and_hygiene), so an agent can route without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit when-to-use clause ("targeted single-address EOA code checks") and an explicit alternative with the condition that selects it ("use scan_evm_dust_and_hygiene for full 8-chain token balance and dust discovery"). Little is left to inference.

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