Skip to main content
Glama

build_race_bet_transaction

Generates an unsigned transaction to bet on a race (multi-outcome) market, taking market key, outcome index, SOL amount, and user wallet for secure signing.

Instructions

[REQUIRES BAOZI_LIVE=1] Build unsigned transaction for placing a bet on a race (multi-outcome) market.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
marketYesRace market public key
amount_solYesBet amount in SOL
user_walletYesUser wallet public key
outcome_indexYesIndex of outcome to bet on
affiliate_codeNoOptional affiliate code
Behavior4/5

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

With no annotations provided, the description carries the full behavioral disclosure. It explicitly states the transaction is 'unsigned', indicating it does not submit or execute, and the '[REQUIRES BAOZI_LIVE=1]' prefix is an environmental prerequisite. This adds meaningful context beyond the schema, though it omits further details like serialization format.

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 a single, front-loaded sentence. The bracketed requirement is placed at the start, and every word contributes meaning: it names the action, the target, the market type, and the unsigned nature. No fluff or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has no output schema and no annotations, so the description must cover return behavior and prerequisites. It does cover the 'unsigned' aspect and the BAOZI_LIVE requirement, but it does not explain what the returned transaction looks like (e.g., serialized format) or whether the bet is validated before building. This is a minimum-viable description with clear gaps.

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 description coverage is 100%, so the schema already documents all parameters (market, amount_sol, user_wallet, outcome_index, affiliate_code). The description adds no additional insight into parameter semantics or relationships, so a baseline score of 3 is appropriate.

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 states a specific verb ('Build') and resource ('unsigned transaction for placing a bet on a race (multi-outcome) market'), which clearly distinguishes it from the sibling tool for standard bets (build_bet_transaction). The scope is precise and immediately understandable.

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?

The description provides clear context that this tool is for race (multi-outcome) markets and includes the prerequisite '[REQUIRES BAOZI_LIVE=1]'. However, it does not explicitly name alternative tools or state when not to use it, so it stops short of full usage guidance.

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/bolivian-peru/baozi-mcp'

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