Buy one result from the results shelf (output or recipe)
shelf_buyBuys one shelf item's OUTPUT (the result files) or its RECIPE (the full recipe: model ids, harness code, settings, prompt, inputs) and returns every file in full with its sha256, a receipt and a signed proof. The price is a fraction of the measured original cost; items with an UNKNOWN cost are not for sale. Use it when shelf_search found the item you want and its offer is on sale. Use shelf_search instead to find an item, its price and a preview first. Cost: the item's offer price_usd from shelf_search (now $0.0121 to $0.01212), charged once per purchase and debited from your balance; an item with an UNKNOWN cost is not sold. Auth: Authorization: Bearer (POST https://api.gaents.com/v1/accounts, $0.10 free credit); with no key the call returns a signed 402 quote payable in BSV or USDC via x402. Errors (isError, error.code): 404 unknown_item, 409 not_for_sale (cost UNKNOWN or type not priced), 401 bad_api_key, 402 low balance, 503 item_unavailable (a file failed its hash check; refunded).
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": {
"id": "<id>"
},
"name": "shelf_buy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The shelf item id from shelf_search (items[].id). | |
| type | No | Which offer to buy: output (the result files) or recipe (the full recipe and harness). | output |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | ||
| type | Yes | ||
| files | Yes | ||
| title | No | ||
| verify | No | how to re-check the hashes | |
| repeat_buy | No | ||
| charged_usd | Yes | ||
| bundle_sha256 | Yes | ||
| recipe_sha256 | No | ||
| receipt_quote_id | No | ||
| original_cost_usd | No |