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

@cryptoapis-io/mcp-prepare-transactions

Official

Prepare unsigned UTXO transaction

prepare_transactions_utxo
Read-onlyIdempotent

Build unsigned UTXO transactions for Bitcoin, Bitcoin Cash, Litecoin, Dogecoin, Dash, and Zcash, including multiple recipients and fee details, ready for local signing and broadcast.

Instructions

Build unsigned UTXO transactions ready for signing (Bitcoin, Bitcoin Cash, Litecoin, Dogecoin, Dash, Zcash). Returns the unsigned transaction and fee details. After preparing, sign locally (utxo_sign) and broadcast via broadcast_signed_transaction.

Actions: • native-coins: Build an unsigned native coin transfer, supporting multiple recipients in one transaction. Requires either feePriority or exactFee.

Credits by action (source: OpenAPI): • native-coins: 530

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_utxo"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesAction to perform
contextNoOptional context for the request - echoed back in response
networkYesNetwork name
exactFeeNoExact fee override in the chain's main denomination - required unless feePriority is given
locktimeNoTransaction locktime
blockchainYesBlockchain protocol
recipientsNoRecipients as {address, amount} objects, amount in the chain's main denomination - one output per entry (required)
feePriorityNoFee priority tier - required unless exactFee is given
fromAddressNoSender's address (required)
replaceableNoMark the transaction as RBF-replaceable
additionalDataNoOP_RETURN data to embed in the transaction
prepareStrategyNoUTXO selection strategy

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotentHint true and destructiveHint false, consistent with an unsigned-transaction builder. Beyond that, the description adds real value: what is returned ('unsigned transaction and fee details'), the follow-up signing/broadcast path, the per-action credit cost (530), and the caveat that actual credits appear in response headers.

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 purpose, then return behavior, then workflow, then per-action details — a sensible ordering. The credits block is somewhat boilerplate-heavy for a tool with only one action, but it is short and cost information is genuinely useful before invoking a paid API.

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, no-output-schema tool, the description covers what is produced, what it costs, and where it sits in the signing/broadcast pipeline. Parameter-level detail is fully handled by the schema, so nothing essential for a correct call is left unstated.

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 all 12 parameters, including enums for action, blockchain, network, feePriority and prepareStrategy, are already documented in the schema. The description only restates the feePriority/exactFee mutual requirement and the multi-recipient capability, adding little beyond the structured fields.

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 description opens with a specific verb+resource: 'Build unsigned UTXO transactions ready for signing', and enumerates the supported chains (Bitcoin, Bitcoin Cash, Litecoin, Dogecoin, Dash, Zcash). This implicitly separates it from the EVM/Solana/Kaspa/XRP/Tron/Tezos siblings, but it never states that distinction explicitly, so an agent must infer that UTXO chains belong here.

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?

It gives a clear lifecycle: prepare here, then 'sign locally (utxo_sign)' and 'broadcast via broadcast_signed_transaction', which tells the agent this is a non-terminal step. It also states the feePriority-or-exactFee requirement. What's missing is any explicit when-not-to-use condition or note that non-UTXO chains must go to a sibling tool.

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