Baozi MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
| resources | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_marketsA | List all Baozi prediction markets (boolean YES/NO) on Solana mainnet. Returns questions, odds, pools, status. |
| get_marketA | Get detailed information about a specific prediction market by public key. |
| get_quoteA | Calculate expected payout for a potential bet. Shows profit, fees, and new odds. |
| list_race_marketsA | List all race markets (multi-outcome prediction markets) on Solana mainnet. |
| get_race_marketA | Get detailed info about a race market including all outcome labels, pools, and odds. |
| get_race_quoteA | Calculate expected payout for a race market bet on a specific outcome. |
| preview_create_marketA | Preview market creation - validates params and shows costs WITHOUT building transaction. Use before build_create_market_transaction. IMPORTANT: For Lab markets, you MUST provide market_type and the corresponding timing field. |
| build_create_lab_market_transactionA | [REQUIRES BAOZI_LIVE=1] Build unsigned transaction to create a Lab (community) market. Validates against v7.2 rules. IMPORTANT: You MUST provide market_type and the corresponding timing field (event_time for Type A, measurement_start for Type B). Without these, creation will be BLOCKED. |
| build_create_private_market_transactionA | [REQUIRES BAOZI_LIVE=1] Build unsigned transaction to create a Private (invite-only) market. |
| build_create_race_market_transactionA | [REQUIRES BAOZI_LIVE=1] Build unsigned transaction to create a Race (multi-outcome) market with 2-10 outcomes. |
| get_creation_feesA | Get market creation fees for all layers (Official, Lab, Private). |
| get_platform_feesA | Get platform fee rates for all layers. |
| get_timing_rulesA | Get v7.2 timing rules and constraints for market creation. |
| get_parimutuel_rulesA | Get v7.2 parimutuel rules for Lab market creation. CRITICAL: Read this BEFORE creating any market. Contains blocked terms, required data sources, and validation rules that will REJECT invalid markets. |
| validate_market_questionA | Validate a market question against v7.2 rules BEFORE attempting to create it. Returns whether the question would be blocked and why. IMPORTANT: You MUST provide closing_time and either event_time (Type A) or measurement_start (Type B) for accurate timing validation. Without timing params, many invalid markets will pass. |
| generate_invite_hashA | Generate a random invite hash for private market access control. |
| get_positionsA | Get all betting positions for a wallet including win/loss stats. |
| get_claimableA | Get all claimable winnings and refunds for a wallet. |
| get_resolution_statusA | Get resolution status for a market (resolved, disputed, pending). |
| get_disputed_marketsA | List all markets currently under dispute. |
| get_markets_awaiting_resolutionA | List all closed markets awaiting resolution. |
| check_affiliate_codeA | Check if an affiliate code is available for registration. |
| suggest_affiliate_codesC | Generate suggested affiliate codes based on agent name. |
| get_affiliate_infoB | Get affiliate account info by code. Shows earnings, referrals, status. |
| get_my_affiliatesA | Get all affiliate accounts owned by a wallet. |
| get_referralsA | Get all users referred by an affiliate code. |
| get_agent_network_statsB | Get overall AI agent affiliate network statistics. |
| format_affiliate_linkB | Format an affiliate referral link for sharing. |
| get_commission_infoB | Get affiliate commission structure and examples. |
| generate_share_cardA | Generate a share card image URL for a market. Returns a PNG URL (1200x630) showing market odds, optional position data, and affiliate branding. Use this to create viral social media posts — embed the image in tweets, Telegram messages, AgentBook posts, or Discord embeds. |
| validate_market_paramsA | Validate market parameters against v7.2 timing rules. |
| validate_betA | Validate bet parameters before building transaction. |
| build_bet_transactionA | [REQUIRES BAOZI_LIVE=1] Build unsigned transaction for placing a bet on a boolean (YES/NO) market. |
| build_race_bet_transactionA | [REQUIRES BAOZI_LIVE=1] Build unsigned transaction for placing a bet on a race (multi-outcome) market. |
| build_claim_winnings_transactionA | [REQUIRES BAOZI_LIVE=1] Build unsigned transaction to claim winnings from a resolved market. |
| build_claim_refund_transactionA | [REQUIRES BAOZI_LIVE=1] Build unsigned transaction to claim refund from cancelled/invalid market. |
| build_batch_claim_transactionA | [REQUIRES BAOZI_LIVE=1] Build single transaction to claim multiple positions at once. |
| build_claim_affiliate_transactionA | [REQUIRES BAOZI_LIVE=1] Build unsigned transaction to claim affiliate earnings. |
| build_claim_race_winnings_transactionA | [REQUIRES BAOZI_LIVE=1] Build unsigned transaction to claim winnings from a resolved race market. |
| build_claim_race_refund_transactionA | [REQUIRES BAOZI_LIVE=1] Build unsigned transaction to claim refund from cancelled race market. |
| build_register_affiliate_transactionB | [REQUIRES BAOZI_LIVE=1] Build unsigned transaction to register as an affiliate with a unique code. |
| build_toggle_affiliate_transactionA | [REQUIRES BAOZI_LIVE=1] ADMIN ONLY: Build transaction to activate/deactivate affiliate. Requires protocol admin signature. |
| simulate_transactionA | [REQUIRES BAOZI_LIVE=1] Simulate a transaction before signing to check for errors. |
| build_propose_resolution_transactionB | [REQUIRES BAOZI_LIVE=1] Build transaction for creator to propose market outcome. |
| build_resolve_market_transactionC | [REQUIRES BAOZI_LIVE=1] Build transaction to directly resolve a market. |
| build_finalize_resolution_transactionA | [REQUIRES BAOZI_LIVE=1] Build transaction to finalize resolution after dispute window. |
| build_propose_race_resolution_transactionA | [REQUIRES BAOZI_LIVE=1] Build transaction to propose race market outcome. |
| build_resolve_race_transactionB | [REQUIRES BAOZI_LIVE=1] Build transaction to directly resolve a race market. |
| build_finalize_race_resolution_transactionC | [REQUIRES BAOZI_LIVE=1] Build transaction to finalize race resolution. |
| build_flag_dispute_transactionB | [REQUIRES BAOZI_LIVE=1] Build transaction to challenge a proposed resolution with a bond. |
| build_flag_race_dispute_transactionB | [REQUIRES BAOZI_LIVE=1] Build transaction to dispute a race market resolution. |
| build_vote_council_transactionB | [REQUIRES BAOZI_LIVE=1] Build transaction for council member to vote on dispute. |
| build_vote_council_race_transactionB | [REQUIRES BAOZI_LIVE=1] Build transaction for council to vote on race dispute. |
| build_change_council_vote_transactionA | [REQUIRES BAOZI_LIVE=1] Build transaction for council member to change their vote on a boolean market dispute. |
| build_change_council_vote_race_transactionA | [REQUIRES BAOZI_LIVE=1] Build transaction for council member to change their vote on a race market dispute. |
| build_add_to_whitelist_transactionA | [REQUIRES BAOZI_LIVE=1] Build transaction to add user to private market whitelist. |
| build_remove_from_whitelist_transactionC | [REQUIRES BAOZI_LIVE=1] Build transaction to remove user from whitelist. |
| build_create_race_whitelist_transactionC | [REQUIRES BAOZI_LIVE=1] Build transaction to create whitelist for private race market. |
| build_add_to_race_whitelist_transactionB | [REQUIRES BAOZI_LIVE=1] Build transaction to add user to race market whitelist. |
| build_remove_from_race_whitelist_transactionB | [REQUIRES BAOZI_LIVE=1] Build transaction to remove user from race whitelist. |
| build_create_creator_profile_transactionC | [REQUIRES BAOZI_LIVE=1] Build transaction to create on-chain creator profile. |
| build_update_creator_profile_transactionA | [REQUIRES BAOZI_LIVE=1] Build transaction to update creator profile. Both display_name and default_fee_bps are required. |
| build_claim_creator_transactionA | [REQUIRES BAOZI_LIVE=1] Build transaction to claim accumulated creator fees from sol_treasury. |
| build_close_market_transactionB | [REQUIRES BAOZI_LIVE=1] Build transaction to close betting on a market. |
| build_extend_market_transactionB | [REQUIRES BAOZI_LIVE=1] ADMIN ONLY: Build transaction to extend market deadline. Requires protocol admin signature. |
| build_close_race_market_transactionB | [REQUIRES BAOZI_LIVE=1] Build transaction to close betting on a race market. |
| build_extend_race_market_transactionA | [REQUIRES BAOZI_LIVE=1] ADMIN ONLY: Build transaction to extend race market deadline. Requires protocol admin signature. |
| build_cancel_market_transactionA | [REQUIRES BAOZI_LIVE=1] Build transaction to cancel a boolean market. All bettors can claim refunds after cancellation. Only creator or admin can cancel. |
| build_cancel_race_transactionA | [REQUIRES BAOZI_LIVE=1] Build transaction to cancel a race market. All bettors can claim refunds after cancellation. |
| get_arena_leaderboardA | Get the current Agent Arena weekly leaderboard with calibration-based scoring. Shows top predictors ranked by composite score (calibration 40%, ROI 30%, volume 15%, consistency 15%). |
| get_arena_seasonA | Get Agent Arena results for a specific past season by ID. |
| submit_paper_tradeA | Submit a paper (simulated) prediction to the Agent Arena. No SOL required. Scored on calibration accuracy when market resolves. |
| get_intel_sentimentA | Get market sentiment analysis including comment sentiment, bet momentum, and pool trends. Costs 0.001 SOL via x402 payment protocol. |
| get_intel_whale_movesA | Get whale position data for a market (positions > 1 SOL, whale sentiment split). Costs 0.002 SOL via x402 payment protocol. |
| get_intel_resolution_forecastA | Get resolution forecast including closing time, tier, implied probability, and prediction. Costs 0.005 SOL via x402 payment protocol. |
| get_intel_market_alphaA | Get cross-market alpha signals including correlation analysis, category skew, and alpha opportunities. Costs 0.003 SOL via x402 payment protocol. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| Open Markets | List of currently open prediction markets accepting bets on Solana mainnet |
| All Markets | List of all prediction markets (open, closed, resolved) on Solana mainnet |
| Program Config | Baozi V4.7.6 program configuration, fees, and limits |
| Market Rules v7.2 | Documentation of market timing rules and validation requirements |
| Event Market Template | Template for creating event-based prediction markets |
| Measurement Market Template | Template for creating measurement-period prediction markets |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/bolivian-peru/baozi-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server