set_for_sale
List a domain for sale on the Dynadot marketplace by specifying the domain name, price, and currency to make it available for purchase.
Instructions
List a domain for sale on the Dynadot marketplace with a specified price.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain name to list for sale | |
| price | Yes | Asking price (e.g., '1000.00') | |
| currency | No | Currency for the price (e.g., 'USD') |
Implementation Reference
- src/tools/marketplace.ts:155-184 (handler)The tool registration and handler implementation for "set_for_sale" in the MCP marketplace tools module.
server.tool( "set_for_sale", "List a domain for sale on the Dynadot marketplace with a specified price.", { domain: z.string().describe("Domain name to list for sale"), price: z.string().describe("Asking price (e.g., '1000.00')"), currency: z .string() .optional() .describe("Currency for the price (e.g., 'USD')"), }, async ({ domain, price, currency }) => { try { const result = await client.setForSale(domain, price, currency); 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 set for sale: ${msg}` }, ], isError: true, }; } } );