Skip to main content
Glama

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
NameRequiredDescriptionDefault
domainYesDomain name to list for sale
priceYesAsking price (e.g., '1000.00')
currencyNoCurrency for the price (e.g., 'USD')

Implementation Reference

  • 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,
          };
        }
      }
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mikusnuz/dynadot-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server