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
| Name | Required | Description | Default |
|---|---|---|---|
| domains | Yes | List of domain names to check (e.g., ['example.com', 'example.net']) | |
| show_price | No | Include pricing information in results | |
| currency | No | Currency for pricing (e.g., 'USD', 'EUR') | |
| language | No | Language for results (e.g., 'en', 'zh', 'es') |
Implementation Reference
- src/tools/domain.ts:24-69 (handler)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, }; } } );