Skip to main content
Glama

wallet_sign

Sign a plain message with EIP-191 personal_sign for SIWE and attestations, or sign EIP-712 typed data for permits, DEX orders, and DeFi protocols using your wallet.

Instructions

Sign a message or typed data with your wallet.

Kinds:

  • "message" (default): EIP-191 personal_sign — for SIWE, attestations, offchain protocols

  • "typedData": EIP-712 structured data — for permits, DEX orders, DeFi protocols

Examples:

Personal sign:

{"message": "Sign in to Example.com at 2024-01-01T00:00:00Z"}

EIP-712 Permit:

{
  "kind": "typedData",
  "domain": {"name": "USDC", "version": "2", "chainId": 8453, "verifyingContract": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"},
  "types": {"Permit": [{"name": "owner", "type": "address"}, {"name": "spender", "type": "address"}, {"name": "value", "type": "uint256"}, {"name": "nonce", "type": "uint256"}, {"name": "deadline", "type": "uint256"}]},
  "primaryType": "Permit",
  "value": {"owner": "0x...", "spender": "0x...", "value": "1000000", "nonce": "0", "deadline": "1735689600"}
}

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "wallet_sign"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoSigning kind. Defaults to "message".
typesNoEIP-712 type definitions, excluding EIP712Domain (for kind:"typedData")
valueNoThe structured data to sign (for kind:"typedData")
domainNoEIP-712 domain (for kind:"typedData")
messageNoThe message to sign (plain text, for kind:"message")
primaryTypeNoThe primary type to sign (for kind:"typedData")

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full disclosure burden; it does add useful protocol-level context (EIP-191 personal_sign vs EIP-712 structured signing) that structured fields don't convey. However, it never states that signing triggers a user/wallet approval prompt, whether authentication or reauth is required, or what the tool returns, which are the behaviors an agent most needs to plan around.

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?

Purpose and mode selection are front-loaded before any examples, so an agent gets the decision-relevant content first. The two JSON examples are long but justified for a deeply nested 6-parameter tool, though the personal_sign example is nearly redundant with the one-line sentence.

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?

For a 6-parameter tool with nested objects, no annotations, and no output schema, the description covers input shape well but leaves the outcome unspecified — no mention of the returned signature, error cases, or the approval flow. That gap is material for an agent that must act on the result.

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 description coverage is 100%, so the baseline is 3, but the description earns more by showing how domain, types, primaryType, and value fit together in a worked EIP-712 example — a relationship the flat schema does not make obvious. The kind default ('message') is also restated with intent rather than left to the enum.

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 sentence gives a specific verb ('Sign') and resource ('a message or typed data') and immediately disambiguates the two modes via the Kinds section. It doesn't contrast itself with siblings such as wallet_send or wallet_executePrepared, so an agent must infer that signing is not the same as submitting a transaction.

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 Kinds section maps each mode to concrete use cases ('SIWE, attestations, offchain protocols' vs 'permits, DEX orders, DeFi protocols'), which is genuine when-to-use guidance for choosing between the two variants. It stops short of stating when to reach for this tool at all versus the sibling send/execute tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.