Skip to main content
Glama

Award a prize from your coin's pot

award_prize
DestructiveIdempotent

A coin in prizes mode: gives winner an item, bought now from the coin's open pot at its fresh price plus a round's margin, as a round of the coin's: { round }. item is an id from search_prizes. The same idempotencyKey again answers the same round, whatever changed since. Refused when the pot is short, the item can't be bought now, or the winner is one of the coin's pools, Souvenir's wallets or its creator. 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>",
      "winner": "<winner>",
      "item": "<item>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "award_prize"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemYesThe prize: an id from search_prizes.
mintYesThe coin's mint address (base58).
winnerYesThe wallet that wins it (base58).
coinKeyNoYour coin key (ck_live_…, from create_coin_key). Not needed when the request sends it as Authorization: Bearer ck_live_….
idempotencyKeyYesYour own id for this award, 1 to 100 letters, digits or symbols: sent again, the same round answers.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already flag destructive, idempotent and open-world, and the description adds real substance on top: idempotency replay semantics ('The same idempotencyKey again answers the same round, whatever changed since'), the spending source (the coin's open pot at fresh price plus margin), and the scope of a key across every coin its wallet created. The quoted pause-only error message further distinguishes a transient API state from a business-rule refusal. It stops short of saying what the returned round contains or whether a short pot is a hard or soft failure.

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?

Purpose is correctly front-loaded and each sentence carries distinct information (purpose, item source, idempotency, refusals, auth, pause error). But it is six dense clauses with awkward constructions like 'as a round of the coin's: { round }' — a leaked template placeholder — and a closing sentence that spends many words on a rare failure mode.

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 destructive, open-world mutation with no output schema, the description covers preconditions, refusal cases, credential handling, and idempotency well. What remains thin is the success side: the round placeholder is never explained, so an agent cannot predict what the response carries (round id, price paid, margin) and must call to find out.

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 the baseline is 3. The description does add value on two parameters — it confirms item must come from search_prizes and documents idempotencyKey's replay behavior and the Authorization-header alternative to coinKey, which the schema states only briefly. However, it says nothing about mint or winner beyond what the schema already declares.

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?

Names a specific verb and resource ('gives winner an item, bought now from the coin's open pot at its fresh price plus a round's margin') and scopes it to a coin in prizes mode. It also distinguishes itself from siblings by sourcing the item from search_prizes and the key from create_coin_key. The phrase 'as a round of the coin's: { round }' is an unfilled template fragment that blurs the object of the verb.

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?

It states the gating mode ('A coin in prizes mode'), enumerates the three refusal conditions (pot short, item not buyable now, winner is a pool/Souvenir wallet/creator), and routes to search_prizes for the item id and create_coin_key for the credential. What it lacks is an explicit comparison to an alternative award path — none is named, so the agent must infer there is no sibling to prefer.

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