Skip to main content
Glama

chain_eip7702_authorization

Read-only

EIP-7702 authorization builder and checker — Build and check an EIP-7702 (Pectra) set-code authorization so an EOA can delegate to a smart-account contract. Pass delegate (the contract; the zero address clears a delegation) and authority (the EOA, to read its nonce live) or nonce. Returns the RLP tuple, the 0x05-prefixed preimage and the exact signingHash to sign raw, the nonce to use (and nonce+1 if the EOA sends the type-4 tx itself), the delegate's code status and the EOA's current delegation. Add signature (65-byte hex) or r, s, y_parity to verify one: recovers the signer, checks low-s, yParity, signer match and nonce, and returns a ready authorizationList item. Verdict READY_TO_SIGN, VALID, VALID_SIGNATURE, NONCE_USED, NONCE_TOO_HIGH, WRONG_SIGNER, WILL_BE_SKIPPED or INVALID_SIGNATURE. Optional: chain (base default, ethereum, arbitrum, optimism, polygon, avalanche, base-sepolia), any_chain=true for a chain_id 0 (all-chains) authorization. Read-only, nothing is signed or sent. Price: $0.003 USDC (Base, via x402).

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": {
      "delegate": "<delegate>",
      "authority": "<authority>"
    },
    "name": "chain_eip7702_authorization"
  }
}

Input Schema

NameRequiredDescriptionDefault
delegateYes0x63c0c19a282a1B52b07dD5a65b58948A07DAE32B
authorityYes0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations, the description supplies real behavioral context: the exact return contents (RLP tuple, 0x05-prefixed preimage, signingHash, nonce and nonce+1 for a type-4 tx), the full verdict vocabulary (READY_TO_SIGN through INVALID_SIGNATURE), the delegate's code status, the zero-address clearing semantics, and the $0.003 x402 price. It also restates that nothing is signed or sent, which reinforces readOnlyHint=true and destructiveHint=false without contradicting them.

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 purpose is front-loaded in the first clause and the detail is ordered logically (build inputs, returns, verdicts, chain options, safety/pricing). It is a single dense paragraph with committed specifics rather than filler, though the verdict enumeration and the parameter list not present in the schema make it feel overloaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex tool with no output schema, the description is generous about returns, verdicts, chain behavior, and pricing. The gap is structural: it documents a much larger input surface (chain, any_chain, nonce, signature fields) than the two-property schema exposes, leaving an agent unsure whether those parameters are actually accepted.

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?

The schema's two parameters have 100% coverage, but the schema descriptions are only example addresses, so the description adds the crucial meaning: delegate is the contract and the zero address clears a delegation, while authority is the EOA whose live nonce is read. However, it also describes many inputs (nonce, chain, any_chain, signature, r, s, y_parity) that are absent from the supplied schema, which muddies what is actually passable.

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 opens with a specific verb-plus-resource combination ('EIP-7702 authorization builder and checker — Build and check an EIP-7702 (Pectra) set-code authorization') and names the concrete outcome: an EOA delegating to a smart-account contract. It also separates the two modes (build vs. verify), so an agent can tell what the tool does without opening the 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 clearly states how to trigger each mode: 'Pass delegate ... and authority ... or nonce' for building, and 'Add signature (65-byte hex) or r, s, y_parity to verify one' for checking. It does not point to an alternative tool (e.g., the sibling chain_authorization_state) or state when NOT to use this one, so it falls short of full when/when-not routing.

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