Skip to main content
Glama
aibtcdev
by aibtcdev

stacks_market_redeem

Redeem winning shares from a resolved Stacks Market prediction market to claim STX. Call after market resolution with an unlocked wallet on mainnet.

Instructions

Redeem winning shares after a Stacks Market prediction market is resolved.

Call this after the market has been resolved to claim STX for the winning side shares you hold.

Requires an unlocked wallet. Only available on mainnet.

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

Input Schema

NameRequiredDescriptionDefault
market_idYesMarket ID (epoch ms timestamp) of the resolved market

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.77.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, this description does real work: it discloses the unlocked-wallet requirement, the mainnet-only restriction, the payout currency (STX), and the resolved-market precondition. It stops short of stating idempotency, fee behavior, or what happens to losing shares, which matters for a value-moving claim.

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 action, precondition, and wallet/mainnet constraints come first in tight sentences. The trailing 'Tip' about earning_opportunities is tangential cross-sell but brief and does not obscure the mechanic.

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 one-parameter mutation tool with no output schema, the description covers the key call-time facts an agent needs: wallet must be unlocked, mainnet only, market must be resolved, and STX is the payout. Missing return/error detail is the main residual gap.

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 coverage is 100% and the single market_id parameter is fully documented as an epoch-ms timestamp in the schema. The description adds no extra meaning about the parameter, so baseline 3 applies.

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 ('Redeem'), the exact resource ('winning shares'), and the protocol context ('Stacks Market prediction market'). Within the stacks_market_* family it is clearly the post-resolution claim action, distinct from buy/sell/quote siblings.

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?

Explicitly says to call it 'after the market has been resolved' and only for winning-side shares, which sets the triggering condition. It doesn't name alternatives (e.g., what to call before resolution or how to check resolution status via stacks_market_get), so it stops short of full routing guidance.

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