Skip to main content
Glama
OOBE-PROTOCOL

SAP MCP Server

Jupiter Swap

jupiter_swap
Destructive

Construct an unsigned swap transaction from a Jupiter quote response for Solana token swaps. Sign and submit via SAP tools.

Instructions

Build an unsigned swap transaction from a quote response. Sign and send the returned transaction. SAP MCP context: Jupiter protocol tools are served as AgentKit ecosystem tools. Use them for quote, route, and swap preparation, then use SAP transaction preview/sign/submit tools when an unsigned transaction must pass MCP signer policy.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
feeAccountNoSolana wallet public key (base58)
quoteResponseYesThe full quoteResponse object from getQuote
userPublicKeyYesSolana wallet public key (base58)
useTokenLedgerNoUse Token Ledger mint, symbol, or token identifier used by Jupiter Swap.
dynamicSlippageNoDynamic Slippage pagination control for Jupiter Swap.
wrapAndUnwrapSolNoAuto wrap/unwrap SOL (default true)
useSharedAccountsNoUse Shared Accounts parameter for Jupiter Swap.
asLegacyTransactionNoAs Legacy Transaction transaction payload used by Jupiter Swap.
destinationTokenAccountNoSolana wallet public key (base58)
dynamicComputeUnitLimitNoDynamic Compute Unit Limit controlling the maximum number of results returned by Jupiter Swap.
skipUserAccountsRpcCallsNoSkip User Accounts RPC Calls endpoint or RPC selector used by Jupiter Swap.
computeUnitPriceMicroLamportsNoPriority fee in µ-lamports/CU

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYesMCP content blocks returned to the caller.
isErrorNoTrue when the tool result represents an application-level error.
Behavior4/5

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

Annotations already declare destructiveHint=true, and the description discloses that the tool returns an unsigned transaction (not submitting it), which matches the non-readOnly nature. It adds context about the signature workflow, though it could mention potential side effects like fee deduction or state changes.

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 concise (two sentences), front-loaded with the core action, and includes essential workflow context without redundancy. Every sentence adds value.

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?

Given the tool's complexity (12 parameters, output schema) and the presence of sibling Jupiter tools, the description is complete: it defines the input (quote response), output (unsigned transaction), and downstream process (signing with SAP tools), enabling correct tool selection and invocation.

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 coverage is 100%, so parameters are described in the schema. However, some parameter descriptions are vague (e.g., 'Use Token Ledger mint...'), and the tool description does not add clarification or group parameters meaningfully beyond what the schema provides.

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 clearly states the tool's primary function: building an unsigned swap transaction from a quote response. It specifies the resource (swap transaction) and the action (build), and distinguishes itself from siblings by placing it in a workflow with quote, route, and SAP signing tools.

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?

The description explicitly tells when to use this tool: after obtaining a quote via jupiter_getQuote, and it directs the agent to use SAP preview/sign/submit tools for signing, thus providing clear usage context and excluding alternatives.

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/OOBE-PROTOCOL/sap-mcp'

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