Skip to main content
Glama

Signature Check

signature_check
Read-onlyIdempotent

Check an EIP-712 signature request before an agent signs it: EIP-3009 (x402 payments), x402 exact payments over Permit2, EIP-2612 Permit and Permit2. Checks the chain, the token domain, payTo and amount, the spender, unlimited amounts and long validity. Returns ALLOW, REVIEW or BLOCK bound to the EIP-712 digest. Unknown typed data is REVIEW. An ALLOW is signed by a KushBitx key (signedVerdict, 60 seconds). Paid tool: 0.003 USDC per call on Base via x402 (exact scheme). An unpaid call returns the payment requirement and charges nothing. Sign only if verdict is ALLOW, before expiresAt, for the same signer, and the typed data you sign is exactly the one you sent (same typedDataDigest, chainId 8453 in the request and in typedData.domain). In code: canSignTypedData(report, { chainId, signer, typedData }) from @kushbitx/sdk.

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": {
      "chainId": "<chainId>",
      "signer": "<signer>",
      "typedData": "<typedData>"
    },
    "name": "signature_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
signerYes
chainIdYes
typedDataYesThe exact EIP-712 object the agent is asked to sign: domain, types, primaryType, message.
expectedPayToNoEIP-3009 or x402 exact over Permit2: who must be paid.
expectedAmountNoEIP-3009 or x402 exact over Permit2: the exact amount in atomic units.
expectedSpenderNoPermit and Permit2: who may spend.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / expectedAmount / description
      Previous value: -"EIP-3009: the exact amount in atomic units."New value: +"EIP-3009 or x402 exact over Permit2: the exact amount in atomic units."
    • changedInput schema / properties / expectedPayTo / description
      Previous value: -"EIP-3009: who must be paid."New value: +"EIP-3009 or x402 exact over Permit2: who must be paid."
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say read-only/idempotent/open-world; the description adds the real behavioral layer: the ALLOW/REVIEW/BLOCK verdict model, that unknown typed data defaults to REVIEW, that ALLOW is counter-signed with a 60-second expiry, and that the verdict is bound to the EIP-712 digest. It also discloses cost and payment mechanics (0.003 USDC on Base via x402 exact, unpaid calls return the payment requirement and charge nothing), which no annotation conveys.

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?

Dense and front-loaded: purpose first, then checks, then verdict semantics, then payment terms, then the sign-time conditions. The trailing SDK snippet ('canSignTypedData(...)') is useful but the longest single clause and slightly compresses readability. Little waste overall.

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, so the description carries the return contract itself, and it does: the three verdict values, the digest binding, signedVerdict with a 60-second lifetime, and the unpaid-call payment requirement. For a nested-typed-data, paid, pre-signature gate this is enough for an agent to call it and act on the result 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?

With 67% schema coverage, the description compensates by explaining what each expected* parameter is used to verify: the chain, token domain, payTo and amount, the spender, unlimited amounts and long validity — and which schemes (EIP-3009/x402 exact, Permit/Permit2) each check applies to. It does not restate the atomic-unit or address formats, leaving that to the schema, which is the right division.

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 ('Check an EIP-712 signature request') and enumerates the exact schemes covered: EIP-3009/x402 payments, Permit2 exact, EIP-2612 Permit and Permit2. An agent can distinguish this from generic preflight/quick_check siblings because the description names the typed-data standards and the pre-signature moment.

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 explicit timing ('before an agent signs it') and a hard gating rule for acting on the result ('Sign only if verdict is ALLOW, before expiresAt, for the same signer, and the typed data you sign is exactly the one you sent'). It does not name sibling alternatives such as quick_check or preflight to route between them, which keeps it 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