Skip to main content
Glama

preflight

Read-onlyIdempotent

Is this action safe? Call once before any on-chain action: send the transactions, signature request, x402 payment request, recipients, and/or tokens the agent is about to act on, and get back one proceed/caution/avoid verdict. Transactions are simulated (reverts, assets out, approvals, counterparty screening), signatures decoded and checked for permit phishing, recipients screened against sanctions and scam lists, and tokens rug-checked, including tokens the simulation shows the wallet receiving. Returns one proceed / caution / avoid verdict with reasons. Ethereum, Base, Arbitrum, Optimism, Polygon, BNB Chain, Avalanche, Linea, Unichain, Sonic and HyperEVM. Free over MCP for 10 calls per day; beyond that the tool returns the pay-per-call x402 endpoint and its price.

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

Input Schema

NameRequiredDescriptionDefault
fromNoWallet taking the action; required with transactions
chainNoChain of the action (defaults to the typed data chainId, else base)
tokensNoTokens about to be bought; each is rug-checked
typedDataNoEIP-712 typed data about to be signed
recipientsNoAddresses about to receive funds or permissions
transactionsNoTransactions about to be signed, in order
expectedMaxUsdNo
paymentRequiredNox402 PaymentRequired about to be paid

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / chain / enum
      Previous value: -[
      -  "ethereum",
      -  "base",
      -  "arbitrum",
      -  "optimism",
      -  "polygon",
      -  "bsc",
      -  "avalanche",
      -  "linea",
      -  "unichain",
      -  "sonic"
      -]New value: +[
      +  "ethereum",
      +  "base",
      +  "arbitrum",
      +  "optimism",
      +  "polygon",
      +  "bsc",
      +  "avalanche",
      +  "linea",
      +  "unichain",
      +  "sonic",
      +  "hyperevm"
      +]
  2. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, non-destructive and open-world, and the description adds substantial context beyond that: what is simulated (reverts, assets out, approvals), what is decoded (permit phishing), chains covered, the three-tier verdict, and the free-tier limit of 10 calls per day before it returns an x402 pay-per-call endpoint and price. That rate-limit and fallback behavior is exactly the operational detail 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?

Front-loaded with the decision question and the imperative to call it once, then dense supporting detail. The middle sentence is long and clause-heavy, but each clause carries distinct behavioral information rather than filler.

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?

For an eight-parameter, nested-object tool with no output schema, the description covers the return contract (one proceed/caution/avoid verdict with reasons), supported chains, and the free-tier boundary. Nothing critical for correct invocation is missing.

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 coverage is already 88%, so the bar is low, but the description earns credit by explaining what happens to each input category: transactions are simulated, typed data is checked for permit phishing, recipients are screened against sanctions and scam lists, and tokens are rug-checked. It also clarifies the non-obvious 'including tokens the simulation shows the wallet receiving', though expectedMaxUsd (the one undocumented parameter) is not explained anywhere.

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 description opens with a concrete question ('Is this action safe?') and states the resource: a preflight verdict over transactions, typed data, x402 payments, recipients and tokens. The all-in-one verdict framing implicitly separates it from narrower siblings such as tx_simulate, address_check or signature_check, but none of those siblings is named explicitly.

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?

'Call once before any on-chain action' gives a clear, actionable trigger, and it enumerates which inputs belong together in one call. It stops short of naming alternatives (tx_simulate, wallet_safety, approval_scan) or stating when not to use it, so the agent must infer the routing.

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.