Skip to main content
Glama

manage_backorders

Add, delete, or list domain backorder requests to monitor and secure expiring domains through the Dynadot registrar.

Instructions

Manage domain backorder requests. You can add a new backorder, delete an existing one, or list all current backorder requests.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesAction: 'add' a new backorder, 'delete' an existing one, or 'list' all
domainNoDomain name (required for 'add' and 'delete' actions)

Implementation Reference

  • The `manage_backorders` tool is registered and implemented directly in `src/tools/marketplace.ts` using the `server.tool` method. It handles 'add', 'delete', and 'list' actions by calling corresponding methods on the provided `DynadotClient`.
    server.tool(
      "manage_backorders",
      "Manage domain backorder requests. You can add a new backorder, delete " +
        "an existing one, or list all current backorder requests.",
      {
        action: z
          .enum(["add", "delete", "list"])
          .describe("Action: 'add' a new backorder, 'delete' an existing one, or 'list' all"),
        domain: z
          .string()
          .optional()
          .describe("Domain name (required for 'add' and 'delete' actions)"),
      },
      async ({ action, domain }) => {
        try {
          let result;
          switch (action) {
            case "add":
              if (!domain) {
                return {
                  content: [
                    { type: "text" as const, text: "Domain is required for 'add' action" },
                  ],
                  isError: true,
                };
              }
              result = await client.addBackorderRequest(domain);
              break;
            case "delete":
              if (!domain) {
                return {
                  content: [
                    { type: "text" as const, text: "Domain is required for 'delete' action" },
                  ],
                  isError: true,
                };
              }
              result = await client.deleteBackorderRequest(domain);
              break;
            case "list":
              result = await client.listBackorderRequests();
              break;
          }
          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: `Backorder operation failed: ${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