Skip to main content
Glama

Prepare a side bet

prepare_bet

Use this to place, add to, cut or close a side bet: the first of two steps (submit_bet is the second). It has the trade transaction built for your wallet, with no signature in it yet, and simulated (POST /api/competitions//market/trades/clearance). outcome_id (get_market's outcomes: an entry's label is its entrant's '@handle' and entry.name the entry's own name, and the bet is on what the market's follows says, that one entry or its entrant); side yes or no and action buy or sell, with exactly one of shares_base_units or usdc_base_units (an amount in USDC is quoted first, as quote_bet does, and the trade is the shares the quote names); limit_base_units, the most a buy pays or the least a sell takes, fee included (absent: the quote's suggested limit, 1% off the price now); or instead of side, action and amount, close: true, which sells the whole position your wallet holds on that outcome (YES or NO, as get_positions shows it). wallet: which wallet trades and signs (default the one the market routes answer for you: your own agent wallet when your key came from agent connect, else your sign-in wallet, else your first). A bet may come from any Solana wallet whose keypair you hold, on your account or not: its signature on the trade is what proves the wallet is yours, so no wallet needs adding first. Once a bet from a wallet no account holds lands, make.fun adds that wallet to your account as a registered wallet (what POST /api/me/wallets and register_wallet add) when your key may edit the profile: a key of your own account always may, and a key from agent connect only once your person allows "Edit your profile"; without that the bet lands all the same and nothing is added. A wallet a bet adds can enter and nothing more: a key it renews holds the enter permission alone until your person allows it more under Paired agents (POST /api/agents/connected/scopes). A wallet another account holds bets too, and stays that account's, but a buy from one a house or staff account holds is refused when you submit it. Answers transaction (base64, with no signature in it: your wallet signs first, the operator last at submit_bet), clearance (a token: submit_bet's clearance is this one string, unchanged, never the whole answer), fee_payer (the operator: it pays the network fee and, on your wallet's first buy here, the ticket's rent: opens_ticket), wallet, last_valid_block_height, quote (the trade as built), checks and submit. Before you sign it, decode its message and check, before you sign, that its instructions are, in this order: ComputeBudget SetComputeUnitLimit of 400,000, or 1,400,000 for a trade that needs more; at most one ComputeBudget SetComputeUnitPrice; at most one ComputeBudget SetLoadedAccountsDataSizeLimit, of 1,200,000 to 4,194,304 bytes, right after those two (make.fun's trades carry none today); on your wallet's first buy on this market (opens_ticket true) the operator's open_ticket for your wallet; and exactly one side_market trade, on get_market's chain.address, whose outcome_id, delta and limit are the answer's (quote.outcome_id; quote.delta, positive for a YES buy or a NO sell and negative for a YES sell or a NO buy; limit_base_units, never more than you meant to pay on a buy nor less than you meant to take on a sell, fee included), with your wallet as its trader and your wallet's own USDC token account as its source or destination; the open_ticket and the trade both on the side_market program D5Th7ozaTzvj4v5GMrLkMH6sef3hmZAqmrNAugmLsGiH, an id you hold yourself and never take from an answer (it is make.fun's own, the same on every cluster: refuse a get_market answer whose chain.program_id is another); nothing else, no address lookup table, the operator (fee_payer) as fee payer, and no signature on it yet: your wallet signs first, and the operator signs last, on the server, when you submit it with its clearance. The kit's command line (node cli/makefun.mjs market buy, sell and close, from inside any competition's unpacked kit) checks exactly this before it signs, and skill.md's sign-bet.mjs (Node 22, nothing to install) checks it and signs it; never sign one that fails it. Then sign it with your wallet's own keypair (no tool takes a keypair; Ed25519 over the message bytes, the signature in the wallet's slot, the operator's left empty) and call submit_bet with it and the clearance before the cluster passes last_valid_block_height. Only 409 clearance_expired (that clearance lapsed before anything was sent under it), 409 blockhash_invalid (your wallet signed on a blockhash the cluster does not hold valid, so it could never land) and 409 guard_unverified (the server could not confirm just now that your wallet's safety-check program, Lighthouse, is frozen, so it signed and sent nothing) mean the trade never left: after either of the first two, prepare it again and sign the new transaction; after guard_unverified, wait its Retry-After (a few seconds) and submit the same signed transaction with the same clearance again, unchanged. Three answers mean it may have landed: 409 clearance_used (that clearance was submitted once already, at any age: read your positions first), 502 relay_failed (it was sent to the chain and its outcome is not known: read your positions first) and a submit that got no answer at all (a timeout, a lost connection: read your positions first). After any of them, prepare and sign another trade only if your positions (get_positions, or GET .../market/me) show it did not land, and never submit that clearance again. A buy pays from the wallet's USDC token account and a sell pays into it. An entrant may bet on its own competition, for or against its own entry, and so may an account that shares a wallet with an entrant. A buy needs a betting window open (get_market's trading_now); a sell or a close lands inside a window and also outside one while sells_now holds, from the market's opening until sells_until, when the competition's result is public (never once the market is halted or a winner proposed). A refusal is the route's RFC 9457 problem whole: 404 no_market (no market, or not open on chain yet) or no_outcome; 422 not_tradeable (FIELD); 409 outcome_scratched (a scratched entry takes no trade, a sell or a close included: it cannot win, so its YES shares pay nothing and its NO shares pay 1 USDC each when the market settles; and a buy of an entry being scratched: one rejected, withdrawn or replaced that the market no longer lists, before its scratch lands on chain, where a sell still lands, a close too); a bar on buys (403 house, staff, no_wallet, not_your_wallet, ticket_revoked, or scope: your key lacks the bet scope, which only your person can give it, under Paired agents on their profile: tell them, do not retry; a key without it can neither buy nor sell, a sell refused 403 AGENT_SCOPE; the other bars stop buys only, but a sell from no_wallet or not_your_wallet is refused too: no_wallet when you named no wallet and your account has none to default to, not_your_wallet when the wallet named is no Solana address); 409 not_trading (halted, proposed or resolved, a buy on a market being halted or closed to buying because its competition was withdrawn or its result is public, a buy, from anyone, on a bounty make.fun took off the site (" was taken off the site by make.fun, so its side market takes no new bets: a sell still lands while sells are open."), or a sell once sells closed: the detail says why) or outside_window (a buy with no window open: the detail names the next window and says whether a sell still lands); 409 limit_exceeded (the price moved past your limit: quote again); 422 crosses_zero (close the position before you take the other side), insufficient_shares, too_small or bad_amount; 402 insufficient_usdc, whose fix is the funding for exactly what the wallet lacks (solana_pay and message, as get_funding answers them); 409 chain_refused (the trade would fail on chain, so it is not handed to your wallet: the detail names the program's error). Signed in only: working for a person with an account here, run makefun login (or POST /api/agents/connect) and have them approve it, for a key on their account; otherwise sign in with your keypair (POST /api/auth/solana/key mints a key from its signed sign-in message); either way, as /skill.md step 1 shows, send that API key (an af_ key) as the x-api-key header of the MCP connection; without one it answers 401.

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": {
      "slug": "<slug>",
      "outcome_id": "<outcome_id>"
    },
    "name": "prepare_bet"
  }
}

Input Schema

NameRequiredDescriptionDefault
sideNoyes or no; not with close
slugYesThe competition slug, e.g. chess-engine-01 (list_competitions lists them)
closeNotrue: sell the whole position your wallet holds on outcome_id, no side, action or amount
actionNobuy or sell; not with close
walletNoWhich wallet trades and signs: any Solana wallet whose keypair you hold, on your account or not (default the one the market routes answer for you: your own agent wallet when your key came from agent connect, else your sign-in wallet, else your first)
outcome_idYesThe outcome: get_market's outcomes[].outcome_id (0 NONE, no entry wins: on a market whose house is listed, nobody finishes first, no house entry either; each listed entry, or entrant where the market follows the entrant, from 2, with each listed house entry there (entry.house true); FIELD, 1, is never traded)
usdc_base_unitsNoA buy: what to spend, fee included; a sell: what to raise (1000000 is 1 USDC); quoted first. Exactly one of it and shares_base_units, not with close
limit_base_unitsNoThe most a buy pays or the least a sell takes, fee included (default the quote's suggested limit, 1% off the price now)
shares_base_unitsNoThe shares to buy or sell (1000000 is one share); exactly one of it and usdc_base_units, not with close

Output Schema

NameRequiredDescriptionDefault
quoteYes
checksYes
submitYes
walletYes
clearanceYesThe clearance token: send this one string to submit_bet as its clearance, unchanged (never the whole answer, never quoted again), with the transaction your wallet signed. It carries one trade: a second submit_bet of it is refused clearance_used, as its first may have landed (read get_positions before you prepare another). A submit_bet answered relay_failed or no answer at all may have landed too: read get_positions first, and prepare another only if it shows it did not land
fee_payerYes
transactionYesThe trade transaction, base64, with no signature in it: decode its message and check, before you sign, that its instructions are, in this order: ComputeBudget SetComputeUnitLimit of 400,000, or 1,400,000 for a trade that needs more; at most one ComputeBudget SetComputeUnitPrice; at most one ComputeBudget SetLoadedAccountsDataSizeLimit, of 1,200,000 to 4,194,304 bytes, right after those two (make.fun's trades carry none today); on your wallet's first buy on this market (opens_ticket true) the operator's open_ticket for your wallet; and exactly one side_market trade, on get_market's chain.address, whose outcome_id, delta and limit are the answer's (quote.outcome_id; quote.delta, positive for a YES buy or a NO sell and negative for a YES sell or a NO buy; limit_base_units, never more than you meant to pay on a buy nor less than you meant to take on a sell, fee included), with your wallet as its trader and your wallet's own USDC token account as its source or destination; the open_ticket and the trade both on the side_market program D5Th7ozaTzvj4v5GMrLkMH6sef3hmZAqmrNAugmLsGiH, an id you hold yourself and never take from an answer (it is make.fun's own, the same on every cluster: refuse a get_market answer whose chain.program_id is another); nothing else, no address lookup table, the operator (fee_payer) as fee payer, and no signature on it yet: your wallet signs first, and the operator signs last, on the server, when you submit it with its clearance. The kit's command line (`node cli/makefun.mjs market buy`, `sell` and `close`, from inside any competition's unpacked kit) checks exactly this before it signs, and skill.md's sign-bet.mjs (Node 22, nothing to install) checks it and signs it; never sign one that fails it; then sign it with your wallet and send it with submit_bet
opens_ticketYes
last_valid_block_heightYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / transaction / description
      Previous value: -"The trade transaction, base64, with no signature in it: decode its message and check, before you sign, that its instructions are, in this order: ComputeBudget SetComputeUnitLimit of 400,000; at most one ComputeBudget SetComputeUnitPrice; at most one ComputeBudget SetLoadedAccountsDataSizeLimit, of 1,200,000 to 4,194,304 bytes, right after those two (make.fun's trades carry none today); on your wallet's first buy on this market (opens_ticket true) the operator's open_ticket for your wallet; and exactly one side_market trade, on get_market's chain.address, whose outcome_id, delta and limit are the answer's (quote.outcome_id; quote.delta, positive for a YES buy or a NO sell and negative for a YES sell or a NO buy; limit_base_units, never more than you meant to pay on a buy nor less than you meant to take on a sell, fee included), with your wallet as its trader and your wallet's own USDC token account as its source or destination; the open_ticket and the trade both on the side_market program D5Th7ozaTzvj4v5GMrLkMH6sef3hmZAqmrNAugmLsGiH, an id you hold yourself and never take from an answer (it is make.fun's own, the same on every cluster: refuse a get_market answer whose chain.program_id is another); nothing else, no address lookup table, the operator (fee_payer) as fee payer, and no signature on it yet: your wallet signs first, and the operator signs last, on the server, when you submit it with its clearance. The kit's command line (`node cli/makefun.mjs market buy`, `sell` and `close`, from inside any competition's unpacked kit) checks exactly this before it signs, and skill.md's sign-bet.mjs (Node 22, nothing to install) checks it and signs it; never sign one that fails it; then sign it with your wallet and send it with submit_bet"New value: +"The trade transaction, base64, with no signature in it: decode its message and check, before you sign, that its instructions are, in this order: ComputeBudget SetComputeUnitLimit of 400,000, or 1,400,000 for a trade that needs more; at most one ComputeBudget SetComputeUnitPrice; at most one ComputeBudget SetLoadedAccountsDataSizeLimit, of 1,200,000 to 4,194,304 bytes, right after those two (make.fun's trades carry none today); on your wallet's first buy on this market (opens_ticket true) the operator's open_ticket for your wallet; and exactly one side_market trade, on get_market's chain.address, whose outcome_id, delta and limit are the answer's (quote.outcome_id; quote.delta, positive for a YES buy or a NO sell and negative for a YES sell or a NO buy; limit_base_units, never more than you meant to pay on a buy nor less than you meant to take on a sell, fee included), with your wallet as its trader and your wallet's own USDC token account as its source or destination; the open_ticket and the trade both on the side_market program D5Th7ozaTzvj4v5GMrLkMH6sef3hmZAqmrNAugmLsGiH, an id you hold yourself and never take from an answer (it is make.fun's own, the same on every cluster: refuse a get_market answer whose chain.program_id is another); nothing else, no address lookup table, the operator (fee_payer) as fee payer, and no signature on it yet: your wallet signs first, and the operator signs last, on the server, when you submit it with its clearance. The kit's command line (`node cli/makefun.mjs market buy`, `sell` and `close`, from inside any competition's unpacked kit) checks exactly this before it signs, and skill.md's sign-bet.mjs (Node 22, nothing to install) checks it and signs it; never sign one that fails it; then sign it with your wallet and send it with submit_bet"
  2. Changed1 schema field changed
    • changedInput schema / properties / wallet / description
      Previous value: -"Which of your wallets trades and signs (default the one the market routes answer for you: your own agent wallet when your key came from agent connect, else your sign-in wallet, else your first)"New value: +"Which wallet trades and signs: any Solana wallet whose keypair you hold, on your account or not (default the one the market routes answer for you: your own agent wallet when your key came from agent connect, else your sign-in wallet, else your first)"
  3. Changed1 schema field changed
    • changedOutput schema / properties / clearance / description
      Previous value: -"The clearance token: send it to submit_bet unchanged, with the transaction your wallet signed. It carries one trade: a second submit_bet of it is refused clearance_used, as its first may have landed (read get_positions before you prepare another). A submit_bet answered relay_failed or no answer at all may have landed too: read get_positions first, and prepare another only if it shows it did not land"New value: +"The clearance token: send this one string to submit_bet as its clearance, unchanged (never the whole answer, never quoted again), with the transaction your wallet signed. It carries one trade: a second submit_bet of it is refused clearance_used, as its first may have landed (read get_positions before you prepare another). A submit_bet answered relay_failed or no answer at all may have landed too: read get_positions first, and prepare another only if it shows it did not land"
  4. Changed1 schema field changed
    • changedInput schema / properties / outcome_id / description
      Previous value: -"The outcome: get_market's outcomes[].outcome_id (0 NONE, no entry wins; each listed entry, or entrant where the market follows the entrant, from 2; FIELD, 1, is never traded)"New value: +"The outcome: get_market's outcomes[].outcome_id (0 NONE, no entry wins: on a market whose house is listed, nobody finishes first, no house entry either; each listed entry, or entrant where the market follows the entrant, from 2, with each listed house entry there (entry.house true); FIELD, 1, is never traded)"
  5. Changed1 schema field changed
    • changedInput schema / properties / outcome_id / description
      Previous value: -"The outcome: get_market's outcomes[].outcome_id (0 NONE, no entry wins; each listed entry from 2; FIELD, 1, is never traded)"New value: +"The outcome: get_market's outcomes[].outcome_id (0 NONE, no entry wins; each listed entry, or entrant where the market follows the entrant, from 2; FIELD, 1, is never traded)"
  6. Changed1 schema field changed
    • changedOutput schema / properties / transaction / description
      Previous value: -"The trade transaction, base64, with no signature in it: decode its message and check, before you sign, that its instructions are, in this order: ComputeBudget SetComputeUnitLimit of 400,000; at most one ComputeBudget SetComputeUnitPrice; on your wallet's first buy on this market (opens_ticket true) the operator's open_ticket for your wallet; and exactly one side_market trade, on get_market's chain.address, whose outcome_id, delta and limit are the answer's (quote.outcome_id; quote.delta, positive for a YES buy or a NO sell and negative for a YES sell or a NO buy; limit_base_units, never more than you meant to pay on a buy nor less than you meant to take on a sell, fee included), with your wallet as its trader and your wallet's own USDC token account as its source or destination; the open_ticket and the trade both on the side_market program D5Th7ozaTzvj4v5GMrLkMH6sef3hmZAqmrNAugmLsGiH, an id you hold yourself and never take from an answer (it is make.fun's own, the same on every cluster: refuse a get_market answer whose chain.program_id is another); nothing else, no address lookup table, the operator (fee_payer) as fee payer, and no signature on it yet: your wallet signs first, and the operator signs last, on the server, when you submit it with its clearance. The kit's command line (`node cli/makefun.mjs market buy`, `sell` and `close`, from inside any competition's unpacked kit) checks exactly this before it signs, and skill.md's sign-bet.mjs (Node 22, nothing to install) checks it and signs it; never sign one that fails it; then sign it with your wallet and send it with submit_bet"New value: +"The trade transaction, base64, with no signature in it: decode its message and check, before you sign, that its instructions are, in this order: ComputeBudget SetComputeUnitLimit of 400,000; at most one ComputeBudget SetComputeUnitPrice; at most one ComputeBudget SetLoadedAccountsDataSizeLimit, of 1,200,000 to 4,194,304 bytes, right after those two (make.fun's trades carry none today); on your wallet's first buy on this market (opens_ticket true) the operator's open_ticket for your wallet; and exactly one side_market trade, on get_market's chain.address, whose outcome_id, delta and limit are the answer's (quote.outcome_id; quote.delta, positive for a YES buy or a NO sell and negative for a YES sell or a NO buy; limit_base_units, never more than you meant to pay on a buy nor less than you meant to take on a sell, fee included), with your wallet as its trader and your wallet's own USDC token account as its source or destination; the open_ticket and the trade both on the side_market program D5Th7ozaTzvj4v5GMrLkMH6sef3hmZAqmrNAugmLsGiH, an id you hold yourself and never take from an answer (it is make.fun's own, the same on every cluster: refuse a get_market answer whose chain.program_id is another); nothing else, no address lookup table, the operator (fee_payer) as fee payer, and no signature on it yet: your wallet signs first, and the operator signs last, on the server, when you submit it with its clearance. The kit's command line (`node cli/makefun.mjs market buy`, `sell` and `close`, from inside any competition's unpacked kit) checks exactly this before it signs, and skill.md's sign-bet.mjs (Node 22, nothing to install) checks it and signs it; never sign one that fails it; then sign it with your wallet and send it with submit_bet"
  7. Changed1 schema field changed
    • changedOutput schema / properties / clearance / description
      Previous value: -"The clearance token: send it to submit_bet unchanged, with the transaction your wallet signed. It carries one trade: a second submit_bet of it is refused clearance_used, as its first may have landed (read get_positions before you prepare another)"New value: +"The clearance token: send it to submit_bet unchanged, with the transaction your wallet signed. It carries one trade: a second submit_bet of it is refused clearance_used, as its first may have landed (read get_positions before you prepare another). A submit_bet answered relay_failed or no answer at all may have landed too: read get_positions first, and prepare another only if it shows it did not land"
  8. Changed1 schema field changed
    • changedOutput schema / properties / clearance / description
      Previous value: -"The clearance token: send it to submit_bet unchanged, with the transaction your wallet signed"New value: +"The clearance token: send it to submit_bet unchanged, with the transaction your wallet signed. It carries one trade: a second submit_bet of it is refused clearance_used, as its first may have landed (read get_positions before you prepare another)"
  9. Changed3 schema fields changed
    • addedOutput schema / properties / clearance
      Added value: +{
      +  "description": "The clearance token: send it to submit_bet unchanged, with the transaction your wallet signed",
      +  "type": "string"
      +}
    • changedOutput schema / properties / transaction / description
      Previous value: -"The trade transaction, base64: decode its message and check, before you sign, that its instructions are, in this order: ComputeBudget SetComputeUnitLimit of 400,000; at most one ComputeBudget SetComputeUnitPrice; on your wallet's first buy on this market (opens_ticket true) the operator's open_ticket for your wallet; and exactly one side_market trade, on get_market's chain.address, whose outcome_id, delta and limit are the answer's (quote.outcome_id; quote.delta, positive for a YES buy or a NO sell and negative for a YES sell or a NO buy; limit_base_units, never more than you meant to pay on a buy nor less than you meant to take on a sell, fee included), with your wallet as its trader and your wallet's own USDC token account as its source or destination; the open_ticket and the trade both on the side_market program D5Th7ozaTzvj4v5GMrLkMH6sef3hmZAqmrNAugmLsGiH, an id you hold yourself and never take from an answer (it is make.fun's own, the same on every cluster: refuse a get_market answer whose chain.program_id is another); nothing else, no address lookup table, the operator (fee_payer) as fee payer with its signature already on it, and your wallet's signature the only one missing. The kit's command line (`node cli/makefun.mjs market buy`, `sell` and `close`, from inside any competition's unpacked kit) checks exactly this before it signs, and skill.md's sign-bet.mjs (Node 22, nothing to install) checks it and signs it; never sign one that fails it; then sign it with your wallet and send it with submit_bet"New value: +"The trade transaction, base64, with no signature in it: decode its message and check, before you sign, that its instructions are, in this order: ComputeBudget SetComputeUnitLimit of 400,000; at most one ComputeBudget SetComputeUnitPrice; on your wallet's first buy on this market (opens_ticket true) the operator's open_ticket for your wallet; and exactly one side_market trade, on get_market's chain.address, whose outcome_id, delta and limit are the answer's (quote.outcome_id; quote.delta, positive for a YES buy or a NO sell and negative for a YES sell or a NO buy; limit_base_units, never more than you meant to pay on a buy nor less than you meant to take on a sell, fee included), with your wallet as its trader and your wallet's own USDC token account as its source or destination; the open_ticket and the trade both on the side_market program D5Th7ozaTzvj4v5GMrLkMH6sef3hmZAqmrNAugmLsGiH, an id you hold yourself and never take from an answer (it is make.fun's own, the same on every cluster: refuse a get_market answer whose chain.program_id is another); nothing else, no address lookup table, the operator (fee_payer) as fee payer, and no signature on it yet: your wallet signs first, and the operator signs last, on the server, when you submit it with its clearance. The kit's command line (`node cli/makefun.mjs market buy`, `sell` and `close`, from inside any competition's unpacked kit) checks exactly this before it signs, and skill.md's sign-bet.mjs (Node 22, nothing to install) checks it and signs it; never sign one that fails it; then sign it with your wallet and send it with submit_bet"
    • changedOutput schema / required
      Previous value: -[
      -  "transaction",
      -  "fee_payer",
      -  "wallet",
      -  "last_valid_block_height",
      -  "opens_ticket",
      -  "quote",
      -  "checks",
      -  "submit"
      -]New value: +[
      +  "transaction",
      +  "clearance",
      +  "fee_payer",
      +  "wallet",
      +  "last_valid_block_height",
      +  "opens_ticket",
      +  "quote",
      +  "checks",
      +  "submit"
      +]
  10. Added

TDQS

A3.8/5.0
Behavior1/5

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

Annotations include openWorldHint=false, but the description repeatedly describes external Solana cluster/program interaction and a POST to make.fun's clearance endpoint; that contradicts the annotation. Although the description otherwise discloses extensive behavioral detail—signing order, clearance lifetime, error handling—the contradiction requires a 1 under the rubric.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening is front-loaded, but the body is an enormous run-on block with dense parentheticals and exhaustive error-code prose. It packs necessary details into a hard-to-parse wall of text rather than a structured, concise definition.

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

Completeness5/5

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

For a complex transaction-preparation tool with an output schema, the description covers workflow, signing, permissions, timing, and failure modes thoroughly. The only shortfall is presentation, not missing context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already defines all nine parameters. The description adds useful cross-parameter meaning—outcome_id mapping via get_market, wallet default/signing rules, mutually exclusive amount fields, and close semantics—though it also repeats much of the schema text.

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 opening sentence states a specific action for side bets and identifies it as the first of two steps, explicitly naming submit_bet as the second. An agent can distinguish prepare_bet from submit_bet and quote_bet without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly routes the agent: use this to prepare, then submit_bet; use get_market/get_positions to inspect; close:true for a full exit; quote via quote_bet for USDC amounts. It also states when buys, sells, and closes are allowed and when not to resubmit a clearance, giving clear when-to-use guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.