Skip to main content
Glama

ScorpTech x402 Tools

Evm Verify Signature

evm_verify_signature
Read-onlyIdempotent

Verify an Ethereum signature offline: recovers the signer address (secp256k1 ecrecover) from an EIP-191 personal_sign message (UTF-8 or hex) or a raw 32-byte digest (e.g. an EIP-712 hash), compares it with an expected address, flags malleable high-s signatures, accepts 65-byte r,s,v and 64-byte EIP-2098 compact signatures, and parses Sign-In with Ethereum (EIP-4361) messages (domain, nonce, chain, expiry). For smart-contract wallets (EIP-1271) recovery does not apply. Returns JSON with: signer, signedDigest, scheme, signature, publicKey, expected, match, warnings. Price: $0.003 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/evm-verify-signature

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": {
      "signature": "<signature>"
    },
    "name": "evm_verify_signature"
  }
}

Input Schema

NameRequiredDescriptionDefault
hashNoRaw 32-byte digest that was signed (no prefix added), e.g. an EIP-712 digest
addressNoExpected signer, to get match true/false
messageNoSigned message for personal_sign (EIP-191); give message or hash
signatureYes0x signature: 65 bytes r,s,v or 64 bytes EIP-2098
messageEncodingNoHow to read message: UTF-8 text or 0x-hex bytesutf8

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the bar is low, yet the description still adds substantial behavior: malleable high-s signature flagging, supported signature encodings (65-byte r,s,v vs. 64-byte EIP-2098), SIWE/EIP-4361 parsing, per-call pricing, and the returned JSON field set. These are real operational traits an agent could not infer from structured data.

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?

Information is front-loaded — core operation first, exclusions next, return fields and pricing last — with essentially no filler. It loses a point for being a single sprawling sentence whose format and encoding details are harder to scan than a short bulleted structure would be.

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?

With no output schema, the description compensates by enumerating the returned JSON fields (signer, match, warnings, etc.) and covering pricing and an HTTPS alternative endpoint, which is more than most tools of this complexity provide. It could be fuller on failure modes (what happens with malformed signatures or mismatched v values), which is the remaining gap.

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 baseline is 3, but the description adds real meaning: 'message' is personal_sign input while 'hash' is a raw 32-byte digest with no prefix, messageEncoding selects UTF-8 vs. hex bytes, and the signature may be either 65-byte or 64-byte compact. It reinforces the mutual exclusivity of message and hash that the schema only hints at.

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?

Opens with a specific verb and resource ('Verify an Ethereum signature offline') and immediately scopes it to secp256k1 ecrecover over EIP-191 messages or raw digests, which separates it from the chain-reading evm_* siblings. An agent can tell exactly what operation is performed 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?

The description establishes clear conditions: offline verification, message vs. hash inputs, and an explicit exclusion ('For smart-contract wallets (EIP-1271) recovery does not apply'), which tells the agent when this tool will give a wrong answer. It stops short of naming a specific alternative for EIP-1271 or on-chain lookups, so it is clear but not fully 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