Skip to main content
Glama

chain_sign_check

Read-only

Signature request risk check (EIP-712 / personal_sign) — Wallet-drainer firewall for agents: paste the exact signing request (eth_signTypedData_v4 JSON, or a personal_sign message/hex) as data= and get SAFE / REVIEW / DANGER before signing. Recognizes ERC-20 Permit (EIP-2612) and DAI permits, Uniswap Permit2 (PermitSingle/Batch, signature transfers, witness orders), Seaport listings (flags you-receive-nothing drainer orders), EIP-3009 payment authorizations (x402), Safe transactions (DELEGATECALL, owner/module changes, approvals), vote delegation, SIWE logins and blind 32-byte hash signing. Flags unlimited amounts, unknown spenders, long deadlines, chain mismatch and signer mismatch, labels well-known contracts, and returns the exact EIP-712 / EIP-191 digest. Optional: chain= (expected network name or id) and owner= (expected signer address). Offline, no on-chain reads. Price: $0.004 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": {
      "data": "<data>"
    },
    "name": "chain_sign_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYes{"types":{"Permit":[{"name":"owner","type":"address"},{"name":"spender","type":"address"},{"name":"value","type":"uint256"},{"name":"nonce","type":"uint256"},{"name":"deadline","type":"uint256"}]},"primaryType":"Permit","domain":{"name":"USD Coin","version":"2","chainId":8453,"verifyingContract":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"},"message":{"owner":"0x1111111111111111111111111111111111111111","spender":"0x2222222222222222222222222222222222222222","value":"115792089237316195423570985008687907853269984665640564039457584007913129639935","nonce":"0","deadline":"1893456000"}}

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare readOnly/destructive/openWorld; the description adds material beyond that: the three-tier verdict vocabulary, the returns-exact-EIP-712/EIP-191-digest behavior, the specific heuristics applied (unlimited amounts, unknown spenders, long deadlines, chain/signer mismatch), the offline constraint, and a concrete price of $0.004 USDC via x402. The paid, offline execution model is exactly the kind of operational fact annotations cannot express.

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 core action, the verdict outcome, and the input contract are front-loaded in the first sentence, and the long format list is dense with genuinely differentiating facts rather than filler. It is one overlong sentence with a trailing price note, so structure could be tighter, but nearly every clause earns its place.

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 correctly compensates by explaining the verdict tiers and the returned digest, plus cost and the offline model. The only incompleteness is the ghost reference to `chain=` and `owner=` optionals that the schema does not expose, leaving the agent unsure whether mismatch-checking is available.

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 100% for the single required `data` parameter and the schema example already shows a full typed-data payload, so the baseline is 3. The description does clarify that `data` accepts either an eth_signTypedData_v4 JSON blob or a personal_sign message/hex, which adds real meaning — but it also advertises optional `chain=` and `owner=` parameters that do not exist in the input schema, creating ambiguity about whether they can be passed.

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 — a risk check of a signature request (EIP-712 / personal_sign) that returns SAFE / REVIEW / DANGER before signing. It enumerates the concrete attack classes it recognizes (Permit, Permit2, Seaport, EIP-3009, Safe, SIWE, blind hashes), which lets an agent separate it from the chain_delegate_check / chain_poisoning_check family 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 invocation context is explicit: paste the exact signing request as data= and get a verdict before signing, offline with no on-chain reads. It does not name a sibling alternative or state when-not to use this tool (e.g., for address-poisoning or delegation checks), so the routing half of the guidance is left to the agent.

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