get_marketplace_listings
Retrieve domain marketplace listings from Dynadot, either browsing all available domains or getting specific listing details by ID.
Instructions
View marketplace listings. Can list all available domains or get details of a specific listing by ID.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| listing_id | No | Specific listing ID to get details for (omit to list all) | |
| params | No | Additional filter parameters for listing |
Implementation Reference
- src/tools/marketplace.ts:188-225 (handler)The 'get_marketplace_listings' tool is implemented as a server.tool call. It handles fetching all listings or a specific listing by ID, then returns the result as a text content object.
server.tool( "get_marketplace_listings", "View marketplace listings. Can list all available domains or get " + "details of a specific listing by ID.", { listing_id: z .string() .optional() .describe("Specific listing ID to get details for (omit to list all)"), params: z .record(z.string()) .optional() .describe("Additional filter parameters for listing"), }, async ({ listing_id, params }) => { try { let result; if (listing_id) { result = await client.getListingItem(listing_id); } else { result = await client.getListings(params); } 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 listings: ${msg}` }, ], isError: true, }; } } );