Skip to main content
Glama

solana_swap_order

solana_swap_order
Read-only

Best-price quote and ready-to-sign transaction for a token swap on Solana, routed through the Jupiter meta-aggregator (RFQ market makers plus every major DEX). Give input and output as symbols (SOL, USDC, USDT, JUP, JitoSOL, mSOL, BONK, WIF, RAY, PYTH, ETH) or mint addresses, and the amount in human units. Without taker you get the quote; with taker you also get the unsigned base64 transaction that the wallet signs itself and lands through /solana/swap/execute. Non-custodial. Price: $0.002 USDC per call (x402).

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": {
      "input": "<input>",
      "output": "<output>"
    },
    "name": "solana_swap_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesToken to sell: symbol or mint address
takerNoWallet that signs and pays; omit for a quote only
amountNoAmount to sell in human units, e.g. 0.5 (or use amount_raw)
outputYesToken to buy: symbol or mint address
receiverNoWallet that receives the output token (default taker)
amount_rawNoAmount to sell in base units (lamports, micro-USDC...)
slippage_bpsNoMax slippage in basis points, 0-5000 (default: Jupiter's live estimate)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Adds substantial behavior beyond the readOnlyHint annotation: non-custodial, the wallet signs the returned base64 transaction itself, execution happens elsewhere, and each call costs $0.002 USDC via x402. The read-only hint is consistent because the tool builds but never signs or lands the transaction; missing only rate-limit or latency notes.

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?

Three dense sentences, front-loaded with what the tool returns and the quote-versus-transaction distinction before the pricing detail. The long parenthetical on the aggregator and the symbol list add bulk but each carries usable information.

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?

With 7 parameters and no output schema, the description carries the return-value burden and does so qualitatively (quote, or quote plus base64 transaction). Payment model and non-custodial flow are covered; the concrete fields of the quote response are left unstated.

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%, so baseline is 3, but the description adds real meaning: accepted symbols versus mint addresses, amounts in human units, and the crucial point that taker switches the call from quote-only to quote-plus-transaction. It also references defaults (receiver = taker, live Jupiter slippage) that the schema already notes.

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 (best-price quote plus ready-to-sign transaction for a token swap on Solana) and names the routing mechanism (Jupiter meta-aggregator). It also splits the two modes clearly: quote-only without a taker, quote plus unsigned transaction with one.

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 explicit conditional guidance: omit taker for a quote, include taker to also receive the signable transaction that is landed separately. It does not name the sibling solana_swap_execute nor state exclusions, so it is clear context rather than full when/when-not routing.

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.

Resources