Back to Tool Reference
MCP

optimize.get_generation

Return optimize-import status and result fields.

Effectread-onlyReachesoutside VaybelScopeoptimize:readPlanGrowth

Parameters

handlestringRequired

Task UUID returned from optimize.import_product.

wait_secintegerDefault: 0

0 returns an instant snapshot. Positive values long-poll up to that many seconds and return when the task is complete/failed or the timeout expires.

Returns

handlestring

The handle the call was made with.

resource_idstring | null

Same as product_design_uuid once known.

status"pending" | "running" | "complete" | "failed"
doneboolean

true once the work has finished, whether it completed or failed.

progressnumber

0.0-1.0.

messagestring
product_design_uuidstring | null

Populates around 40% progress.

listing_uuidstring | null

Set only if a sales-channel listing was discovered.

errorstring

Failure message when the work failed.

Request
json
{
  "name": "optimize.get_generation",
  "arguments": {
    "handle": "3b17bce9-ac6e-4737-9945-18f689dfc284",
    "wait_sec": 50
  }
}
Response
json
{
  "has_listing": false,
  "handle": "3b17bce9-ac6e-4737-9945-18f689dfc284",
  "resource_id": "c1e5a9d3-7b2f-4e64-8a0c-6d4f2b8e0a35",
  "category": "import",
  "task_type": "import_optimize_product",
  "status": "complete",
  "progress": 1.0,
  "done": true,
  "message": "Product imported",
  "error": "",
  "product_design_uuid": "c1e5a9d3-7b2f-4e64-8a0c-6d4f2b8e0a35",
  "listing_uuid": null
}