buy_it_now
Purchase a domain from the marketplace at its fixed Buy It Now price using the listing ID.
Instructions
Purchase a domain listed on the marketplace at its Buy It Now price.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| listing_id | Yes | Listing ID to purchase | |
| currency | No | Currency for the purchase |
Implementation Reference
- src/services/dynadot-client.ts:480-484 (handler)The actual implementation of the buyItNow service method which makes the API call.
async buyItNow(listingId: string, currency?: string): Promise<DynadotResponse> { const params: Record<string, string> = { listing_id: listingId }; if (currency) params.currency = currency; return this.call("buy_it_now", params); } - src/tools/marketplace.ts:407-425 (registration)MCP tool registration and handler wrapper for buy_it_now in src/tools/marketplace.ts.
server.tool( "buy_it_now", "Purchase a domain listed on the marketplace at its Buy It Now price.", { listing_id: z.string().describe("Listing ID to purchase"), currency: z .string() .optional() .describe("Currency for the purchase"), }, async ({ listing_id, currency }) => { try { const result = await client.buyItNow(listing_id, currency); return { content: [ { type: "text" as const, text: JSON.stringify(result, null, 2) }, ], }; } catch (error) {