Skip to main content
Glama

wallet_executePrepared

Execute a previously simulated transaction by its preparedTxId to submit the exact calldata reviewed, ensuring safe on-chain execution.

Instructions

Execute a prepared transaction from wallet_call.

Flow:

  1. Use wallet_call to prepare and simulate a transaction

  2. Review the simulation results and preparedTxId

  3. Use this tool to execute the exact same transaction

Example:

{"preparedTxId": "ptx_abc123_xyz"}

Safety:

  • Executes the EXACT same calldata that was simulated

  • Prepared transactions expire after 5 minutes

  • Only simulated-successful transactions can be executed (use force: true to override)

Note: If the prepared transaction has expired, run wallet_call again to get a fresh one.

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": {
      "preparedTxId": "<preparedTxId>"
    },
    "name": "wallet_executePrepared"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNoForce execution even if simulation failed (dangerous!)
preparedTxIdYesThe prepared transaction ID from wallet_call

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the 5-minute expiry, that only simulation-successful transactions execute unless force is set, and that exactly the simulated calldata is submitted. It stops short of stating irreversibility of on-chain submission, gas/fee implications, or what the call returns, which matters for a state-changing operation.

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-loads the action and uses clear headers for flow, example, and safety, so an agent can scan it quickly. There is minor redundancy between flow step 3 ('execute the exact same transaction') and the safety bullet about identical calldata.

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?

For a two-parameter mutation tool with no annotations and no output schema, the description covers prerequisites, gating, expiry, and failure recovery well. The remaining gap is the return value (transaction hash or receipt), which a caller would likely want and which nothing else supplies.

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 description coverage is 100%, so both parameters are already documented, including the force override and its danger. The description adds only the example ID format (ptx_abc123_xyz) and the expiry context for preparedTxId, so baseline 3 applies.

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 (execute) and resource (a prepared transaction created by wallet_call), and explicitly contrasts with the sibling wallet_call which prepares/simulates. An agent can distinguish prepare-and-simulate from submit without reading either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Gives an explicit numbered flow: call wallet_call first, review simulation results and preparedTxId, then invoke this tool. It also names the recovery path (re-run wallet_call if expired) and the force override condition, so when-to-use and what-to-do-on-failure are both covered.

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