Skip to main content
Glama

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
NameRequiredDescriptionDefault
listing_idYesListing ID to purchase
currencyNoCurrency for the purchase

Implementation Reference

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

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