Skip to main content
Glama

ScorpTech x402 Tools

Eip712 Hash

eip712_hash
Read-onlyIdempotent

EIP-712 typed-data hashing and signature check: returns encodeType, typeHash, domain separator, struct hash and the final digest a wallet signs (eth_signTypedData_v4), and with a signature recovers the signer and compares it to an expected address. Summarises common payloads (ERC-2612 Permit, EIP-3009 TransferWithAuthorization used by x402 EVM payments, Permit2) so an agent can see what it is about to sign. POST JSON body. Returns JSON with: primaryType, encodeType, typeHash, domainSeparator, structHash, digest, domain, signer. Price: $0.003 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/eip712-hash

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": {
      "typedData": "<typedData>"
    },
    "name": "eip712_hash"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressNoOptional expected signer
signatureNoOptional 65-byte or 64-byte signature to recover the signer
typedDataYesThe eth_signTypedData_v4 payload: {types, primaryType, domain, message} (EIP712Domain type optional, inferred from domain keys)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/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 openWorld, yet the description still adds real operational context: POST JSON body, an x402 pay-per-call cost of $0.003 USDC on Base or Solana, an alternate HTTPS endpoint, and the side effect that a supplied signature triggers signer recovery and comparison against the expected address. It stops short of describing error or mismatch behavior (e.g. what is returned when the recovered signer differs from address).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded well, but the return fields are effectively listed twice — once in prose ('encodeType, typeHash, domain separator, struct hash and the final digest') and again as 'Returns JSON with: primaryType, encodeType, typeHash...'. The pricing and endpoint sentences are bulky but earn their place, so the main waste is the duplicated output enumeration.

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?

There is no output schema, and the description compensates by enumerating the returned JSON keys including domain and signer. With a nested typedData object and only three parameters, it supplies enough about payload shape, payment, and signer recovery for an agent to invoke the tool 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 coverage is 100%, so the baseline is 3, but the description earns above baseline by explaining the relationship between address and signature — the signature recovers the signer and the recovered address is compared to the expected one. It also clarifies that typedData is the eth_signTypedData_v4 payload with an inferable EIP712Domain, matching the schema note.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening clause names a specific verb and resource: EIP-712 typed-data hashing plus optional signature recovery, and enumerates exactly what is produced (encodeType, typeHash, domainSeparator, structHash, digest). It is clearly narrower than a generic hashing tool, but it never names or contrasts a sibling (e.g. hash_encode), so differentiation is left implicit.

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 implied rather than stated: the mention of eth_signTypedData_v4 payloads and of summarising ERC-2612/EIP-3009/Permit2 payloads tells an agent this is for inspecting typed-data before signing. There is no explicit when-to-use vs when-not, and no statement of what to do when no signature is supplied beyond the optional-parameter phrasing.

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