Skip to main content
Glama

Should I sign this? Check a Base transaction or signature before your agent signs it, with red flags

tx_preflight
Read-only

Should I sign this? 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.3/5.0
Behavior5/5

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

Even though annotations already declare readOnlyHint=true and openWorldHint=true, the description adds substantial behavior detail: the specific red-flag categories it detects, that it simulates the call from your wallet, that it returns a verdict from ok through block, and that invalid input is not charged. It also discloses the payment model (x402) and where to find pricing, which annotations cannot convey.

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 purpose and verdict output appear first, and the enumerated red flags are dense but useful. The parenthetical parameter list and the pricing note add some clutter, but no sentence is purely filler; the description is long yet justified by what it must convey.

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 5-parameter, nested-object tool with no output schema, the description covers the input modes, what is analyzed, the verdict scale, and the cost model. It is weaker on the shape of the response: the field names beyond 'verdict' and 'red flags' are not described, so an agent knows the outcome but not how to parse it in detail.

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%, and the schema already spells out each field, including the typedData alternative and that `from` enables simulation and balance comparison. The description only restates the parameter names in a parenthetical and adds no syntax, formatting, or precedence rules beyond what the schema provides.

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?

The description names a specific verb and resource: a pre-signing check of a Base transaction or EIP-712 typed-data request that returns a plain-language explanation, red flags, and a verdict (ok/caution/danger/block). It is clearly distinguishable from siblings such as token_safety_check or wallet_sanctions_check, because those check one asset or one address, while this tool evaluates a whole transaction or signature request.

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 trigger is explicit and front-loaded: use this before your agent signs, either for a transaction or for a typed-data signature request, and the description gives the alternative input modes. It does not explicitly point to complementary siblings, such as honeypot_check or wallet_sanctions_check, or state when not to use it; instead, it leaves the boundary between this tool and those single-purpose checkers to inference.

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