Skip to main content
Glama
@cryptoapis-io/mcp-prepare-transactions

@cryptoapis-io/mcp-prepare-transactions

Official

Prepare unsigned EVM transaction

prepare_transactions_evm
Read-onlyIdempotent

Build unsigned EVM transactions for native coin, ERC-20 token, or ERC-721 NFT transfers. Returns raw unsigned hex and fee details, ready for local signing and broadcasting.

Instructions

Build unsigned EVM transactions ready for signing. Returns the raw unsigned transaction hex and fee details. After preparing, use a signing tool (e.g. evm_sign) to sign locally, then broadcast via broadcast_signed_transaction.

Actions: • prepare-transaction-from-address: Build an unsigned native coin transfer (e.g. ETH, BNB) • prepare-fungible-token-transfer: Build an unsigned ERC-20 token transfer • prepare-nft-transfer: Build an unsigned ERC-721 NFT transfer

Credits by action (source: OpenAPI): • prepare-fungible-token-transfer: 24 • prepare-nft-transfer: 24 • prepare-transaction-from-address: 24

Credits are indicative only and may change at any time. The actual credits spent for each API request are returned in the response headers.

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": {
      "action": "<action>",
      "blockchain": "<blockchain>",
      "network": "<network>"
    },
    "name": "prepare_transactions_evm"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueNoAmount in native coin's smallest unit, e.g. wei (required for prepare-transaction-from-address)
actionYesAction to perform
amountNoToken amount to transfer (required for prepare-fungible-token-transfer)
contextNoOptional context for the request - echoed back in response
networkYesNetwork name
tokenIdNoNFT token ID (required for prepare-nft-transfer)
gasLimitNoCustom gas limit override (prepare-transaction-from-address only; auto-estimated if omitted)
gasPriceNoCustom gas price in wei (prepare-transaction-from-address only; auto-estimated if omitted)
toAddressNoRecipient address (required for all actions)
blockchainYesBlockchain protocol
fromAddressNoSender address (required for all actions)
contractAddressNoToken contract address (required for prepare-fungible-token-transfer and prepare-nft-transfer)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description is consistent with that (it only builds an unsigned payload, never submits it). It adds real value beyond the annotations by disclosing the return payload (raw unsigned hex plus fee details) and per-action credit costs, noting actual credits come back in response headers. It stops short of latency, failure modes, or whether fee estimation can fail for a given network.

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?

The summary and next-step workflow are front-loaded, which is exactly right for a tool an agent must chain. The credits block is repetitive, restating the same value of 24 across three bullet lines plus a disclaimer, which is the main wasted space.

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?

For a 12-parameter, three-action tool with no output schema, the definition covers purpose, action selection, return shape, follow-on tools, and cost. Nothing an agent needs to invoke it correctly and continue the workflow is missing.

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 the baseline is 3. The action list adds a little semantic mapping (which action corresponds to native vs ERC-20 vs ERC-721 transfers), but the description adds nothing about context, network selection, or the gas override parameters beyond what the schema already states.

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?

The opening sentence names a specific verb and resource ('Build unsigned EVM transactions ready for signing') and the action list enumerates the three distinct transaction kinds (native coin, ERC-20, ERC-721). Combined with the EVM chain scope in the name, an agent can separate this from the Solana/Tezos/XRP/UTXO preparation siblings 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 Guidelines5/5

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

It prescribes the full workflow explicitly: prepare here, then sign locally with a signing tool (e.g. evm_sign), then broadcast via broadcast_signed_transaction. It also routes between the three internal actions by asset type, so both 'when to use this tool' and 'which action to pick' are answered.

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