Update PrestaShop SEO Metadata
ps_update_seoUpdates SEO metadata for a PrestaShop product or category, including meta title, meta description, and URL slug. Use it to correct or optimize search and link details.
Instructions
Update meta_title, meta_description, and link_rewrite (URL slug) for a product or a category.
⚠️ Requires PS_READONLY=false and PUT enabled on the PrestaShop Webservice key.
Args:
type: "product" or "category"
id: Product or category ID (required)
meta_title: SEO title (max 70 chars recommended)
meta_description: SEO description (50-160 chars recommended)
link_rewrite: URL slug (lowercase letters, numbers, hyphens only)
lang_id: Language ID for multilang fields (default: "1")
Returns: Confirmation of the update.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"type": "<type>",
"id": "<id>"
},
"name": "ps_update_seo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Product or category ID | |
| type | Yes | Resource type to update | |
| lang_id | No | Language ID for multilang fields | 1 |
| meta_title | No | SEO title | |
| link_rewrite | No | URL slug | |
| meta_description | No | SEO meta description | |
| confirmation_token | No | Confirmation token for destructive operations |