Skip to main content
Glama

set_hosting

Configure website hosting for a domain using Dynadot's built-in hosting service. Select between basic or advanced hosting types and enable mobile-optimized views.

Instructions

Set website hosting for a domain using Dynadot's built-in hosting service.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainYesDomain name to configure hosting for
hosting_typeYesHosting type: 'advanced' or 'basic'
mobile_viewNoEnable mobile-optimized view (advanced hosting only)

Implementation Reference

  • The service method that performs the actual API call for 'set_hosting'.
    async setHosting(domain: string, hostingType: string, mobileViewOn?: boolean): Promise<DynadotResponse> {
      const params: Record<string, string> = { domain, hosting_type: hostingType };
      if (mobileViewOn !== undefined) params.mobile_view_on = mobileViewOn ? "1" : "0";
      return this.call("set_hosting", params);
    }
  • MCP tool registration and request handler for 'set_hosting'.
    server.tool(
      "set_hosting",
      "Set website hosting for a domain using Dynadot's built-in hosting service.",
      {
        domain: z.string().describe("Domain name to configure hosting for"),
        hosting_type: z
          .enum(["advanced", "basic"])
          .describe("Hosting type: 'advanced' or 'basic'"),
        mobile_view: z
          .boolean()
          .optional()
          .describe("Enable mobile-optimized view (advanced hosting only)"),
      },
      async ({ domain, hosting_type, mobile_view }) => {
        try {
          const result = await client.setHosting(domain, hosting_type, mobile_view);
          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 hosting: ${msg}` },
            ],

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