Skip to main content
Glama
aibtcdev
by aibtcdev

stack_stx

Locks STX in PoX-5 with a chosen signer manager to earn sBTC rewards over 1–96 reward cycles, starting the next cycle.

Instructions

Lock STX in PoX-5 with a signer manager to earn sBTC rewards.

The lock starts next reward cycle and lasts numCycles cycles (1-96). Pick a signer manager with list_stacking_signers. Refused during the prepare phase and if the address is already staking (use extend_stacking). Locking is not a transfer: the transaction carries a staking post-condition for exactly the locked amount.

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

Input Schema

NameRequiredDescriptionDefault
amountYesAmount to lock, in micro-STX
numCyclesYesReward cycles to lock (1-96; one cycle is about two weeks)
signerManagerYesSigner manager contract id, e.g. SP8HK160YD5GHXP69VGA0TC7AQJ1X4CDW3XVERSE.xverse-signer-manager-2
btcRewardAddressNoOptional Bitcoin address to receive rewards. Encoded as `{ pox-addr, max-fee }` signer calldata, the shape reference signer managers (e.g. Xverse, Fast Pool) use to pay rewards to BTC via an sBTC withdrawal. Some managers require it (PlanBetter), some ignore it (native-pool). Omit to receive sBTC where the manager supports that.
signerCalldataHexNoAdvanced: raw signer calldata (hex, max 500 bytes) for managers with a custom format. Cannot be combined with btcRewardAddress.
maxWithdrawalFeeSatsNoMax sBTC withdrawal fee (sats) per payout when btcRewardAddress is set. Default 3000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.77.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that the lock begins next reward cycle rather than immediately, that it is time-committed for numCycles, that it will be refused during the prepare phase or when already staking, and that the transaction carries a staking post-condition for exactly the locked amount. It omits wallet-unlock/auth prerequisites, fee handling, and how to undo an active lock, which keeps it short of a 5.

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?

Front-loaded with the action and effect, followed by timing, prerequisite, and refusal conditions, then a clarification of non-transfer semantics. The closing tip about earning_opportunities is mildly promotional but costs one short line.

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 six-parameter mutation tool with no annotations and no output schema, the description covers mechanics, timing, and failure modes well. It leaves a gap on execution prerequisites (unlocked wallet, fee/network assumptions) and on what the caller gets back, which the agent must infer.

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% and the schema already explains all six parameters, including the advanced btcRewardAddress/signerCalldataHex/maxWithdrawalFeeSats options. The description adds the timing semantics of numCycles and the exact-amount post-condition on `amount`, but says nothing about the three optional reward-address parameters. 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 and resource (lock STX), the protocol (PoX-5), the required collaborator (signer manager), and the payoff (sBTC rewards). It is clearly distinguishable from neighbors like extend_stacking, unstake_stx, and list_stacking_signers.

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 routes the agent to list_stacking_signers to choose a manager and to extend_stacking if the address is already staking, and names a hard precondition (refused during the prepare phase). It does not, however, say when to prefer stack_stx over related stacking entry points such as pillar_direct_stack_stx or stackspot_join_pot.

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