Skip to main content
Glama

Execute a live swap

execute_swap

Execute a real on-chain Solana swap using a previously fetched Jupiter quote. Confirm the quote and provide its timestamp to submit the transaction, subject to server-side safety caps.

Instructions

Executes a REAL on-chain swap using a quote previously obtained from get_jupiter_quote or get_token_overview. Requires TRADING_ENABLED=true on the server and confirm: true on the call. Subject to server-side caps on amount, slippage, and quote freshness regardless of what is requested. This tool is always listed, even when trading is disabled, in which case it returns a structured refusal.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
quoteYesThe exact `quote` object returned by a prior get_jupiter_quote (or get_token_overview) call, unmodified
confirmYesMust be exactly true. Confirms this will submit a real on-chain transaction.
quoteFetchedAtYesThe `fetchedAt` ISO timestamp returned alongside that quote
Behavior5/5

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

With no annotations, the description carries full burden. It discloses that this is a real, irreversible swap, subject to server-side caps on amount, slippage, and quote freshness, and that it can return a structured refusal. This exceeds typical transparency.

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?

Two sentences, front-loaded with the critical 'REAL on-chain swap' warning. Every sentence adds essential information: prerequisites, caps, and disabled-state behavior. No wasted words.

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?

High-risk tool with no annotations or output schema. Description covers prerequisites, safety, caps, and disabled behavior, but does not specify what the success response looks like or how to retrieve swap status. Sibling get_swap_status exists, but the description doesn't point to it.

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 covers all 3 params (100%), baseline 3. Description adds meaning: quote must be unmodified and previously obtained, confirm:true is required, and server-side caps enforce quote freshness. It doesn't deeply explain quoteFetchedAt but the schema already does.

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?

Description clearly states the verb and resource: 'Executes a REAL on-chain swap' using a prior quote. It distinguishes itself from siblings like get_jupiter_quote (which only fetches quotes) by emphasizing execution of an on-chain transaction.

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?

Explicitly states prerequisites: a quote from get_jupiter_quote or get_token_overview, confirm:true, and TRADING_ENABLED=true. It also notes that the tool is always listed but returns a structured refusal when trading is disabled, guiding appropriate use.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kinglewis1984-cloud/dexjup-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server