Skip to main content
Glama

PreFlight402 — Web3 Risk & x402 Audit

All-in-One Trade Execution Preflight & Slippage Gate ($0.025 USDC)

trade_preflight
Read-onlyIdempotent

Paid via x402 ($0.025 USDC on Base): combines token safety, honeypot simulation, constant-product price impact, swap gas USD fee, oracle deviation, and GO/CAUTION/BLOCK verdict.

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": {
      "address": "<address>"
    },
    "name": "trade_preflight"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNoEVM chain slug (defaults to base).base
addressYes0x-prefixed EVM token contract address.
amountUsdNoIntended trade size in USD (defaults to 1000).
maxSlippagePctNoMaximum allowed price impact percentage (greater than 0 and less than 50, defaults to 2.0).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and open-world, so the safety profile is handled. The description does add genuinely non-schema behavior: it is a paid call via x402 at $0.025 USDC on Base, which an agent must know before invoking. However, it says nothing about what happens on payment failure, whether the fee is charged per call or per successful verdict, latency, or caching, which are the material operational risks for a paid gate.

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?

A single sentence that front-loads the price and payment rail, then enumerates capabilities — no filler or repetition. It is dense and jargon-heavy ('constant-product price impact') but every clause carries information.

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?

With no output schema, the description carries the burden of describing returns, and it only gives the three verdict labels without saying what accompanies them (per-check scores, price impact value, gas fee figure, deviation amount). For a paid, multi-check gate this leaves an agent unsure what it is actually buying beyond the verdict.

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 chain, address, amountUsd, and maxSlippagePct are already fully documented with defaults and bounds. The description adds no semantics beyond the schema — notably it never explains how amountUsd and maxSlippagePct feed the price-impact calculation or the GO/CAUTION/BLOCK threshold, which would have been the one place it could add value.

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 names the concrete checks performed (token safety, honeypot simulation, price impact, gas USD fee, oracle deviation) and the output shape (GO/CAUTION/BLOCK verdict), so an agent knows exactly what this compound tool produces. It stops short of differentiating itself from siblings like token_safety or preflight_sample, leaving the agent to infer why it would pick this composite over the single-purpose tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied by the word 'preflight' and the 'verdict' framing — nothing states when to call this versus token_safety, preflight_sample, or preflight_catalog. No prerequisites, exclusions, or alternative-routing guidance are given despite several closely related siblings existing.

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.