Skip to main content
Glama

Should I sign this? Plain-words check of a Base transaction or signature request, with red flags

tx_preflight
Read-only

Pre-signing check for Base. Send a transaction (to, data, value, from) or a typed-data signature request and get what it does in plain words plus red flags: unlimited or wallet-targeted approvals, NFT approve-all, off-chain permits, sends to a token's own contract or the dead address, OFAC or scam-listed counterparties, risky tokens, and calls that would fail (simulated from your wallet). Verdict ok, caution, danger or block. Not charged for invalid input. Paid via x402; see list_prices.

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": "tx_preflight"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoTransaction destination 0x address (a contract or wallet). Omit when sending typedData.
dataNoOptional: transaction calldata, 0x hex.
fromNoOptional: the signing wallet 0x address. Lets the check simulate the call and compare balances.
valueNoOptional: ETH to send, in wei (decimal or 0x hex). Default 0.
typedDataNoAlternative to a transaction: the EIP-712 signature request (domain, primaryType, message) a site asks you to sign, as an object or JSON string.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations declare readOnlyHint=true, openWorldHint=true, and the description is consistent: it is a simulation/analysis, no state change. Beyond annotations it adds substantive context: the verdict taxonomy (ok/caution/danger/block), that failure is simulated from the caller's wallet, and the x402 pricing model with free invalid input. Missing only details on latency, caching, or what the red-flag payload 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 core purpose and scope ('Pre-signing check for Base'), then the input modes, then the red-flag list, then the verdict and pricing. Dense but every clause informs; the long red-flag list is the one part that could be trimmed slightly.

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?

For a complex 5-param tool with a nested object and no output schema, the description covers what it returns (plain-words behavior, red flags, verdict) and the pricing model well. It leaves slight ambiguity about overlap with sibling safety tools, but nothing needed to call it correctly is absent.

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 description coverage is 100%, so all five parameters including the nested typedData object are documented in the schema itself. The description restates the top-level fields (to, data, value, from) and mentions typed-data as an alternative input, but adds no semantics beyond the schema, so baseline 3 applies.

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+resource: a pre-signing check for Base transactions or EIP-712 typed-data signatures, returning plain-words behavior plus red flags. The enumerated detection categories (unlimited approvals, NFT approve-all, OFAC/scam counterparties, failing calls) make it clearly distinct from siblings like chain_tx, token_safety_check, or wallet_sanctions_check.

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 phrase 'Pre-signing check' plus 'Send a transaction... or a typed-data signature request' tells the agent the context of use and the two input modes. It also names list_prices as the pricing reference. It does not state when to prefer this over overlapping tools (token_safety_check, wallet_sanctions_check) or exclusions, so it stops 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