Skip to main content
Glama

chain_safe_tx_hash

Read-only

Safe multisig transaction hash + signing risk check — Compute the exact Safe (Gnosis Safe) transaction hashes an owner is asked to sign - domain hash, message hash and safeTxHash - so a hardware-wallet screen or Safe UI can be verified independently before signing (the Bybit-hack lesson). Reads the Safe's version, current nonce and threshold live on Ethereum, Base, Arbitrum, Optimism or Polygon and uses the matching EIP-712 scheme (pre-1.3.0 domain without chainId, pre-1.0.0 dataGas). Flags risk LOW/MEDIUM/HIGH/CRITICAL: DELEGATECALL to a non-MultiSend contract, self-calls that change owners/threshold/modules/guard/singleton, unlimited approvals, setApprovalForAll, gas refunds, nonce already used or queued; decodes multiSend batches, ERC-20 transfer/approve. Required: safe= (Safe address), to= (call target). Optional: chain= (ethereum default, base, arbitrum, optimism, polygon), value= (wei), data= (0x calldata), operation= (0 call / 1 delegatecall), nonce= (default: the Safe's current nonce), safe_tx_gas=, base_gas=, gas_price=, gas_token=, refund_receiver=, version= (lets you hash for an undeployed/counterfactual Safe). Returns EIP-712 typedData too. Hashes cross-checked against the Safe contract's own getTransactionHash(). 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": {
      "safe": "<safe>",
      "to": "<to>"
    },
    "name": "chain_safe_tx_hash"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYes0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
safeYes0x849D52316331967b6fF1198e5E32A0eB168D039d

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description goes well beyond that: it explains cross-chain live reads on Ethereum/Base/Arbitrum/Optimism/Polygon, version-dependent EIP-712 schemes (pre-1.3.0 without chainId, pre-1.0.0 dataGas), the LOW/MEDIUM/HIGH/CRITICAL risk taxonomy with concrete triggers (DELEGATECALL to non-MultiSend, owner/threshold/module changes, unlimited approvals, used/queued nonce), cross-checking against getTransactionHash(), and even the paid nature ($0.004 USDC via x402). This is unusually complete behavioral disclosure for a read-only tool.

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 purpose and the signing-verification rationale before any parameter detail, and nearly every clause carries information. It is a single long dense paragraph, though; a short bulleted parameter list would make the ~10 optional arguments far easier to scan without adding words.

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 must carry the return burden and it does: domain hash, message hash, safeTxHash and EIP-712 typedData are named, along with the risk verdict. With cross-chain reads, version-dependent hashing and a paid call, essentially everything an agent needs to invoke this correctly (required args, defaults, chain options, cost) is present.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema only documents two fields, and its property descriptions are bare example addresses that say nothing about meaning. The description compensates heavily: safe= and to= roles, chain= with default and allowed values, value= in wei, data= as 0x calldata, operation= as 0 call / 1 delegatecall, nonce= defaulting to the Safe's current nonce, gas fields, and version= enabling hashing for a counterfactual Safe. Note the description documents optional parameters absent from the shown schema — rich guidance, but the two surfaces are out of sync.

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+resource pair: compute the exact Safe (Gnosis Safe) transaction hashes (domain hash, message hash, safeTxHash) an owner is asked to sign, plus a signing risk check. That distinguishes it cleanly from generic transaction/read tools in the sibling list (chain_tx, chain_call, security_hash) — an agent can tell it computes EIP-712 Safe hashes rather than broadcasting or decoding arbitrary calldata.

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 a clear triggering context: verify a hardware-wallet screen or Safe UI independently before signing, framed as the 'Bybit-hack lesson'. It also states read scope (version, nonce, threshold read live on five chains) and defaults (ethereum, current nonce), so the agent knows when it applies. It stops short of naming a sibling alternative or an explicit when-not condition.

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