preview_products
Get a page of the project's imported products with their real source-attribute values, so you can inspect the data and advise on feed mapping (e.g. see that brand holds "Nike" or color holds hex codes). Use this to inspect real product values before mapping. Returns {products:[{id, type, attributes:{:}}], returned, requested, total, offset, hasMore, nextOffset}. attributes keys are source attribute codes (as in list_source_attributes); only catalogued, non-sensitive attributes are included — cost/margin and internal fields are never returned, and empty values are omitted. sample_size is the page window (default 5, max 100); page through the whole catalog with offset — when hasMore is true, re-call with offset=nextOffset until hasMore is false. project_id is OPTIONAL (inferred for a single-project customer). Data must be imported first (see get_import_status). This tool returns real product data values only after you set acknowledge_sensitive:true. The first call (flag absent/false) returns {sensitiveGate:{confirmationRequired:true, itemCount, fields, kind}} with an EMPTY products array — present that gate to the USER, get their approval, then re-call with acknowledge_sensitive:true to receive the actual values. To review the full generated feed output for every product (not just source attributes), use export_feed, not paging this preview — that is the intended bulk path. Pass attributes (source attribute codes) to return only those attributes, with values up to 20000 chars (otherwise 200); the response then also carries attributes, valueMaxLength and withheldAttributes. With attributes, sample_size x the number of attributes may be at most 100 (default sample_size 5 counts too), so long values cannot flood the conversation; to show a merchant full values keep sample_size <= 10. Next: pick a template (list_feed_templates) and map attributes (map_feed_attribute).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "preview_products"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offset | No | Number of products to skip (paging); pass the response's nextOffset to get the next page. | |
| attributes | No | Only these source attribute codes; values are then returned up to 20000 chars (otherwise 200). sample_size x attributes must be <= 100. | |
| project_id | No | ||
| sample_size | No | Page window: how many products to return per call (default 5, max 100). | |
| acknowledge_sensitive | No | Set true only AFTER the user approves seeing real data. When absent/false the tool returns a sensitiveGate with an empty products array; with true it returns the actual attribute values. |