Skip to main content
Glama

get_domain_info

Retrieve domain details including expiry date, nameservers, WHOIS contacts, privacy and lock status from the Dynadot registrar.

Instructions

Get detailed information about a domain including expiry date, nameservers, WHOIS contacts, privacy status, lock status, and more.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainYesDomain name to query (e.g., 'example.com')

Implementation Reference

  • The MCP tool registration and handler implementation for 'get_domain_info'.
    // ─── get_domain_info ──────────────────────────────────────────
    
    server.tool(
      "get_domain_info",
      "Get detailed information about a domain including expiry date, nameservers, " +
        "WHOIS contacts, privacy status, lock status, and more.",
      {
        domain: z.string().describe("Domain name to query (e.g., 'example.com')"),
      },
      async ({ domain }) => {
        try {
          const result = await client.getDomainInfo(domain);
          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 domain info: ${msg}` },
            ],
            isError: true,
          };
        }
      }
    );
  • The underlying Dynadot client method that executes the API call to fetch domain info.
    async getDomainInfo(domain: string): Promise<DynadotResponse> {
      return this.call("domain_info", { domain });
    }

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