Skip to main content
Glama

SovRoute

EIP-7702 Authorization Scanner

inspect_eip7702_authorization
Read-onlyIdempotent

Read-only, side-effect-free security audit of an EIP-7702 (Pectra) authorization_list for wallet drainer bytecode, dangerous opcodes (SELFDESTRUCT, unverified DELEGATECALL), and chainId=0 cross-chain replay risk. Use this specifically when signing or reviewing EIP-7702 authorization tuples; use inspect_evm_address_safety for general EOA/proxy/token risk, simulate_evm_tx for full calldata execution, or preflight_transaction_guard for a unified ALLOW/WARN/BLOCK verdict.

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": {
      "authorizationList": "<authorizationList>"
    },
    "name": "inspect_eip7702_authorization"
  }
}

Input Schema

NameRequiredDescriptionDefault
executionChainIdNoTarget EVM execution chain ID
authorizationListYes

Output Schema

NameRequiredDescriptionDefault
verdictNoRisk verdict (SAFE_VERIFIED, SUSPICIOUS_UNVERIFIED, CRITICAL_DRAIN_RISK)
findingsNoPer-authorization inspection findings
riskScoreNoNumeric risk score (0-100)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description's 'read-only, side-effect-free' mostly restates that. It does add genuine behavioral context beyond the annotations: the concrete audit surface (drainer bytecode, dangerous opcodes, chainId=0 replay) and the open-world implication of 'unverified' DELEGATECALL analysis, which signals external verification lookups rather than pure local inspection.

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?

Two sentences, audit scope front-loaded, sibling routing packed into a single trailing sentence with no filler. Slight redundancy in leading with 'Read-only, side-effect-free' when annotations already encode that, but it costs only a few words.

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?

An output schema exists, so return values need no explanation, and the description covers trigger conditions, audit targets, and alternatives. Remaining gap is modest: no hint about the 50-item cap on authorizationList or whether the scan is purely local versus requiring external bytecode lookups.

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 only 50%: executionChainId is documented in the schema, but the array entry fields (chainId, address, nonce, bytecode) have no descriptions. The description compensates partially by explaining that chainId=0 means cross-chain replay risk, which gives meaning to the per-entry chainId, but it says nothing about what the optional bytecode field is for or the significance of executionChainId versus per-entry chainId.

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 ('security audit of an EIP-7702 authorization_list') and enumerates exactly what it inspects: drainer bytecode, SELFDESTRUCT, unverified DELEGATECALL, and chainId=0 replay risk. This is clearly distinguishable from the sibling simulation and address-safety tools without opening any 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?

Explicitly bounds the trigger condition ('when signing or reviewing EIP-7702 authorization tuples') and names three alternatives with the condition that selects each: general address risk, full calldata execution, and unified verdict. An agent has no inference work left to route correctly.

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.