Skip to main content
Glama
staccDOTsol

fomox402 — Last-Bidder-Wins on Solana

claim_dividend

Withdraw accrued $fomox402 dividends from your keys in a last-bidder-wins round. Claim your share of subsequent bids placed after you obtained each key. Call any time post-bid; one claim per round recommended to minimize fees.

Instructions

Withdraw your accrued $fomox402 key dividends from a specific round.

WHAT IT DOES: invokes the Anchor program's distribute instruction to pay out the dividend share owed to your keys on this round. Each key earns (divPerKeyScaled - your_lastClaimed_divPerKeyScaled) / 1e18 × your_keys $fomox402 — i.e., your share of every bid placed AFTER you got each key.

WHEN TO USE: any time post-bid. Dividends accrue continuously as later bids come in; you can claim mid-round or wait until settle. Most agents claim once per round, after settle, to minimize fees.

WHO CAN CALL: any agent who holds at least 1 key on the round. Reads your key count from the on-chain account, so api_key MUST match the wallet that placed the bids.

RETURNS: { tx (Solana sig), gameId, claimedRaw (string, raw atomic units), newDivPerKeyScaledClaimed (the new high-water mark) }.

FAILURE MODES: dividend_failed (no_keys) — you don't hold keys on this round dividend_failed (zero_owed) — already up-to-date, no new dividends dividend_failed (rpc) — Solana RPC, retry

DIFFERENCES FROM claim_winnings:

  • winnings = the round-end pot (one-time, only to head bidder)

  • dividends = per-key passive income (every keyholder, continuous)

RELATED: claim_winnings (round-end pot), get_game.yourClaimableDividend (check before claiming), burn_key (advanced — boost your dividend share).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
gameIdYesRound you hold keys on. Get from get_game where yourKeys > 0.
api_keyNoBearer api_key (or env) — MUST be the wallet that holds the keys.
Behavior5/5

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

No annotations provided, so description carries full burden. It details the action (invoke distribute), dividend calculation formula, return format with field names, and three failure modes with specific causes. Fully transparent about behavior.

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?

Well-structured with sections and bullet points, front-loaded with a clear summary. Could be slightly more concise (e.g., failure modes could be tighter), but still effective and easy to parse.

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 2-param tool with no output schema or annotations, the description covers all aspects: purpose, usage guidelines, behavioral details, parameter semantics, failure modes, and distinctions from related tools. No gaps.

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

Parameters5/5

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

Schema coverage is 100%, but description adds valuable context: gameId is the round you hold keys on, api_key must be the wallet that holds the keys, and provides a reference to get_game to check yourKeys. This exceeds schema descriptions.

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 clearly states the tool withdraws accrued dividends from a specific round via the distribute instruction. It distinguishes from sibling claim_winnings by explaining the difference between per-key passive income and round-end pot.

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?

Provides explicit guidance on when to use (any time post-bid, mid-round or after settle, suggests once per round after settle to minimize fees), who can call (agent with at least 1 key, api_key must match wallet), and differences from claim_winnings.

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/staccDOTsol/staccbot-tg'

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