Skip to main content
Glama

ChainGuard Web3 Security & DeFi MCP

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 or unlimited with X-API-Key). 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.3/5.0
Behavior4/5

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

The annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description nonetheless adds real context the annotations cannot: the underlying RPC method, the rate limit (5 free calls/hour per IP, unlimited with X-API-Key), and the meaning of the returned risk tiers. It stops short of describing failure behavior, such as what happens on an unsupported chain or RPC error.

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?

The description is one dense paragraph that front-loads the core purpose before constraints, return shape, and sibling routing. It is efficient, but the enumeration of every returned field restates what the output schema already declares, which is filler the description does not need.

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?

For a two-parameter, annotation-rich tool with an output schema, the description covers purpose, scope, pricing and rate limits, and the sibling comparison. The only gap is behavior on error or unsupported-chain inputs, which is minor given the strong annotation coverage.

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%, so the schema already documents both parameters, including the 42-character hex format and the network enum with its default. The description restates the chain list but adds no new syntax, validation rules, or edge cases beyond that, 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?

The description names a specific verb and resource ('Inspect a single EVM externally owned account ... via live eth_getCode RPC') and narrows it to an exact failure mode ('Pectra EIP-7702 delegation hijacks (0xef0100...23-byte designator)'). This is enough to distinguish it from siblings like scan_evm_dust_and_hygiene 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?

It states the use case precisely ('targeted single-address EOA code checks') and names the alternative it is not, with the condition that selects that alternative ('scan_evm_dust_and_hygiene for full 8-chain token balance and dust discovery'). When-to-use and when-not-to-use are both explicit.

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.