Skip to main content
Glama

Set your coin's mode

set_coin_mode
DestructiveIdempotent

Your coin's mode from its next round (the round filling keeps its own): full (its rounds draw its prize), draws (each round pays drawSol in SOL to its winner), prizes (you give prizes from its pot with award_prize; only a coin nobody but you holds can switch to it, has_holders otherwise) or redeem (no draws: the pot pays for redemptions, and a holder burns enough coins for its one prize, a store item or a gift card; only a coin nobody but you holds can switch to it, and it stays one once others hold it). Into redeem or out of it: has_holders while anyone but you holds the coin, and redeeming while a redemption is on its way (a burn prepared in the last 15 minutes, or one found and not settled); into redeem also rounds_open while a round of the coin is unfinished. Answers the coin, as get_coin does. Takes a coin key from create_coin_key as coinKey or as the request's Authorization: Bearer ck_live_… header; it works for every coin its wallet created. Refused with "The coin API's keys and writes are not open yet." only if Souvenir pauses the coin API.

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": {
      "mint": "<mint>",
      "mode": "<mode>"
    },
    "name": "set_coin_mode"
  }
}

Input Schema

NameRequiredDescriptionDefault
mintYesThe coin's mint address (base58).
modeYes
coinKeyNoYour coin key (ck_live_…, from create_coin_key). Not needed when the request sends it as Authorization: Bearer ck_live_….
drawSolNodraws: the SOL each round pays, 0.1 to 100, as a decimal string ("0.5").

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / mode / enum
      Previous value: -[
      -  "full",
      -  "draws",
      -  "prizes"
      -]New value: +[
      +  "full",
      +  "draws",
      +  "prizes",
      +  "redeem"
      +]
  2. Added

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the destructive/idempotent annotations, it explains concrete effects: draws pay drawSol in SOL, prizes come from the pot, redeem burns a holder's coins for a prize/item/gift card, and redeem persists once others hold the coin. It also discloses authentication scope and the only refusal condition.

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

Conciseness3/5

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

The content is valuable but delivered as one dense, heavily parenthetical sentence that is difficult to parse on first read. It is front-loaded with the core mode behavior, but the nested restrictions and redemption details would benefit from clearer structure.

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 four-parameter mutation tool with no output schema, the description is unusually complete: it covers timing, mode effects, switching restrictions, authentication, key scope, and refusal behavior. The note that it answers as get_coin does substitutes adequately for an output schema.

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?

The mode enum values are given substantive meanings that the schema alone does not provide, and coinKey is explained as coming from create_coin_key or the Authorization header. The mint parameter and drawSol format are mostly left to the schema, which has 75% description coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description makes clear that this tool sets a coin's mode for its next round, and it elaborates the four modes and their effects. It distinguishes related behavior from award_prize and get_coin, though the opening is a noun phrase rather than an explicit setting verb.

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?

It gives explicit when-not conditions for switching into or out of redeem, including has_holders, redeeming, and rounds_open. It also names award_prize for granting prizes in prizes mode and clarifies that the round currently filling keeps its existing mode.

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.

Resources