Skip to main content
Glama

evm_simulate_bundle

Simulate Flashbots bundle execution off-chain to verify profitability, check atomicity, and catch reverts before submission.

Instructions

Simulate Flashbots bundle execution before submission.

Tests bundle transactions off-chain to verify profitability and prevent reverts. Ethereum-focused but provides insights for other chains.

PARAMETERS:

  • chain: Target EVM chain (Ethereum recommended)

  • transactions: Array of transaction objects to bundle

  • targetBlock: Block number for simulation

  • stateBlockNumber: Block to use for state (optional)

SIMULATION: • Validates bundle atomicity • Checks for reverts • Estimates profit and costs • Detects conflicts with pending transactions

Returns simulation results, profit estimates, and revert analysis.

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>",
      "transactions": "<transactions>",
      "targetBlock": "<targetBlock>"
    },
    "name": "evm_simulate_bundle"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYes
targetBlockYesTarget block for bundle
transactionsYesTransactions to bundle
stateBlockNumberNoBlock for state simulation

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and does substantial work: it declares the operation is off-chain, enumerates the validations performed (atomicity, reverts, profit/cost estimates, pending-transaction conflicts), and states that results are returned rather than transactions sent. It still omits resource/cost implications of simulating (e.g., rate limits, node access requirements) and any failure-mode semantics.

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?

Front-loaded with the core action, then organized into labeled PARAMETERS and SIMULATION sections, which aids scanning. There is mild redundancy between the introductory sentence ('verify profitability and prevent reverts') and the SIMULATION bullets that restate the same checks.

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?

No output schema exists, and the description compensates by naming the return content: simulation results, profit estimates, and revert analysis. With no annotations and a moderately complex 4-parameter nested-array tool, the only real gap is guidance on interpreting or acting on a failed simulation and on the targetBlock/stateBlockNumber interaction.

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 75%, so the schema already documents targetBlock, transactions, and stateBlockNumber; the description adds only 'Ethereum recommended' for the enum-constrained chain parameter and the optionality of stateBlockNumber. It does not explain the relationship between targetBlock and stateBlockNumber, which matters for simulation correctness.

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 first sentence states a specific verb and resource ('Simulate Flashbots bundle execution') plus a scope qualifier ('before submission'). It is immediately distinguishable from the many transaction-execution siblings such as evm_execute_swap or evm_call_contract, though it never names any adjacent tool explicitly.

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?

'Before submission' gives a clear implied trigger point for use, and 'Ethereum-focused but provides insights for other chains' sets chain expectations. However, there is no explicit when-not guidance, no statement about which chain values are meaningful vs. degraded, and no mention of what to do after a failed simulation.

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