Skip to main content

optimize_product

Generate AI-optimized title, description, and attributes for a product. Parameters:
ParameterTypeRequiredDescription
product_idstringYesProduct ID or SKU
target_platformstringNogoogle, meta, openai (default: all)
applybooleanNoApply changes immediately (default: false)
curl -X POST "https://app.alana.shopping/api/mcp/sse" \
  -H "Authorization: Bearer sk_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"method":"tools/call","params":{"name":"optimize_product","arguments":{"product_id":"SKU-001","target_platform":"google"}}}'
Response:
{
  "product_id": "SKU-001",
  "original": {
    "title": "Blue Shirt",
    "description": "A shirt"
  },
  "optimized": {
    "title": "Men's Blue Cotton Slim-Fit T-Shirt | S-XXL",
    "description": "100% pre-shrunk cotton. Breathable fabric for all-day comfort..."
  },
  "score_before": 0.42,
  "score_after": 0.89,
  "applied": false
}

batch_optimize

Optimize multiple products in a single call. Parameters:
ParameterTypeRequiredDescription
product_idsstring[]YesArray of product IDs (max: 50)
target_platformstringNoTarget platform
applybooleanNoApply changes immediately (default: false)
const result = await client.callTool({
  name: "batch_optimize",
  arguments: {
    product_ids: ["SKU-001", "SKU-002", "SKU-003"],
    target_platform: "google",
    apply: true,
  },
});

get_score

Get the current optimization score for a product. Parameters:
ParameterTypeRequiredDescription
product_idstringYesProduct ID or SKU
Score ranges: Excellent (0.85–1.0) · Good (0.65–0.84) · Warning (0.40–0.64) · Poor (0–0.39)
const result = await client.callTool({
  name: "get_score",
  arguments: { product_id: "SKU-001" },
});

compare_scores

Compare optimization scores across a set of products. Parameters:
ParameterTypeRequiredDescription
product_idsstring[]YesArray of product IDs
sort_bystringNoscore_asc or score_desc (default: score_desc)
const result = await client.callTool({
  name: "compare_scores",
  arguments: {
    product_ids: ["SKU-001", "SKU-002", "SKU-003"],
    sort_by: "score_asc",
  },
});
Last modified on March 18, 2026