Examples
Real-world workflows showing how AI agents interact with SharkBlock through MCP.
Token Research Workflow
Before trading any token, have your agent do thorough research:
You: “Research the token
DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263on Solana. I want to know if it’s safe to trade.”
Agent workflow:
get_token_info— Gets price, market cap, volume, security score, and available trading pairsget_token_holders— Checks holder distribution and whale concentrationget_token_chart— Pulls OHLCV data for trend analysisget_token_trades— Reviews recent buy/sell activity
Agent response: A comprehensive analysis with price, liquidity, security risks (rugpull probability, ownership concentration), holder distribution, and a trading recommendation.
Paper Trading Setup
Test a strategy risk-free with shadow mode:
You: “Set up paper trading for me. I want to test a strategy with 0.5 SOL per trade.”
Agent workflow:
create_wallet— Creates a shadow wallet (type: "shadow")fund_shadow_wallet— Adds 5 SOL (amount: "5000000000")create_strategy— Sets up the strategy with:- 0.5 SOL per position (
amount: "500000000") - Max 3 concurrent positions
- 50% take-profit target (5000 bps)
- 20% stop-loss target (2000 bps)
- 0.5 SOL per position (
start_strategy— Activates the bot
You (later): “How is my paper trading going?”
Agent workflow:
list_strategies— Finds the shadow strategyget_strategy_stats— Gets PnL, win rate, total tradeslist_positions— Shows current open positions
Daily Trading Briefing
You: “Give me my morning trading briefing.”
Agent workflow:
list_wallets— Gets all wallets with balancesget_wallet_pnl— PnL for each walletlist_strategies— Status of all strategies (active/paused)list_positions— All open positions across strategiesdiscover_trending— Today’s trending tokenslist_notifications— Any alerts from overnight
Agent response: A summary covering portfolio value, overnight performance, active positions with current PnL, and new opportunities.
Smart Position Management
You: “Check my positions on wallet
7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU. Close anything that’s down more than 15%.”
Agent workflow:
list_strategies— Finds the strategy for this walletlist_positions— Gets all open positions with PnL data- For each position down >15%:
close_position— Executes a sell swap with current market params
- Reports which positions were closed and the realized losses
Strategy Optimization
You: “Pause my strategy, tighten the stop-loss to 10% on all open positions, then resume.”
Agent workflow:
pause_strategy— Stops the bot from opening new positionslist_positions— Gets all open positions- For each position with a stop-loss >10%:
update_position_target— Updates to 1000 bps (10%)
start_strategy— Resumes the bot
Wallet Analysis
You: “Analyze this wallet:
9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM. Is this a good trader to copy?”
Agent workflow:
analyze_wallet— Full wallet analysis including:- Portfolio composition
- Active positions
- Trading history
- Win rate and performance metrics
Agent response: A trader profile with win rate, average hold time, preferred tokens, risk profile, and whether their strategy aligns with your goals.
Multi-Step Strategy Creation
You: “I want to create a sniper strategy. Find tokens with high volume and momentum, enter fast with anti-MEV, take profit at 30% and 60%, stop-loss at 15%.”
Agent workflow:
list_wallets— Finds a delegated walletcreate_strategy— Creates strategy with:{ "amount": "100000000", "maxConcurrentPositions": 5, "targets": [ { "type": "TAKE_PROFIT", "triggerPercentageBps": 3000, "amountPercentageBps": 5000 }, { "type": "TAKE_PROFIT", "triggerPercentageBps": 6000, "amountPercentageBps": 10000 }, { "type": "STOP_LOSS", "triggerPercentageBps": 1500, "amountPercentageBps": 10000 } ], "buyPreset": { "slippage": 1.0, "priorityFees": 100000, "antiMev": true }, "sellPreset": { "slippage": 1.0, "priorityFees": 100000, "antiMev": true } }start_strategy— Launches the bot
Notification Management
You: “I’m getting too many notifications. Disable the ones about bot starting and stopping, keep the trade alerts.”
Agent workflow:
get_notification_preferences— Gets current settingsupdate_notification_preferences— Disables:{ "disabledTypes": ["bot-enabled", "bot-disabled"] }
Tips for AI Agents
Do Research First
Always call get_token_info with includeSecurity: true before creating strategies or opening positions. This prevents trading honeypot tokens or low-liquidity scams.
Use Shadow Mode for Testing
Before deploying real capital, test with shadow wallets. The trading logic is identical — only the execution is simulated.
Respect Rate Limits
Market data tools share a 60 req/min limit. If you need to analyze many tokens, batch your research rather than calling them in rapid succession.
Check Delegation
Before calling start_strategy, verify the wallet has delegation enabled with get_wallet. Strategies on non-delegated wallets will fail to start.
Amounts Are in Atomic Units
All token amounts use atomic units (lamports for SOL). 1 SOL = 1,000,000,000 lamports. Basis points (bps) are used for percentages: 100 bps = 1%.