Skip to main content
Glama

chain_verify_signature

Read-only

Verify an Ethereum signature (EOA + ERC-1271) — Check that a personal_sign / signMessage (EIP-191) signature was made by an address: offline secp256k1 ecrecover, EIP-2098 compact and high-s detection, and ERC-1271 isValidSignature fallback for smart-contract wallets (Safe, Coinbase Smart Wallet) on base, ethereum, arbitrum, optimism or polygon. Required: address, message (exact signed text), signature. Optional: chain (default base, used for ERC-1271), hash (raw 32-byte digest instead of message), encoding=hex (message is 0x bytes). 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": {
      "address": "<address>",
      "message": "<message>",
      "signature": "<signature>"
    },
    "name": "chain_verify_signature"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressYes0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
messageYesHello from Polyform
signatureYes0xff8816dd785456da8b539cf3e0e0ad8175a19fbba29a777e68b951a3b854b43813daf2deb754ab482261466076afe594c93f4f0a701fc94a1b08ccb45d791fbc1c

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/non-destructive, and the description adds real substance on top: offline secp256k1 ecrecover, EIP-2098 compact and high-s rejection, and an ERC-1271 isValidSignature network fallback for Safe/Coinbase Smart Wallet. It also discloses the per-call price and x402 payment path, though it never says what a result looks like.

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?

Front-loaded with the verb and signature scheme, then tight grouped clauses for requirements and options. Dense but nearly every clause adds info; the pricing sentence is last and easy to skip.

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?

No output schema is provided, so the description should say what verification returns (e.g., a boolean and/or recovered signer, and how an ERC-1271 revert is reported) — that gap matters for an agent deciding how to branch on the result. It is otherwise thorough about inputs, chains, and cost.

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 property descriptions are only literal sample values (a hardcoded address, 'Hello from Polyform'), so the description carries the actual meaning: message must be the exact signed text, chain only matters for the ERC-1271 path, hash substitutes a digest for message, encoding=hex changes message interpretation. It notably describes chain/hash/encoding even though those properties are absent from the provided schema.

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 — 'Verify an Ethereum signature (EOA + ERC-1271)' — then narrows the scope to personal_sign/signMessage EIP-191 messages, which implicitly separates it from the SIWE-login sibling. An agent can tell what this does and what message class it applies to 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?

Gives clear preconditions (required address, exact signed text, signature) and conditions that select between modes: use message for EIP-191 text or hash for a raw 32-byte digest, encoding=hex when the message is 0x bytes. It does not name an alternative tool or state when not to use this one, so it falls short of a 5.

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