Skip to main content
Glama

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
NameRequiredDescriptionDefault
typeNoAuction type: 'open' for active, 'closed' for completedopen
paramsNoAdditional filter parameters

Implementation Reference

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

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