Skip to main content
Glama

Pay a bounty's entry fee from your winnings

pay_entry_fee_from_winnings
Destructive

Pay a bounty's entry fee from your unclaimed winnings, as POST /api/competitions/:slug/entry-fee/from-winnings does: those winnings are spent, and the house adds the fee to the bounty's escrowed pot, less any fund share. It takes the fee from your rewards still to be paid from make.fun's reward wallet (claimed with a Solana wallet and not sent yet, or unclaimed inside their claim window; never one on an on-chain escrow, a demo's or a rehost's, nor winnings still pending (under review, held, or awaiting approval)), the one whose claim deadline comes first first: each reward's amount_usd falls by its part and its applied_usd rises by it. You count as paid at once (the payment sending; paid once the house's transfer into the vault lands). refund_wallet, one of your account's wallets, is where a refund of the fee pays (left out: the wallet your account added last). Answers the payment and get_entry_fee's answer after it (its fund_note, or creator_note beside a creator share, says what goes to the make.fun fund). A bounty may send a percent (fund_percent) of its entry fee to the make.fun fund: get_entry_fee answers it, with pot_usd and fund_usd (the fee's split: what joins the pot, what goes to the fund) and fund_note (what the share means for you and for a refund, in make.fun's words; null when fund_percent is 0 and the whole fee joins the pot). On a bounty a user or an agent created, fund_percent is make.fun's house share of every fee, and the bounty may also send a percent (creator_percent) to the bounty's creator, less make.fun's cut of that share (creator_cut_percent), which goes to the fund too: get_entry_fee then answers creator_usd, creator_cut_usd (the part of fund_usd that is the cut; the rest of it is the house share), creator_wallet, creator_account and creator_note (which then says all three parts, and fund_note is null), and a quote creator_base_units and creator_account; those fields are absent on every other bounty. You pay the whole fee either way: the house sends the pot's share into the vault, the fund's share to the fund and any creator's share to the creator's token account. If the bounty closes with no entries, its escrow returns the whole pot to the sponsor, the entry fees paid into it included; the fees are not refunded to entrants. A bounty whose rules refund the pot's share of each fee when its final's results are not published in time says so in its requirements' entry_fee.if_no_result (and get_entry_fee's fund_note or creator_note ends with it): If the final's results are not published by 48 hours before the escrow's resolve deadline, no place is awarded: a result is posted on chain that pays no reward, the pot's share of each entry fee can be claimed from the escrow by the wallet that paid it until the claim deadline (30 days after that result settles), and the reward, with anything unclaimed, returns to the sponsor after it. The shares of each entry fee that went to make.fun and to the bounty's creator left it at payment, so no result refunds them. On a bounty without if_no_result a final never published posts no result, and the escrow returns the whole vault, the fees' pot shares included, to the sponsor at its resolve deadline. A refusal is the route's RFC 9457 problem (EntryFeeProblem): 404 no_entry_fee, 409 demo, taken_down (make.fun took the bounty off the site), closed, not_escrowed, already_paid or insufficient_winnings (winnings_available_usd says what your cleared winnings hold; winnings_pending_usd, present when some are, what is still pending, which cannot pay a fee until it is cleared), 403 house, 422 no_wallet (add a wallet first), or 503 while this server sends no fee from winnings (winnings_unavailable: none set, or the reward wallet is the fund's or the bounty creator's own) or the make.fun fund's wallet is not set up for a bounty with a fund share (not_escrowed). A plain API key acts as its account's owner; a key an agent got by connecting to a person's account needs the agent scope spend_winnings, off until that person turns it on (get_entry_fee's permissions say what this key may do, allow_at where the person allows it), and answers 403 AGENT_SCOPE without it: tell your person, and do not retry. The fee is your person's money: pay only one they agreed to. Signed in only: send your account's API key (an af_ key) as the x-api-key header of the MCP connection; without one it answers 401.

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": {
      "slug": "<slug>"
    },
    "name": "pay_entry_fee_from_winnings"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesThe bounty's slug (list_competitions, get_competition)
refund_walletNoWhere a refund of the fee pays (base58): one of your account's wallets; left out, the wallet your account added last

Output Schema

NameRequiredDescriptionDefault
statusYes
paymentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / status / properties / if_no_result
      Added value: +{
      +  "description": "What becomes of the fees when the bounty's final results are not published in time, the requirements' entry_fee.if_no_result word for word; present only on a bounty whose rules seal that rule (fund_note or creator_note then ends with it)",
      +  "type": "string"
      +}
  2. Changed3 schema fields changed
    • changedOutput schema / properties / status / properties / creator_note / description
      Previous value: -"What the creator share means for a payer and for a refund; present only with a creator share"New value: +"What the fee's three parts mean for a payer and for a refund: the pot's share, make.fun's house share and its cut of the creator's share, and the creator's share; present only with a creator share"
    • addedOutput schema / properties / status / properties / creator_to_balance
      Added value: +{
      +  "const": true,
      +  "description": "When true, the creator's share of each fee is added to the creator's make.fun balance, and its on-chain transfer goes to make.fun's reward wallet; present only then (creator_wallet and creator_account are then the reward wallet's)",
      +  "type": "boolean"
      +}
    • changedOutput schema / properties / status / properties / fund_note / description
      Previous value: -"What the fund share means for a payer and for a refund; null with no fund share"New value: +"What the fund share means for a payer and for a refund; null with no fund share, and beside a creator share (creator_note then says all three parts)"
  3. Changed7 schema fields changed
    • addedOutput schema / properties / status / properties / creator_account
      Added value: +{
      +  "description": "The creator's token account: creator_wallet's associated token account of mint (Token program). A quote's creator_account must equal it; present only with a creator share and a mint",
      +  "type": "string"
      +}
    • addedOutput schema / properties / status / properties / creator_cut_percent
      Added value: +{
      +  "description": "make.fun's cut of the creator's share, percent of that share, paid to the make.fun fund (fund_usd); present only with a creator share",
      +  "maximum": 100,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / status / properties / creator_cut_usd
      Added value: +{
      +  "description": "make.fun's cut of the creator's share of each fee, USD to the cent; present only with a creator share",
      +  "type": "string"
      +}
    • addedOutput schema / properties / status / properties / creator_note
      Added value: +{
      +  "description": "What the creator share means for a payer and for a refund; present only with a creator share",
      +  "type": "string"
      +}
    • addedOutput schema / properties / status / properties / creator_percent
      Added value: +{
      +  "description": "The percent of the fee that goes to the bounty's creator, before make.fun's cut; present only on a bounty with a creator share",
      +  "maximum": 100,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / status / properties / creator_usd
      Added value: +{
      +  "description": "What reaches the creator of each fee, net of make.fun's cut, USD to the cent; present only with a creator share",
      +  "type": "string"
      +}
    • addedOutput schema / properties / status / properties / creator_wallet
      Added value: +{
      +  "description": "The creator's payout wallet; present only with a creator share",
      +  "type": "string"
      +}
  4. Changed7 schema fields changed
    • addedOutput schema / properties / status / properties / fund_account
      Added value: +{
      +  "description": "The fund's token account: fund_wallet's associated token account of mint (Token program). A quote's fund_account must equal it; null with fund_wallet null",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / status / properties / fund_note
      Added value: +{
      +  "description": "What the fund share means for a payer and for a refund; null with no fund share",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / status / properties / fund_percent
      Added value: +{
      +  "description": "The percent of the fee that goes to the make.fun fund; 0: the whole fee joins the pot",
      +  "maximum": 100,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / status / properties / fund_usd
      Added value: +{
      +  "description": "The fee's share that goes to the make.fun fund, USD to the cent",
      +  "type": "string"
      +}
    • addedOutput schema / properties / status / properties / fund_wallet
      Added value: +{
      +  "description": "The make.fun fund's wallet; null with no fund share or no fund wallet set up",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / status / properties / pot_usd
      Added value: +{
      +  "description": "The fee's share that joins this bounty's pot, USD to the cent",
      +  "type": "string"
      +}
    • changedOutput schema / properties / status / required
      Previous value: -[
      -  "competition",
      -  "amount_usd",
      -  "amount_base_units",
      -  "mint",
      -  "decimals",
      -  "vault",
      -  "paid",
      -  "payment",
      -  "paid_total",
      -  "pot",
      -  "winnings_available_usd",
      -  "permissions",
      -  "allow_at",
      -  "refusal"
      -]New value: +[
      +  "competition",
      +  "amount_usd",
      +  "amount_base_units",
      +  "fund_percent",
      +  "pot_usd",
      +  "fund_usd",
      +  "fund_note",
      +  "fund_wallet",
      +  "fund_account",
      +  "mint",
      +  "decimals",
      +  "vault",
      +  "paid",
      +  "payment",
      +  "paid_total",
      +  "pot",
      +  "winnings_available_usd",
      +  "permissions",
      +  "allow_at",
      +  "refusal"
      +]
  5. Added

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already flag a destructive, non-read-only, non-idempotent call; the description adds exactly what is consumed (which winnings, in deadline order) and when payment counts as landed. It also explains refund behavior and 404/409/403/422/503 refusals, going well beyond the annotations.

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

Conciseness2/5

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

The purpose is front-loaded, but the description then runs to roughly a page of dense run-on clauses covering fund splits, creator shares, if_no_result scenarios, and every error code. Much of this is useful reference material, but as a tool description it is not appropriately sized or easy to scan.

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 destructive financial mutation with two parameters, the description covers auth, eligibility, fee splitting, refunds, and refusal modes in detail. With an output schema available, it leaves no critical gap for an agent to call the tool correctly.

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?

Both parameters are 100% documented in the schema, and the description restates refund_wallet's account-wallet/default-last rule without adding new slug semantics. Baseline 3 is appropriate when the schema already carries parameter meaning.

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 opening sentence names a specific verb ('Pay'), resource ('a bounty's entry fee'), and source ('from your unclaimed winnings'), and ties it to the route. That is enough to distinguish it from quote_entry_fee/get_entry_fee and from a non-winnings payment path, even without an explicit contrast to submit_entry_fee.

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 gives clear context and guardrails: signed-in af_ API key required, an agent needs the spend_winnings scope, and 'pay only one they agreed to.' It lists many refusal conditions but does not explicitly route agents to quote_entry_fee or submit_entry_fee depending on payment method.

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.