Skip to main content
Glama

dsers.product.preview

Review product import job details like title, prices, images, variants, and rules without re-importing. Verify changes before finalizing dropshipping product setup.

Instructions

Reload the preview for a previously prepared import job without re-importing. Use this to re-examine title, prices, images, variants, and applied rules for a job created by dsers.product.import. Returns the same structure as dsers.product.import: job_id, status, title, price ranges, images, variants, rules, warnings.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
job_idYesJob ID returned by dsers.product.import.

Implementation Reference

  • Implementation and registration of the dsers.product.preview tool in src/tools.ts. It calls the getImportPreview method from the service.
    server.registerTool(
      "dsers.product.preview",
      {
        title: "Import Draft Preview",
        description:
          "Reload the preview for a previously prepared import job without re-importing. " +
          "Use this to re-examine title, prices, images, variants, and applied rules for a job created by dsers.product.import. " +
          "Returns the same structure as dsers.product.import: job_id, status, title, price ranges, images, variants, rules, warnings.",
        inputSchema: {
          job_id: z
            .string()
            .describe("Job ID returned by dsers.product.import."),
        },
        annotations: {
          readOnlyHint: true,
          destructiveHint: false,
          idempotentHint: true,
          openWorldHint: false,
        },
      },
      async ({ job_id }) => {
        try {
          return ok(await svc().getImportPreview({ job_id }));
        } catch (err) { return fail(err); }
      },
    );

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/lofder/dsers-mcp-product'

If you have feedback or need assistance with the MCP directory API, please join our Discord server