list_domains
Retrieve a list of all domains registered in your Dynadot account with basic domain information for management purposes.
Instructions
List all domains in the Dynadot account with basic information.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/domain.ts:185-207 (handler)The "list_domains" tool implementation, which registers the tool with the MCP server and uses the dynadot client to fetch the list of domains.
server.tool( "list_domains", "List all domains in the Dynadot account with basic information.", {}, async () => { try { const result = await client.listDomains(); 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 list domains: ${msg}` }, ], isError: true, }; } } );