Skip to main content
Glama

Prepare unsigned Solana transaction

prepare_transactions__prepare_transactions_solana
Read-onlyIdempotent

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__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. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Adds real context beyond annotations: the tool returns an unsigned transaction plus fee details, signing/broadcast happens outside the tool, and each action has a credit cost (180/240) with a caveat that actual credits come back in response headers. Annotations already declare readOnly/idempotent/non-destructive, so the remaining gap is minor (no mention of failure modes or address validation).

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 the purpose and the follow-up workflow, then a scannable bulleted action list and credit table. The credits section is the weakest part — two lines to convey an indicative-only number — but it is clearly demarcated and easy to skip.

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 9-parameter transaction builder with no output schema, the description covers what is returned (unsigned tx + fee details), what to do next (sign and broadcast), the action bifurcation, and cost expectations. Nothing an agent needs in order to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the schema already documents amounts in lamports vs token base units, fromAddress/toAddress requirements, tokenContract for spl-tokens, and the feePriority default. The description reinforces action-level routing (which fields belong to which action) rather than adding new syntax, so it is solid but largely parallel to the schema.

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+resource ('Build unsigned Solana transactions ready for signing') and enumerates the two supported actions (native-coins, spl-tokens), which cleanly distinguishes it from prepare_transactions__prepare_transactions_evm and other chain-specific siblings.

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 explicit workflow sequencing: prepare here, then 'sign locally and broadcast via broadcast_signed_transaction'. It also names the per-action conditions (native-coins for SOL transfers, spl-tokens for SPL token transfers), so the agent knows which action to pick and what the next step is.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.