manage_backorder_auctions
View open or closed backorder auctions, get auction details, and place bids on expired domain names through the Dynadot registrar.
Instructions
View backorder auctions (open or closed) or get details/place a bid on a specific backorder auction.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action: 'list_open', 'list_closed', 'details' (get info), or 'bid' (place bid) | |
| auction_id | No | Auction ID (required for 'details' and 'bid') | |
| amount | No | Bid amount (required for 'bid') | |
| currency | No | Currency for the bid |
Implementation Reference
- src/tools/marketplace.ts:273-341 (handler)The tool 'manage_backorder_auctions' is registered and implemented in src/tools/marketplace.ts using server.tool. It defines the schema and implements logic to list open/closed auctions, get details, and place bids.
server.tool( "manage_backorder_auctions", "View backorder auctions (open or closed) or get details/place a bid " + "on a specific backorder auction.", { action: z .enum(["list_open", "list_closed", "details", "bid"]) .describe( "Action: 'list_open', 'list_closed', 'details' (get info), or 'bid' (place bid)" ), auction_id: z .string() .optional() .describe("Auction ID (required for 'details' and 'bid')"), amount: z .string() .optional() .describe("Bid amount (required for 'bid')"), currency: z .string() .optional() .describe("Currency for the bid"), }, async ({ action, auction_id, amount, currency }) => { try { let result; switch (action) { case "list_open": result = await client.getOpenBackorderAuctions(); break; case "list_closed": result = await client.getClosedBackorderAuctions(); break; case "details": if (!auction_id) { return { content: [ { type: "text" as const, text: "auction_id is required for 'details'" }, ], isError: true, }; } result = await client.getBackorderAuctionDetails(auction_id); break; case "bid": if (!auction_id || !amount) { return { content: [ { type: "text" as const, text: "auction_id and amount are required for 'bid'" }, ], isError: true, }; } result = await client.placeBackorderAuctionBid(auction_id, amount, currency); break; } return { content: [ { type: "text" as const, text: JSON.stringify(result, null, 2) }, ], }; } catch (error) { const msg = error instanceof Error ? error.message : String(error); return { content: [ { type: "text" as const, text: `Backorder auction operation failed: ${msg}` }, ], isError: true, };