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

@cryptoapis-io/mcp-prepare-transactions

Official

Prepare unsigned Kaspa transaction

prepare_transactions_kaspa
Read-onlyIdempotent

Builds unsigned Kaspa transactions ready for local signing, supporting multiple recipients and returning transaction and fee details for broadcast.

Instructions

Build unsigned Kaspa transactions ready for signing. Returns the unsigned transaction and fee details. After preparing, sign locally (kaspa_sign) and broadcast via broadcast_signed_transaction.

Actions: • native-coins: Build an unsigned native KAS transfer, supporting multiple recipients in one transaction

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

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>",
      "network": "<network>"
    },
    "name": "prepare_transactions_kaspa"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesAction to perform
contextNoOptional context for the request - echoed back in response
networkYesNetwork name - Kaspa is mainnet-only
exactFeeNoExact fee override in KAS - bypasses mass-based fee calculation when set
locktimeNoTransaction locktime
recipientsNoRecipients as {address, amount} objects, amount in KAS main units - one output per entry, multiple recipients supported in a single transaction (required)
feePriorityNoFee priority tier - defaults to standard if omitted
fromAddressNoSender's Kaspa address (required)
prepareStrategyNoUTXO selection strategy

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=true, and the description is consistent with them – nothing is broadcast here. On top of that it discloses the two-stage signing model (keys handled locally via kaspa_sign), the return contents (unsigned tx plus fee details), and a per-action credit cost of 60 with the caveat that actual spend comes back 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?

The purpose and the sign/broadcast handoff are front-loaded, then action enumeration and credits. The credits block is partly boilerplate ('indicative only and may change') but is short and tells the agent where to find real cost. Slightly long for a single-action tool, with no real waste.

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?

There is no output schema, so the description compensates by naming the return values (unsigned transaction and fee details). With 9 parameters, rich annotations, and only one action, nothing critical to correct invocation is missing – the gap is minor detail like expected error behaviour on insufficient UTXOs.

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 every parameter (fromAddress, recipients, feePriority, exactFee, locktime, prepareStrategy, network, context) is already documented in structured form. The description only adds that multiple recipients can be packed into one transaction, which restates the recipients schema note. Baseline 3 applies when the schema carries the semantic load.

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 two sentences state a specific verb and resource ('Build unsigned Kaspa transactions ready for signing') plus the return payload, which an agent can act on immediately. The chain name in the name/title separates it from the prepare_transactions_evm/solana siblings, though the description itself never says so explicitly.

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 an explicit three-step workflow: prepare here, sign locally with kaspa_sign, then broadcast_signed_transaction. That routes the agent to the correct follow-up tools. It stops short of stating when not to use this tool or how to choose a different prepare_transactions_* chain.

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