Skip to main content
Glama

set_parking

Enable domain parking to display a placeholder page for unused domains, with optional ad display configuration.

Instructions

Enable domain parking for a domain. Parked domains show a placeholder page.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainYesDomain name to park
with_adsNoShow ads on the parking page

Implementation Reference

  • The actual API call logic for set_parking.
    async setParking(domain: string, withAds?: boolean): Promise<DynadotResponse> {
      const params: Record<string, string> = { domain };
      if (withAds !== undefined) params.with_ads = withAds ? "1" : "0";
      return this.call("set_parking", params);
    }
  • Tool registration and handler wrapper for set_parking.
    server.tool(
      "set_parking",
      "Enable domain parking for a domain. Parked domains show a placeholder page.",
      {
        domain: z.string().describe("Domain name to park"),
        with_ads: z
          .boolean()
          .optional()
          .describe("Show ads on the parking page"),
      },
      async ({ domain, with_ads }) => {
        try {
          const result = await client.setParking(domain, with_ads);
          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 parking: ${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