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

@cryptoapis-io/mcp-prepare-transactions

Official

Prepare unsigned Solana transaction

prepare_transactions_solana
Read-onlyIdempotent

Build unsigned Solana transactions for native SOL or SPL token transfers, returning the transaction and fee details so you can sign locally and broadcast.

Instructions

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

Actions: • native-coins: Build an unsigned native SOL transfer • spl-tokens: Build an unsigned SPL token transfer

Credits by action (source: OpenAPI): • native-coins: 180 • spl-tokens: 240

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

Input Schema

NameRequiredDescriptionDefault
actionYesAction to perform
amountNoAmount in lamports for native-coins, or token base units for spl-tokens (required for all actions)
contextNoOptional context for the request - echoed back in response
networkYesNetwork name
toAddressNoRecipient address (required for all actions)
feePriorityNoFee priority tier - defaults to standard if omitted
fromAddressNoSender address (required for all actions)
tokenContractNoSPL token mint address (required for spl-tokens)
tokenStandardNoSPL token program standard (spl-tokens only)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.0

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the annotations, the description discloses the return payload (unsigned transaction plus fee details) and a per-action credit cost (180 for native-coins, 240 for spl-tokens) with the caveat that actual spend appears in response headers. That is real behavioral context the readOnlyHint/idempotent/destructive flags do not convey; building an unsigned transaction without broadcasting is consistent with readOnlyHint=true.

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 opening sentence followed by scannable bullet lists for actions and credits. The credit caveat is stated twice ('indicative only and may change' plus 'actual credits... returned in response headers'), which is slightly redundant but not costly.

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?

No output schema exists, and the description compensates by naming what is returned (unsigned transaction and fee details). Combined with the workflow chain and per-action credit costs, it covers what an agent needs to invoke a 9-parameter, non-destructive preparation tool; only minor gaps like feePriority defaulting are left to the schema.

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 nine parameters including enums and per-action requirements are already documented in the schema. The description only adds that tokenContract-style branching corresponds to the spl-tokens action and restates fee-relevant cost per action; nothing about parameter format or dependency is added beyond structured data.

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 and resource ('Build unsigned Solana transactions ready for signing') and scopes it to Solana, which separates it from the EVM/Kaspa/Tezos/Tron/XRP/UTXO prepare siblings. The action list further pins down the two supported transfer types, so an agent can distinguish it 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 Guidelines4/5

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

Gives clear workflow context: prepare here, then sign locally, then call broadcast_signed_transaction. That sequencing tells the agent where this tool sits relative to the next step, but it offers no explicit exclusions or comparison against alternative prepare paths beyond the chain name.

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