Skip to main content
Glama

evm_swap_execute

evm_swap_execute

Broadcasts a signed EVM transaction (a swap built by /evm/swap/order, or any other) on Base, Ethereum, Arbitrum, Optimism, Polygon, BSC or Avalanche through a public RPC and waits up to 25 seconds for the receipt. Returns the hash, an explorer link and success, failed or pending with block number and gas used. The wallet keeps its keys; nothing is custodied. Price: $0.002 USDC per call (x402).

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": {
      "signed_transaction": "<signed_transaction>"
    },
    "name": "evm_swap_execute"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNobase (default), ethereum, arbitrum, optimism, polygon, bsc or avalanche
wait_secondsNoSeconds to wait for the receipt, 0-25 (default 15)
signed_transactionYes0x-prefixed signed raw transaction

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the single readOnlyHint=false annotation, it discloses the wait budget (up to 25 seconds), the three terminal states (success, failed, pending), the returned fields (hash, explorer link, block number, gas used), the non-custodial key model, and a per-call price of $0.002 USDC via x402. Those are exactly the facts an agent needs before spending money and blocking on a broadcast.

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?

Three tight sentences, front-loaded with the action and chain scope, then the outcome contract, then the trust and cost terms. Every clause carries information an agent would otherwise have to guess at; there is no restatement of the name or filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, yet the description fully specifies the return shape (hash, explorer link, status, block number, gas used) and the pending case. Combined with the disclosed cost, timeout, and custody model, nothing material is missing for a one-required-parameter broadcast tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema baseline of 3 is met; the description adds meaning on top by explaining that signed_transaction is a signed raw transaction produced upstream ('built by /evm/swap/order') and by reinforcing the 25-second cap on wait_seconds. The only shortfall is that it does not clarify the default wait (15s) versus the maximum, which is left to the schema.

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 and resource — broadcasts a signed EVM transaction — and immediately scopes it ('a swap built by /evm/swap/order, or any other') plus the exact chain set and the receipt-wait window. An agent can distinguish this from the sibling evm_swap_order (which builds rather than broadcasts) 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 Guidelines4/5

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

Gives a clear prerequisite and input source: the signed transaction may come from /evm/swap/order or be any other signed raw transaction. It does not state exclusions or explicitly route to solana_swap_execute for non-EVM chains, but the EVM chain enumeration makes the boundary effectively unambiguous.

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.