Skip to main content
Glama
aibtcdev
by aibtcdev

stacks_market_buy_yes

Purchase YES shares in Stacks Market prediction markets with a max-cost cap that protects against slippage; the transaction fails if cost exceeds your limit.

Instructions

Buy YES shares in a Stacks Market prediction market.

Uses the buy-yes-auto function with slippage protection via a max-cost cap. The transaction will fail if the cost exceeds max_cost_ustx.

Requires an unlocked wallet. Only available on mainnet.

Tip: call earning_opportunities to see how to put your assets to work.

Input Schema

NameRequiredDescriptionDefault
sharesYesNumber of YES shares to buy (integer, smallest unit)
market_idYesMarket ID (epoch ms timestamp)
max_cost_ustxYesMaximum cost in micro-STX you are willing to pay (slippage protection)
target_cap_ustxYesTarget liquidity cap in micro-STX (use current market cap from stacks_market_get)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.77.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations present, the description carries the burden well: it discloses the on-chain function invoked, that slippage protection is enforced by a hard cap, that the transaction aborts if the cap is exceeded, and that an unlocked wallet plus mainnet are required. It does not say whether the call signs and broadcasts automatically or whether spending is irreversible, which would complete the mutation picture.

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

Conciseness4/5

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

The core mechanics are front-loaded in three tight lines covering action, slippage mechanism, and prerequisites. The closing 'Tip: call earning_opportunities' is promotional and does not help an agent invoke this tool, so it dilutes an otherwise efficient definition.

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

Completeness4/5

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

For a mutation tool with no annotations and no output schema, the description supplies the prerequisites, the failure mode, and the contract path an agent needs to avoid a footgun. It stops short of describing what a successful call returns (transaction ID, broadcast vs. signed payload), which an agent would still need to know.

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 all four parameters including the micro-STX units are already documented in the schema. The description reinforces the max_cost_ustx slippage role but adds no unit, format, or sourcing detail beyond what the schema and its 'use current market cap from stacks_market_get' note already provide.

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?

States a specific verb and resource ('Buy YES shares in a Stacks Market prediction market') and names the underlying contract function (buy-yes-auto). The YES-side qualifier inherently separates it from the buy_no/sell_yes/sell_no siblings without needing to name them.

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

Usage Guidelines3/5

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

Gives preconditions (unlocked wallet, mainnet only) and a failure condition (cost above max_cost_ustx), which is useful context. But it never routes the agent between this tool and stacks_market_quote_buy, stacks_market_buy_no, or stacks_market_get for pricing, so the choice of tool is left to inference.

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

Deploy Server

Other Tools