Skip to main content
Glama

evm_send_transaction

Broadcast a pre-signed EVM transaction to a specified chain for mempool execution, returning the transaction hash for tracking. Use it after offline signing to submit transfers or contract interactions.

Instructions

Broadcast a signed transaction to the blockchain network for execution.

Submits a pre-signed transaction to the network's mempool for mining/validation. This is a write operation that costs gas. Transaction must be signed offline before calling this tool.

CRITICAL RULES:

  • Transaction MUST be signed before submission (this tool doesn't sign)

  • Requires sufficient gas balance in sender account

  • Transaction is irreversible once confirmed on-chain

  • Returns transaction hash immediately (not final confirmation)

  • Check transaction status after sending to verify success

PARAMETERS:

  • chain: Target EVM chain for broadcast (required)

    • Transaction is chain-specific (cannot broadcast to wrong chain)

    • Gas costs vary dramatically between chains

    • Must match the chainId used during signing

  • signedTransaction: RLP-encoded signed transaction (required)

    • Format: 0x followed by hex-encoded signed transaction bytes

    • Includes signature (v, r, s values)

    • Created using wallet signing tools (ethers, web3, etc.)

    • Example: "0xf86c..." (varies in length)

EXAMPLES: ✅ Send signed transaction: {chain: "polygon", signedTransaction: "0xf86c808504a817c800825208..."}

✅ Broadcast on low-gas chain: {chain: "bsc", signedTransaction: "0xf86d..."}

✅ Execute contract interaction: {chain: "ethereum", signedTransaction: "0xf8ab..."}

❌ Invalid - unsigned transaction: {chain: "polygon", signedTransaction: "0x..."} // Missing signature

❌ Invalid - wrong chain: {chain: "ethereum", signedTransaction: "..."} // Signed for polygon

SUPPORTED EVM CHAINS (7 networks): • ethereum (Sepolia) - EIP-1559 enabled, ~12s blocks, moderate gas costs • polygon (Amoy) - Low fees, fast finality (~2s), layer 2 • avalanche (Fuji C-Chain) - Sub-second finality, dynamic fees • bsc (BNB Testnet) - 3s blocks, low gas costs, Binance ecosystem • arbitrum (Sepolia) - Optimistic rollup, low fees, Ethereum security • base (Sepolia) - Coinbase layer 2, EIP-1559, low fees • worldchain (World Sepolia) - World Network testnet, EIP-1559

CRITICAL GAS CONSIDERATIONS:

  • Ethereum: High gas costs, use gas oracle for timing

  • Polygon/BSC: Very low gas, safe for frequent transactions

  • Arbitrum/Base: L2 optimizations, ~10-50x cheaper than Ethereum

  • Avalanche: Dynamic fees, can spike during congestion

  • Always check gas price before executing transactions

TESTNET TOKENS: All chains use testnet tokens with NO REAL VALUE. Faucets available for all supported networks.

OUTPUT STRUCTURE: • success: Boolean indicating broadcast success • transactionHash: Unique transaction identifier (0x...) • chain: Chain where transaction was broadcast • status: "pending" (broadcasted but not confirmed) • explorerUrl: Block explorer link to track transaction • executionTime: Time taken to broadcast (not confirmation time)

COMMON MISTAKES:

  • Expecting immediate confirmation (transactions take time to mine)

  • Not checking transaction status after sending

  • Forgetting to wait for confirmations before proceeding

  • Using wrong chain RPC for signed transaction

  • Insufficient gas balance causing transaction to fail

USE CASES:

  • Execute token transfers after offline signing

  • Deploy smart contracts

  • Interact with DeFi protocols

  • Send native currency transfers

  • Batch transaction submissions

TRANSACTION LIFECYCLE:

  1. Sign transaction offline (not in this tool)

  2. Broadcast with this tool → returns txHash

  3. Transaction enters mempool (pending)

  4. Miner includes in block (1 confirmation)

  5. Wait for additional confirmations for finality

  6. Use evm_get_transaction to check final status

Running on Linux.

LINUX-SPECIFIC NOTES:

  • Package manager: apt (Ubuntu/Debian), yum (RHEL/CentOS), or pacman (Arch)

  • Python 3 is typically 'python3' command

  • GNU tools are standard

  • Use 'xdg-open' command to open files/applications

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": {
      "chain": "<chain>",
      "signedTransaction": "<signedTransaction>"
    },
    "name": "evm_send_transaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesEVM chain to send transaction to
signedTransactionYesSigned transaction hex string (0x... RLP-encoded)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior5/5

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

No annotations are supplied, so the description carries the full burden and does so well: it discloses that this is a gas-costing write, irreversible once confirmed, asynchronous (returns txHash, not confirmation), and dependent on sender gas balance. The step-by-step lifecycle plus common-failure list covers exactly the behavioral surface an agent needs before calling a mutation tool.

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

Conciseness2/5

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

Front-loaded and sectioned, but heavily padded: gas considerations, common mistakes, use cases, and testnet-token notes restate the same points several times. Worse, the trailing 'Linux-specific notes' about apt/yum/python3/xdg-open are entirely unrelated to the tool and are noise an agent must discard.

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?

With no output schema, the description supplies the return shape (success, transactionHash, chain, status, explorerUrl, executionTime) itself, plus per-chain caveats and a next-step pointer. For a two-parameter, high-consequence write tool, nothing material about correct invocation is left unexplained.

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 baseline would be 3; the description exceeds it by adding that chain must match the chainId used at signing, that signing must happen offline with external tools, and by enumerating the seven valid chain values with their fee/finality characteristics. Format detail on signedTransaction (RLP, includes v/r/s) reinforces the schema rather than merely restating it.

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: broadcast a *signed* transaction to the network. The first two sentences make the scope and the pre-signed constraint unmistakable, which distinguishes it from signing/wallet tools and from status-query siblings like evm_get_transaction.

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 explicit preconditions (must be signed offline, needs gas balance), post-conditions (returns hash, verify later with evm_get_transaction), and a full lifecycle. What's missing is routing guidance against the close siblings evm_send_native_transfer, evm_send_contract_transaction, and evm_send_private_transaction — the listed use cases (transfers, deployments, DeFi) overlap all three, so an agent cannot tell when to prefer the generic tool.

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

Deploy Server

Other Tools