Skip to main content
Glama
OOBE-PROTOCOL

SAP MCP Server

Jupiter Smart Swap

jupiter_smartSwap
Destructive

Fetches a quote and builds swap instructions for Solana token swaps in one call. Returns instructions and summary for transaction assembly.

Instructions

Smart Swap — all-in-one compound tool that fetches a quote and builds swap instructions in a single call. Provide input/output mints, amount, and wallet address to get back a quote, individual swap instructions, and a human-readable summary. The returned instructions can be assembled into a transaction and signed. This is the recommended entry-point for AI agents preparing a swap. 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
amountYesRaw token amount to swap (in smallest unit, no decimals)
swapModeNoSwap mode (default: ExactIn)
inputMintYesSource token mint address
feeAccountNoSolana wallet public key (base58)
outputMintYesDestination token mint address
maxAccountsNoMax accounts in transaction (default: 64)
slippageBpsNoSlippage tolerance in bps (e.g. 50 = 0.5%)
userPublicKeyYesWallet public key that will sign the transaction
platformFeeBpsNoPlatform fee in bps for referral revenue
dynamicSlippageNoEnable dynamic slippage for better execution
onlyDirectRoutesNoRestrict to single-hop routes for lower latency
wrapAndUnwrapSolNoAuto wrap/unwrap SOL (default: true)
asLegacyTransactionNoReturn a legacy transaction instead of v0
destinationTokenAccountNoSolana wallet public key (base58)
dynamicComputeUnitLimitNoUse dynamic compute unit limit based on simulation
restrictIntermediateTokensNoRestrict intermediate tokens to reduce risk
computeUnitPriceMicroLamportsNoPriority fee in micro-lamports per compute unit

Output Schema

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

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

Annotations already indicate destructiveHint=true, and the description adds that it returns instructions for signing, but does not detail side effects, fees, or failure modes beyond what annotations suggest.

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?

The description is front-loaded and efficient, though could be slightly tighter; the SAP MCP context adds helpful but somewhat redundant guidance.

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?

Given the complexity and presence of an output schema, the description covers the main workflow, inputs, and next steps (assembly/ signing), but omits error handling or prerequisite checks.

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 baseline is 3; the description only mentions a few parameters (input/output mints, amount, wallet) without adding new semantics beyond 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?

The description clearly defines it as a compound tool that fetches a quote and builds swap instructions in one call, distinguishing it from siblings like jupiter_swap and jupiter_swapInstructions by being the recommended entry-point.

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?

It states required inputs and how to use the output (assemble into a transaction), and provides SAP MCP context for workflow integration, but does not explicitly list when not to use this tool vs. alternatives like jupiter_getQuote.

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