Skip to main content
Glama

Machine Utility Foundry (x402 + ICP Trust & Safety Oracles)

guard_evm_preflight_base

Read-onlyIdempotent

[x402 Paid: $0.02 Base USDC] Simulate a Base Mainnet EVM transaction via fail-closed eth_call and eth_getCode to block unlimited ERC-20 approvals, Permit2/EIP-3009 signature drains, and counterfeit USDC contracts.

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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "guard_evm_preflight_base"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesTarget contract or recipient 0x EVM address on Base Mainnet.
dataNo0x-prefixed even-length hex calldata to decode and simulate (default '0x').
fromYesSender 0x EVM wallet address on Base Mainnet (eip155:8453).
valueWeiNoNative ETH value in decimal wei string (default '0').
runSimulationNoWhether to execute live Base Mainnet eth_getCode and eth_call RPC simulation (default true).
maxErc20AmountAtomicNoOptional non-negative integer string capping maximum allowed ERC-20 token transfer/approval in atomic units.
expectOfficialBaseUsdcNoWhen true, denies execution unless `to` matches official Base USDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913).

Output Schema

NameRequiredDescriptionDefault
networkYes
decisionYes
findingsYes
decodedCallYes
onChainChecksYes
evaluatedAtUtcYes
preflightSha256Yes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/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 description is not carrying the safety profile alone. It still adds genuine context the annotations lack: a paid x402 cost of $0.02 Base USDC, fail-closed semantics, the specific RPC calls issued, and the attack patterns screened for. It does not describe denial/error surface or latency, which keeps it short of a 5.

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 with the paid-cost tag first and zero filler; every clause (simulation method, fail-closed posture, threat list) contributes. It is dense enough that a reader must parse carefully, but nothing is redundant.

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?

With an output schema present, return values need no explanation, and all 7 parameters are fully covered by the schema. The description covers cost, mechanism, and intent for a fairly complex tool; only the denial/failure surface and the significance of runSimulation=false are left implicit.

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 every parameter (including maxErc20AmountAtomic and expectOfficialBaseUsdc) is already documented in the schema. The description contextualizes why those guards exist but adds no format, default, or constraint detail beyond what the schema states, so the baseline of 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 (simulate) and resource (Base Mainnet EVM transaction), plus the enforcement mechanism (fail-closed eth_call/eth_getCode) and the exact threat classes blocked (unlimited ERC-20 approvals, Permit2/EIP-3009 drains, counterfeit USDC). An agent can distinguish this preflight gate from the ICP attestation and x402 reputation siblings without opening any schema.

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?

The framing as a 'preflight safety gate' implies it should be run before signing/submitting a transaction, but the description never states that condition explicitly, nor does it name an alternative tool or say when this check is unnecessary. Usage is inferable rather than directed.

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