Skip to main content
Glama
Factor MCP Server

Factor MCP Server

Official
by FactorDAO

factor_simulate_transaction

Simulate single or multi-step transactions on a forked network with Foundry Anvil, including sequential flows and ETH balance overrides before execution.

Instructions

Simulate one or more transactions on a forked network using Foundry anvil. Supports balanceOverrides to set ETH balances before execution. Use "steps" for multi-step flows (e.g., approve + deploy vault) that need to run sequentially on the same fork.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "factor_simulate_transaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoTarget contract address (for single transaction mode)
argsNoFunction arguments (used with signature)
dataNoCalldata (hex string starting with 0x)
stepsNoArray of transactions to execute sequentially on the same fork. Use for multi-step flows like approve + deploy. Each step runs after the previous one succeeds.
valueNoETH value in wei (default: 0)
gasLimitNoGas limit (default: auto)
passwordNoWallet password if encrypted
signatureNoFunction signature (e.g., "transfer(address,uint256)") - alternative to data
balanceOverridesNoOverride ETH balances on the forked network before executing the transactions.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.7.9

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose useful behavior: simulation runs on a fork, balanceOverrides are applied before execution, and steps execute sequentially with each running after the previous succeeds (implying stop-on-failure). However, it omits prerequisites (a running anvil/fork endpoint), whether any state persists or is broadcast, and what the simulation returns (gas, success flag, revert reason).

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 short sentences, front-loaded with the core action and followed by the two non-obvious behaviors. No filler or redundancy.

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 9-parameter simulation tool with no annotations and no output schema, the description covers the what and the mode selection but not the return values or environment prerequisites. An agent still lacks enough to predict the response shape or know it must have a fork available.

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%, and the schema already documents steps as sequential execution for multi-step flows and balanceOverrides as pre-execution ETH overrides. The description mostly restates that, adding only slightly more framing. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

States a specific verb and resource: simulate transactions on a forked network using Foundry anvil. It clearly conveys the fork-based simulation model and the two operating modes (single vs. steps). It does not explicitly distinguish itself from nearby siblings such as factor_preview_transaction or factor_cast_call, so an agent must infer which to pick.

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 concrete conditional: use "steps" for multi-step flows like approve + deploy vault that must run sequentially on the same fork. The single-transaction path is implied by the top-level to/data/signature params. No exclusions or explicit alternatives are named.

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