set_parking
Enable domain parking to display a placeholder page for unused domains, with optional ad display configuration.
Instructions
Enable domain parking for a domain. Parked domains show a placeholder page.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain name to park | |
| with_ads | No | Show ads on the parking page |
Implementation Reference
- src/services/dynadot-client.ts:374-378 (handler)The actual API call logic for set_parking.
async setParking(domain: string, withAds?: boolean): Promise<DynadotResponse> { const params: Record<string, string> = { domain }; if (withAds !== undefined) params.with_ads = withAds ? "1" : "0"; return this.call("set_parking", params); } - src/tools/settings.ts:262-290 (registration)Tool registration and handler wrapper for set_parking.
server.tool( "set_parking", "Enable domain parking for a domain. Parked domains show a placeholder page.", { domain: z.string().describe("Domain name to park"), with_ads: z .boolean() .optional() .describe("Show ads on the parking page"), }, async ({ domain, with_ads }) => { try { const result = await client.setParking(domain, with_ads); 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 parking: ${msg}` }, ], isError: true, }; } } );