Skip to main content
Glama

APEX x402 Crypto Trading Bot MCP (15 Tools)

Tx preflight shield

tx_preflight_shield
Read-onlyIdempotent

EVM Pre-Sign Transaction Firewall ($0.02/call): catches unlimited MAX_UINT256 approvals, setApprovalForAll(true) drainers & EOA spenders before signing plus live eth_call & gas estimate across 8 chains.

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_shield"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoTarget contract or recipient 0x address. (example: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913)
dataNo0x calldata hex (or 0x for native value transfer). (example: 0x70a08231000000000000000000000000d8da6bf26964af9d7eed9e03e53415d37aa96045)
fromNoSender/signer 0x address for eth_call simulation. (example: 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045)
chainNoEVM chain (ethereum, base, arbitrum, optimism, polygon, bsc, arc, robinhood). (example: base)
valueNoNative value in wei (decimal or 0x hex, default 0). (example: 0)
paymentNoOptional x402 PAYMENT-SIGNATURE header value (or send _meta["x402/payment"] / X-APEX-PASS).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already establish readOnly, idempotent and openWorld, so the safety profile is covered. The description adds real value beyond them: a $0.02 per-call price, a stated lineup of checks, and live eth_call/gas calls across 8 chains. It says nothing about failure modes, latency, rate limits, or what a flagged versus clean result 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?

A single front-loaded sentence leading with the tool category, then price, then capabilities. Dense but every clause carries information. The parenthetical pricing interrupts the flow slightly, and the closing "live eth_call & gas estimate" is compressed nearly to the point of ambiguity.

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?

For a read-only analyzer with no output schema, the description should hint at the shape of the result (risk verdict, flags, simulation return data, gas number). It lists what is checked but not what an agent receives back, which is the main gap for a preflight tool an agent will chain into a signing decision.

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 coverage is 100%, with every parameter including an example, so the schema does the heavy lifting. The description only reinforces the chain count ("across 8 chains"), which the chain enum already encodes. No extra meaning about interaction between parameters, e.g. whether `from` is required for simulation.

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 gives a concrete verb+resource: pre-sign analysis of an EVM transaction that detects unlimited approvals, setApprovalForAll drainers and EOA spenders, plus eth_call simulation and gas estimation. That is far more specific than the title. It never names or contrasts a sibling (tx_check, mev_sandwich_shield, evm_tx), so an agent must infer differentiation on its own.

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

Usage Guidelines3/5

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

"Pre-Sign" and "before signing" imply the moment of use, which is meaningful context. There is no explicit when-not guidance, no stated alternative for pure simulation versus risk scanning, and no note on whether an unsigned or already-signed tx is acceptable input.

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