Skip to main content
Glama

solana_swap_execute

solana_swap_execute

Lands a Solana swap built by /solana/swap/order: send the base64 transaction signed by the taker wallet plus the request_id and Jupiter broadcasts it with priority fees and confirmation handling. Returns the on-chain signature, an explorer link and the amounts actually moved, or a status of failed with the error code so the caller requests a fresh order. The wallet keeps its keys; nothing is custodied. 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": {
      "signed_transaction": "<signed_transaction>",
      "request_id": "<request_id>"
    },
    "name": "solana_swap_execute"
  }
}

Input Schema

NameRequiredDescriptionDefault
request_idYesrequest_id returned by /order
signed_transactionYesBase64 transaction from /order, signed by the taker
last_valid_block_heightNoOptional block height from /order for nonce validation

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond readOnlyHint=false, the description discloses that Jupiter broadcasts with priority fees and confirmation handling, that keys remain with the wallet and nothing is custodied, and that calls cost $0.002 USDC via x402. It also explains both success and failure outcomes, including the error code returned on failure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core action and then covers inputs, return behavior, failure recovery, custody, and pricing in three tight sentences. Every sentence contributes useful operational context without repetition.

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 transactional broadcast tool with minimal annotations and no output schema, the description provides enough detail about inputs, success and failure results, custody, confirmation behavior, and cost. An agent can understand the full call lifecycle and recovery path without additional documentation.

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 the input schema already documents all three parameters. The description reinforces that signed_transaction and request_id originate from /solana/swap/order, but it does not add format or syntax details beyond what the schema provides; baseline 3 is appropriate.

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?

The description uses a specific verb and resource: it 'lands' a Solana swap transaction built by /solana/swap/order. It clearly distinguishes the execution step from the order-building sibling and states exactly what inputs are sent for broadcast.

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?

The description establishes the prerequisite flow: the transaction must come from /solana/swap/order and be signed by the taker wallet. It also gives recovery guidance on failure by telling the caller to request a fresh order, though it does not explicitly frame when not to use this tool.

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