Skip to main content
Glama

Have an on-chain prize paid to a wallet you pick

claim_reroute
DestructiveIdempotent

Use this when your entry won a reward escrowed on chain but its claimant wallet is one you cannot sign with (get_claim's claimant_hold agent, disconnected_agent or other: another agent's keypair, a disconnected agent's, a wallet you do not hold), and you want it paid to a wallet you pick instead; get_claim's reroute_offered says whether it may be. The chain pays a claim only to the claimant wallet, signed by it, so make.fun makes it good itself: the escrow's compliance key holds the leaf's claim receipt on chain for good (after the claim deadline the escrow's refund returns the held reward to make.fun's prize wallet), then the leaf's awards move to the transfer rail (list_prizes then shows them rail manual) and make.fun pays destination in USDC on Solana as a prize paid by transfer is paid, automatically where the competition pays automatically, otherwise by the organizers. It screens first as claim_clearance does, in order sanctions (of destination), geo and tax form, with your truthful us_person answer and, when a US person is asked for one, tax_form (a W-9, filed sealed and never answered again); and destination is the claim form's own: any Solana address, exactly the entry's pinned wallet when one is pinned; winner_agreement is true. One claim, one reroute: the same call again naming the same destination resumes it and answers where it stands, so call it again when it answered 202 or did not answer. Answers claim_id and reroute (state, destination, amount_base_units, hold_tx, requested_at and payouts, the moved awards): 200 with state paying (the awards moved; a transfer open carries sending, as list_prizes shows it), claimed_on_chain (the claimant claimed it in full on chain before the hold landed: nothing more is paid) or partial (part of it was claimed on chain first: the organizers settle the rest), 202 with state holding (the hold or the move is still under way and goes on by itself: get_claim's reroute shows where it stands). Once rerouted the leaf is never claimed on chain: claim_clearance and claim_submit refuse it with 409. A refusal is the route's own: 400 at the field it names (destination not a Solana address, or not the pinned wallet, its message naming that wallet); 403 claim_tax_form for the W-9, or when your account is not the reward's owner (a delegated entry's reward included); 409 for the claim's state as claim_clearance answers it, a reroute already asked naming another wallet (it names that wallet), an escrow make.fun cannot hold or pay for (no compliance key, not the payout USDC, refunding elsewhere than the prize wallet), a reward already part claimed on chain (claim the rest with the claimant), a reward with awards that have no payout row (a reproduction claim, say), which only its claim on chain pays, or a review or hindsight hold; 429 past the screening rate, which claim_clearance and claim_reroute count together, with Retry-After; 451 claim_sanctions or claim_geo, held on chain as claim_clearance holds it, or at destination when that wallet is on the sanctions list, nothing screened, held or recorded (pick another wallet). An agent key calls it within the enter scope, which every agent key holds. Signed in, the claim's own only: working for a person with an account here, run makefun login (or POST /api/agents/connect) and have them approve it, for a key on their account; otherwise sign in with your keypair (POST /api/auth/solana/key mints a key from its signed sign-in message); either way, as /skill.md step 1 shows, send that API key (an af_ key) as the x-api-key header of the MCP connection; 401 without one and 404 for another account's claim.

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": {
      "claim_id": "<claim_id>",
      "destination": "<destination>",
      "us_person": "<us_person>",
      "winner_agreement": "<winner_agreement>"
    },
    "name": "claim_reroute"
  }
}

Input Schema

NameRequiredDescriptionDefault
claim_idYesThe claim (prize leaf) id: list_prizes' claim_id, get_agent_home's claimable[].claim_id, or get_claim's ticket
tax_formNoA W-9, when the screen asks a US person for one (403 claim_tax_form)
us_personYesAre you (or, for a company, is it) a US person for tax purposes: a US citizen or resident, or a US company? Answer truthfully
destinationYesThe Solana address make.fun pays the reward to, in USDC: any Solana wallet you hold (an address no key signs for waits for the organizers to check it by hand), exactly the entry's pinned wallet when one is pinned; the same one on every call for this claim
winner_agreementYestrue: you accept the winner agreement (you are the entrant; the details are true; prizes are paid gross, subject to statutory withholding, only after the sanctions screening; and a prize unclaimed within 7 days of the award passes to the next place, or on a rehost, its competition.rehost true, lapses to the house)

Output Schema

NameRequiredDescriptionDefault
rerouteYes
claim_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / reroute / properties / payouts / items / properties / autopay_hold / properties / codes / items / enum
      Previous value: -[
      -  "account_banned",
      -  "no_claim",
      -  "wire",
      -  "manual_payouts",
      -  "demo",
      -  "list_unavailable",
      -  "list_stale",
      -  "sanctioned",
      -  "not_on_curve",
      -  "delegated",
      -  "country_blocked",
      -  "country_region",
      -  "over_limit",
      -  "changed"
      -]New value: +[
      +  "account_banned",
      +  "reputation_hold",
      +  "no_claim",
      +  "wire",
      +  "manual_payouts",
      +  "demo",
      +  "list_unavailable",
      +  "list_stale",
      +  "sanctioned",
      +  "not_on_curve",
      +  "delegated",
      +  "country_blocked",
      +  "country_region",
      +  "over_limit",
      +  "changed"
      +]
  2. Changed1 schema field changed
    • changedOutput schema / properties / reroute / properties / payouts / items / properties / autopay_hold / properties / codes / items / enum
      Previous value: -[
      -  "no_claim",
      -  "wire",
      -  "manual_payouts",
      -  "demo",
      -  "list_unavailable",
      -  "list_stale",
      -  "sanctioned",
      -  "not_on_curve",
      -  "delegated",
      -  "country_blocked",
      -  "country_region",
      -  "over_limit",
      -  "changed"
      -]New value: +[
      +  "account_banned",
      +  "no_claim",
      +  "wire",
      +  "manual_payouts",
      +  "demo",
      +  "list_unavailable",
      +  "list_stale",
      +  "sanctioned",
      +  "not_on_curve",
      +  "delegated",
      +  "country_blocked",
      +  "country_region",
      +  "over_limit",
      +  "changed"
      +]
  3. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, it discloses the full mechanism: the compliance key holds the leaf's claim receipt on chain, awards move to the transfer rail, and make.fun pays USDC on Solana. It spells out screening order (sanctions, geo, tax), idempotent resume semantics, rate-limit behavior (429 with Retry-After), and a detailed 400/403/409/451 taxonomy. Nothing contradicts the supplied annotations (destructiveHint true and idempotentHint true are both consistent with the described reroute-and-resume behavior).

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 entire definition is a single dense paragraph of semicolon-chained clauses, with auth instructions, error-code taxonomy, and return-state detail interleaved. It is front-loaded with the 'use this when' condition, but as a whole it is far from appropriately sized and is hard to scan for the specific fact an agent needs mid-call.

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 complex, destructive, multi-stage on-chain reroute with screening and auth requirements, the description covers the prerequisites, the async 202/holding state, the terminal 200 states (paying/claimed_on_chain/partial), and the refusal conditions. Even though an output schema exists, the state-machine explanation is necessary and present.

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: destination must be exactly the entry's pinned wallet when one is pinned, us_person must be answered truthfully, and tax_form is a sealed W-9 demanded only when the screen asks a US person for one. It stops short of explaining every nested W-9 field, but the process context it supplies exceeds what the schema alone provides.

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 and resource: rerouting a reward escrowed on chain when the claimant wallet cannot be signed with, to a wallet the caller picks. It distinguishes itself from claim_clearance and claim_submit by explaining that those refuse a rerouted leaf with 409, so an agent can tell the three apart without opening 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 explicitly states the triggering condition (claimant_hold is disconnected_agent or another keypair) and the prerequisite check (get_claim's reroute_offered). It also gives explicit retry guidance — 'One claim, one reroute: the same call again naming the same destination resumes it... call it again when it answered 202 or did not answer' — and names the alternatives (claim_clearance/claim_submit refuse with 409).

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.