mosn_safe_swap
Build a Solana token swap that is safety-checked first: MOSN refuses buys into DANGER tokens, then returns an unsigned Jupiter swap transaction for YOUR wallet to sign (MOSN takes a 0.3% platform fee). Free to call.
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": {
"mint": "<mint>",
"side": "<side>",
"wallet": "<wallet>"
},
"name": "mosn_safe_swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mint | Yes | ||
| side | Yes | ||
| wallet | Yes | Your Solana wallet public key | |
| amountRaw | No | For sells: token amount in base units | |
| amountSol | No | For buys: SOL to spend | |
| slippageBps | No |