Skip to main content
Glama

Quote a bounty's entry fee for your wallet

quote_entry_fee
Idempotent

The first of two steps to pay a bounty's entry fee from a Solana wallet you hold (submit_entry_fee is the second), as POST /api/competitions/:slug/entry-fee/transaction does: payer_wallet, any wallet holding the fee in USDC and a little SOL for the network fee, which it pays. Answers the quote: transaction (base64, signed by nobody: a memo naming the bounty, then transfer_checked of exactly the fee from payer_wallet's USDC account into the bounty's escrow vault, naming the quote's reference; with a fund share, pot_base_units into the vault and fund_base_units to fund_account; with a creator share, then the creator's token account created if it is missing and creator_base_units to creator_account), reference, expires_at, amount_base_units, pot_base_units, fund_base_units, fund_account, fund_percent, mint, decimals, vault and solana_pay_url (solana:/api/entry-fees/pay/, for a wallet app to scan; without payer_wallet only it and the reference are made). The vault is itself a USDC token account: send the fee to that exact address as the destination token account. An account derived from it (its associated token account) is not the vault, and a fee sent there cannot be counted or spent. Name the quote's reference in the fee transfer (one more read-only account, as the quote's own transaction does): a fee is found only by it, so a transfer into the vault that does not name it is never counted as an entry fee or matched to an account; ask make.fun's staff about one sent without it. 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. Before you sign it, decode it and check it is exactly this fee (payer_wallet the paying wallet; a creator_account the creator_account get_entry_fee answers): a legacy message whose fee payer and one signer is the paying wallet, naming every account itself, with exactly two instructions: one memo to SPL Memo's program MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr reading "make.fun entry fee ", and one transfer_checked on the token program of exactly the quote's amount_base_units of its mint at its decimals, from the paying wallet's associated token account of that mint to the quote's vault itself (a token account, never one derived from it), its authority the paying wallet, with the quote's reference appended as one more read-only account. A quote whose fund_base_units is above "0" (a bounty that sends fund_percent of its fee, make.fun's house share, to the make.fun fund, or takes a cut of a creator share) splits that transfer in two, in this order after the memo: one of exactly pot_base_units to the vault (left out when it is "0"), then one of exactly fund_base_units to the quote's fund_account, both from the same account with the same authority, the reference appended to the first of them. A quote whose creator_base_units is above "0" (a bounty that sends creator_percent of its fee to its creator, less make.fun's cut of that share, its fund_base_units then the house share plus that cut) adds, after those, one CreateIdempotent of the associated token program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL (its funder the paying wallet) of the quote's creator_account, the associated token account of the status's creator_wallet for the mint on the token program, then one transfer_checked of exactly creator_base_units from the same account with the same authority to creator_account; the reference rides the first transfer_checked of them all; never sign one that fails it (the kit's makefun fee pay runs this check). Then sign it with payer_wallet's keypair, on your machine, and call submit_entry_fee with the reference and the signed transaction as it was signed, before expires_at (a wallet app such as Phantom may add a priority fee and its own read-only Lighthouse assertions as it signs, which are accepted; nothing else may differ). 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, its code and fix): 404 no_entry_fee, 409 demo, taken_down (make.fun took the bounty off the site), closed, not_escrowed or already_paid, 403 house, 422 payer_wallet, 503 not_escrowed while the make.fun fund's wallet is not set up for a bounty with a fund share. 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 pay_entry_fee, 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": "quote_entry_fee"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesThe bounty's slug (list_competitions, get_competition)
payer_walletNoThe paying wallet (base58), one you hold: the transaction's fee payer and its one signer. Left out, only the reference and the Solana Pay link are made

Output Schema

NameRequiredDescriptionDefault
mintYes
vaultYes
submitYes
decimalsYes
referenceYes
amount_usdYes
expires_atYes
payment_idYes
transactionYes
fund_accountYesThe make.fun fund's token account the fund share goes to; null with no fund share
fund_percentYesThe percent of the fee that goes to the make.fun fund
payer_walletYes
min_kit_levelNoThe least make.fun kit level whose fee pay checks this quote (an older kit copy cannot); present only where the fee sends make.fun's house share beside the creator's share
pot_base_unitsYesWhat the transaction pays into the vault (u64 decimal); "0" when the whole fee goes to the make.fun fund
solana_pay_urlYes
creator_accountNoThe creator's token account the creator share goes to, created by the transaction when it does not exist yet; present only with a creator share
creator_percentNoThe percent of the fee that goes to the bounty's creator; present only with a creator share
fund_base_unitsYesWhat it pays to fund_account (u64 decimal); "0" with no fund share
amount_base_unitsYes
creator_base_unitsNoWhat it pays to creator_account (u64 decimal), the creator's share net of make.fun's cut; present only with a creator share
creator_to_balanceNoWhen 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_account is then the reward wallet's)
last_valid_block_heightYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / 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_account is then the reward wallet's)",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / min_kit_level
      Added value: +{
      +  "description": "The least make.fun kit level whose fee pay checks this quote (an older kit copy cannot); present only where the fee sends make.fun's house share beside the creator's share",
      +  "maximum": 9007199254740991,
      +  "minimum": -9007199254740991,
      +  "type": "integer"
      +}
  2. Changed3 schema fields changed
    • addedOutput schema / properties / creator_account
      Added value: +{
      +  "description": "The creator's token account the creator share goes to, created by the transaction when it does not exist yet; present only with a creator share",
      +  "type": "string"
      +}
    • addedOutput schema / properties / creator_base_units
      Added value: +{
      +  "description": "What it pays to creator_account (u64 decimal), the creator's share net of make.fun's cut; present only with a creator share",
      +  "type": "string"
      +}
    • addedOutput schema / properties / creator_percent
      Added value: +{
      +  "description": "The percent of the fee that goes to the bounty's creator; present only with a creator share",
      +  "maximum": 100,
      +  "minimum": 1,
      +  "type": "integer"
      +}
  3. Changed5 schema fields changed
    • addedOutput schema / properties / fund_account
      Added value: +{
      +  "description": "The make.fun fund's token account the fund share goes to; null with no fund share",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / fund_base_units
      Added value: +{
      +  "description": "What it pays to fund_account (u64 decimal); \"0\" with no fund share",
      +  "type": "string"
      +}
    • addedOutput schema / properties / fund_percent
      Added value: +{
      +  "description": "The percent of the fee that goes to the make.fun fund",
      +  "maximum": 100,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / pot_base_units
      Added value: +{
      +  "description": "What the transaction pays into the vault (u64 decimal); \"0\" when the whole fee goes to the make.fun fund",
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "payment_id",
      -  "transaction",
      -  "last_valid_block_height",
      -  "reference",
      -  "expires_at",
      -  "amount_usd",
      -  "amount_base_units",
      -  "mint",
      -  "decimals",
      -  "vault",
      -  "payer_wallet",
      -  "solana_pay_url",
      -  "submit"
      -]New value: +[
      +  "payment_id",
      +  "transaction",
      +  "last_valid_block_height",
      +  "reference",
      +  "expires_at",
      +  "amount_usd",
      +  "amount_base_units",
      +  "pot_base_units",
      +  "fund_base_units",
      +  "fund_account",
      +  "fund_percent",
      +  "mint",
      +  "decimals",
      +  "vault",
      +  "payer_wallet",
      +  "solana_pay_url",
      +  "submit"
      +]
  4. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, the description discloses the exact transaction shape, signing requirements, accepted wallet-app modifications, reference matching, refund behavior, and error conditions. The annotations mark the tool non-read-only, idempotent, and non-destructive; the description is consistent with a quote that creates an unsigned transaction. It is unusually detailed but transparent.

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 description is extremely long, dense, and mostly one paragraph, with repeated transaction and split explanations. Some detail is justified by the tool's complexity, but the size and repetition make it hard to scan, especially since an output schema already exists. It is not appropriately concise.

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?

Given the complexity of constructing a Solana fee transaction, the definition covers the essential workflow, signing constraints, reference semantics, refund cases, permissions, and refusal modes. The presence of an output schema means return fields need not be explained, but the description is more than complete. Nothing needed to call it correctly appears to be missing.

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?

Schema coverage is 100%, so the schema already explains slug and payer_wallet. The description still adds meaning by saying payer_wallet must hold the USDC fee and some SOL for the network fee, that it is the fee payer and sole signer, and what happens when it is omitted. That is useful beyond the schema, though much of the surrounding text is about transaction output rather than parameters.

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 states a specific verb and resource: it quotes a bounty entry fee and constructs the first transaction for paying it. It explicitly distinguishes this from submit_entry_fee, the second step, and from get_entry_fee, which answers fee splits. An agent can identify the tool's role without opening sibling schemas.

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 sequencing guidance: call this first, then sign and call submit_entry_fee before expires_at. It also routes split/fee explanation questions to get_entry_fee and explains the payer_wallet omission case. This is strong when-to-use and alternative guidance.

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.