Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as Machine Utility Foundry (x402 + ICP Trust & Safety Oracles). If you published it, claim ownership there.

guard_evm_preflight_base

Read-onlyIdempotent

[x402 Paid: $0.01 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. Changed10 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / data / description
      Added value: +"0x-prefixed even-length hex calldata to decode and simulate (default '0x')."
    • addedInput schema / properties / expectOfficialBaseUsdc / description
      Added value: +"When true, denies execution unless `to` matches official Base USDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913)."
    • addedInput schema / properties / from / description
      Added value: +"Sender 0x EVM wallet address on Base Mainnet (eip155:8453)."
    • addedInput schema / properties / from / pattern
      Added value: +"^0x[a-fA-F0-9]{40}$"
    • addedInput schema / properties / maxErc20AmountAtomic / description
      Added value: +"Optional non-negative integer string capping maximum allowed ERC-20 token transfer/approval in atomic units."
    • addedInput schema / properties / runSimulation / description
      Added value: +"Whether to execute live Base Mainnet eth_getCode and eth_call RPC simulation (default true)."
    • addedInput schema / properties / to / description
      Added value: +"Target contract or recipient 0x EVM address on Base Mainnet."
    • addedInput schema / properties / to / pattern
      Added value: +"^0x[a-fA-F0-9]{40}$"
    • addedInput schema / properties / valueWei / description
      Added value: +"Native ETH value in decimal wei string (default '0')."
  2. Changed2 schema fields changed
    • addedInput schema / properties / runSimulation
      Added value: +{
      +  "type": "boolean"
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "decision": {
      +      "enum": [
      +        "ALLOW",
      +        "DENY"
      +      ],
      +      "type": "string"
      +    },
      +    "decodedCall": {
      +      "properties": {
      +        "amountAtomic": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "selector": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "signature": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "spenderOrRecipient": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "required": [
      +        "selector",
      +        "signature",
      +        "spenderOrRecipient",
      +        "amountAtomic"
      +      ],
      +      "type": "object"
      +    },
      +    "evaluatedAtUtc": {
      +      "format": "date-time",
      +      "type": "string"
      +    },
      +    "findings": {
      +      "items": {
      +        "properties": {
      +          "code": {
      +            "type": "string"
      +          },
      +          "message": {
      +            "type": "string"
      +          },
      +          "severity": {
      +            "enum": [
      +              "CRITICAL",
      +              "HIGH",
      +              "WARN"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "code",
      +          "severity",
      +          "message"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "network": {
      +      "enum": [
      +        "eip155:8453"
      +      ],
      +      "type": "string"
      +    },
      +    "onChainChecks": {
      +      "properties": {
      +        "revertReason": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "simulationRan": {
      +          "type": "boolean"
      +        },
      +        "simulationSucceeded": {
      +          "type": [
      +            "boolean",
      +            "null"
      +          ]
      +        },
      +        "targetIsContract": {
      +          "type": [
      +            "boolean",
      +            "null"
      +          ]
      +        }
      +      },
      +      "required": [
      +        "targetIsContract",
      +        "simulationRan",
      +        "simulationSucceeded",
      +        "revertReason"
      +      ],
      +      "type": "object"
      +    },
      +    "preflightSha256": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "decision",
      +    "network",
      +    "decodedCall",
      +    "onChainChecks",
      +    "findings",
      +    "preflightSha256",
      +    "evaluatedAtUtc"
      +  ],
      +  "type": "object"
      +}
  3. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is partly covered. The description still adds real value beyond them: it discloses the paid x402 cost ($0.01 Base USDC), the outbound RPC calls performed, and fail-closed denial semantics on failure. It does not describe what a denial result contains, but the output schema covers return values.

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 dense sentence preceded by a bracketed pricing tag, with the core action front-loaded and every clause carrying information the agent needs. It is tight and waste-free, though the packed enumeration of three threat classes makes it slightly harder to scan than a two-sentence split would be.

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?

The tool is a 7-parameter safety gate with an output schema and full annotation coverage, so the description does not need to explain return values. It supplies the network (Base Mainnet), the mechanism (fail-closed eth_call/eth_getCode), and the cost, which is enough to call and interpret it. Only the exact denial/result surface is unspecified, and the output schema handles that.

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 is already documented with patterns, defaults, and semantics. The description adds no parameter-level detail beyond what the schema provides — the connection between 'unlimited ERC-20 approvals' and maxErc20AmountAtomic, or 'counterfeit USDC' and expectOfficialBaseUsdc, is left for the agent to infer. Baseline 3 is appropriate.

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 a specific verb and resource — simulate a Base Mainnet EVM transaction via eth_call and eth_getCode — and even enumerates the threat classes it blocks (unlimited ERC-20 approvals, Permit2/EIP-3009 drains, counterfeit USDC). That is far more specific than a tautology. It loses a point only because it never contrasts itself with any of the sibling tools an agent might otherwise pick.

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 risk list implies the context in which to call it (before granting an approval or signing a token authorization), and 'fail-closed' signals the safety posture. However, there is no explicit when-to-use/when-not-to-use statement and no named alternative or prerequisite (e.g., that it requires an x402 payment). Usage is inferable but not stated.

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