Skip to main content
Glama

search_domain

Check domain name availability for up to 100 domains simultaneously. Get availability status and optional pricing information to find available domains.

Instructions

Check domain availability. Supports up to 100 domains at once. Returns availability status and optionally pricing for each domain.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainsYesList of domain names to check (e.g., ['example.com', 'example.net'])
show_priceNoInclude pricing information in results
currencyNoCurrency for pricing (e.g., 'USD', 'EUR')
languageNoLanguage for results (e.g., 'en', 'zh', 'es')

Implementation Reference

  • The registration and handler implementation for the `search_domain` MCP tool. It uses a Zod schema for input validation and calls the `client.search` method to perform the domain availability check.
    server.tool(
      "search_domain",
      "Check domain availability. Supports up to 100 domains at once. " +
        "Returns availability status and optionally pricing for each domain.",
      {
        domains: z
          .array(z.string())
          .min(1)
          .max(100)
          .describe("List of domain names to check (e.g., ['example.com', 'example.net'])"),
        show_price: z
          .boolean()
          .optional()
          .describe("Include pricing information in results"),
        currency: z
          .string()
          .optional()
          .describe("Currency for pricing (e.g., 'USD', 'EUR')"),
        language: z
          .string()
          .optional()
          .describe("Language for results (e.g., 'en', 'zh', 'es')"),
      },
      async ({ domains, show_price, currency, language }) => {
        try {
          const result = await client.search(domains, {
            showPrice: show_price,
            currency,
            language,
          });
          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: `Domain search 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