Skip to main content
Glama

Build the reclaim transactions

build_reclaim

Re-scans the wallet on the chain and builds the reclaim as unsigned, simulated Solana transactions (base64, versioned). They withdraw excess rent, close empty accounts and pay the service fee as the last instruction; nothing else leaves the wallet. Tokens are only burned for accounts listed in burn. The wallet's owner signs every transaction unchanged (the fee payer is the wallet, compute budget instructions may be added) and passes them to submit_reclaim within about 30 seconds, before the blockhash expires. Do not send them yourself.

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": {
      "wallet": "<wallet>"
    },
    "name": "build_reclaim"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoOptional UNRENT referral code. The referrer gets a share of the service fee; the wallet pays the same.
burnNoToken accounts to burn and close (from the scan's burn.candidates). Only when the wallet owner explicitly asked for it.
walletYesSolana wallet address (base58).
accountsNoOnly these account addresses (from a scan). Default: everything reclaimable.
burnMaxUsdNoHighest USD value per account that may be burned (capped by burn.cleanupMaxUsd). Dust is burned regardless.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

With annotations only covering safety flags, the description adds substantial behavioral context: transactions are unsigned and simulated, they withdraw rent/close accounts/pay fee last, nothing else leaves the wallet, tokens are burned only for `burn` accounts, the owner must sign unchanged, and a ~30s expiry window applies. This tells the agent exactly what will change and what constraints to respect.

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

Conciseness5/5

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

Front-loaded with the action and output format, then proceeds through what the transactions do, the burn constraint, and the signing/timing requirement. Every sentence carries operational information with no filler.

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?

No output schema exists, but the description fully specifies the return artifact (base64 versioned unsigned transactions) and the required next step. Nothing an agent needs to invoke and correctly handle the result 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 schema carries the parameter details (baseline 3). The description adds value by clarifying the `burn` safety semantics ('Tokens are only burned for accounts listed in `burn`'), reinforcing the schema's intent rather than merely restating it.

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?

States a specific verb+resource ('Re-scans the wallet... builds the reclaim') and names the exact output artifact: unsigned, simulated, base64 versioned Solana transactions. It is clearly distinguishable from scan_wallet (read) and submit_reclaim (sends), so an agent knows precisely what this produces.

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?

Explicitly routes the agent to submit_reclaim within ~30 seconds before blockhash expiry, and adds a hard exclusion: 'Do not send them yourself.' It does not explicitly say when to prefer this over scan_wallet, but the build-vs-scan distinction is implicit in 'Re-scans... and builds.'

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