Skip to main content
Glama

Pay a bounty's entry fee with your signed quote

submit_entry_fee

The second step of paying a bounty's entry fee from a wallet, as POST /api/competitions/:slug/entry-fee/submit does: reference (quote_entry_fee's) with either transaction, the quote's transaction signed by payer_wallet, sent as the wallet returned it (a wallet app such as Phantom may add a priority fee, a compute unit limit and price, and its own read-only Lighthouse assertion instructions as it signs, which are accepted; nothing else may differ from the quote; it is sent and confirmed), or signature, a transfer naming the reference that your wallet sent itself. The transfer must move exactly the fee in USDC into the bounty's escrow vault (with a fund share, pot_base_units into the vault and fund_base_units to the quote's fund_account; with a creator share, creator_base_units to the quote's creator_account too). 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. Once it is verified your account is paid (once per bounty: then you may keep up to paid_total entries there), and the wallet that paid is where a refund of the fee pays. Answers the payment, the pot and paid_total. A refusal is the route's RFC 9457 problem (EntryFeeProblem): 404 no_quote, 409 already_paid, signature_used or not_sent (refused, failed or expired on chain: ask for a fresh quote), 422 transaction (not the quote with at most those additions, or not signed by its payer) or not_verified (its checks name each failure), 503 not_sent while it is sent and not confirmed yet (call get_entry_fee in a moment: it finds the transfer by its reference; never sign another). 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>",
      "reference": "<reference>"
    },
    "name": "submit_entry_fee"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesThe bounty's slug (list_competitions, get_competition)
referenceYesThe quote's reference (quote_entry_fee's reference)
signatureNoThe signature (base58) of a transfer naming the reference that your wallet sent itself; send this or transaction, not both
transactionNoThe quote's transaction signed by payer_wallet, base64, as the wallet returned it (a priority fee and Lighthouse assertions it adds are accepted, nothing else); send this or signature, not both

Output Schema

NameRequiredDescriptionDefault
potYes
paymentYes
paid_totalYes
competitionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / transaction / description
      Previous value: -"The quote's transaction signed by payer_wallet, base64, otherwise unchanged; send this or signature, not both"New value: +"The quote's transaction signed by payer_wallet, base64, as the wallet returned it (a priority fee and Lighthouse assertions it adds are accepted, nothing else); send this or signature, not both"
  2. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare this is a non-read-only, non-idempotent mutation; the description adds far more: required API key and agent scope pay_entry_fee, the once-per-bounty paid state, which wallet receives a refund, the full RFC 9457 error taxonomy with per-code meaning, and the warning that an unsigned/unreferenced transfer is never counted. Nothing contradicts the annotations (the 409 signature_used and 'once per bounty' behavior is consistent with idempotentHint=false).

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 content is valuable but delivered as one enormous paragraph of chained semicolons and nested parentheticals, so an agent must parse hard to find the actionable rules. Length is not justified by structure: rules about the vault's ATA, staff escalation for unreferenced transfers, and repeated 'never sign another' could be stated far more compactly.

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 payment mutation with 4 parameters, an output schema, and on-chain semantics, the description covers prerequisites, auth/scope, on-chain acceptance rules, verification, refund destination, and every failure mode with its recovery action. Given the output schema covers return values, nothing material is 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 baseline is 3, but the description adds real meaning: reference is the only way a fee is matched to an account, transaction must be the quote with at most wallet-added priority fee/Lighthouse assertions, and the exact destination (the vault token account, not its associated token account) and amount composition (pot_base_units, fund_base_units, creator_base_units). This goes well beyond the schema's short hints.

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 opening sentence states a specific action (pay a bounty's entry fee) and places it in a flow ('the second step', mirroring POST /api/competitions/:slug/entry-fee/submit), which distinguishes it from quote_entry_fee. The core statement is then buried inside a semicolon chain about reference/transaction/signature, making the purpose harder to extract than it should be.

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 (take reference from quote_entry_fee), an explicit recovery path for the 503 case ('call get_entry_fee in a moment... never sign another'), and a hard exclusions list (404 no_quote, 409 already_paid/signature_used, 422). It also states the 403 AGENT_SCOPE case as do-not-retry with a specific escalation (tell your person). This is when/when-not guidance at the highest level of detail.

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.