Skip to main content
Glama

x402_safe_tx

Simulate and execute allowlisted EVM transactions on Base L2 by verifying spending caps, blocking dangerous selectors, and checking contract allowlists before signing.

Instructions

Simulate and execute an allowlisted EVM transaction on Base L2. Verifies against spending caps, blocks dangerous selectors (unlimited approvals, drainers), and checks contract allowlists before signing.

Input Schema

NameRequiredDescriptionDefault
toYesDestination contract or recipient address (e.g., 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913)
dataNoRaw EVM bytecode calldata (optional, default: 0x)
valueNoNative ETH value in Wei to send (optional, default: 0)
amountUsdcNoUSDC token amount involved in transaction (for spending cap evaluation, e.g., 0.05)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.3

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden, and it does disclose real safety behavior: spending-cap verification, blocking of dangerous selectors such as unlimited approvals and drainers, and contract allowlist checks before signing. However, it omits critical execution semantics for a fund-moving tool — whether the transaction is actually broadcast, what a rejection response looks like, whether the simulate step always precedes execution, and whether the action is irreversible once sent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences with the action and chain front-loaded and the safety mechanisms following immediately. Every clause carries information; there is no filler or restatement of the name.

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 tool that signs and submits on-chain transactions with zero annotations and no output schema, the description adequately covers the guardrails but leaves the agent without the operational facts it needs: what a successful call returns, what failures look like, and how simulation is triggered separately from execution. The missing dry-run story is the most consequential gap given the description's own wording.

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%, so all four parameters including the optional data, value, and amountUsdc fields are already documented in the schema, which sets the baseline at 3. The description adds indirect meaning by explaining that spending caps are evaluated and dangerous selectors are screened, which contextualizes why amountUsdc and data exist, but it stops short of stating that amountUsdc is the value matched against the cap.

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 pair and resource — "Simulate and execute an allowlisted EVM transaction on Base L2" — so the agent knows exactly what the tool acts on and on which chain. It does not explicitly contrast itself with siblings like x402_fetch or x402_get_budget, but those are clearly non-transactional so the separation is evident from the description alone.

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?

There is no guidance on when to reach for this tool versus alternatives, nor any prerequisites such as whether the destination must already be allowlisted or whether a prior x402_get_budget check is expected. Most importantly, the description says "Simulate and execute" but the schema has no mode or dry-run parameter, so the agent is given no way to know how to request simulation versus live execution.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.