get_auctions
Retrieve domain auction listings from Dynadot, filtering by active or completed auctions to find available domains or review past sales.
Instructions
List domain auctions. Can show open (active) or closed (completed) auctions.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Auction type: 'open' for active, 'closed' for completed | open |
| params | No | Additional filter parameters |
Implementation Reference
- src/tools/marketplace.ts:22-56 (handler)The `get_auctions` tool registration and handler implementation. It uses the `DynadotClient` to fetch open or closed auctions based on the provided `type` parameter.
server.tool( "get_auctions", "List domain auctions. Can show open (active) or closed (completed) auctions.", { type: z .enum(["open", "closed"]) .default("open") .describe("Auction type: 'open' for active, 'closed' for completed"), params: z .record(z.string()) .optional() .describe("Additional filter parameters"), }, async ({ type, params }) => { try { const result = type === "open" ? await client.getOpenAuctions(params) : await client.getClosedAuctions(params); 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: `Failed to get auctions: ${msg}` }, ], isError: true, }; } } );