Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PS_API_KEYYesPrestaShop Webservice API key. Required.
PS_API_URLYesPrestaShop shop URL. Required.
PS_TARGETSNoJSON array of multi-site targets.
PS_DATA_DIRNoDirectory for reports and exports. Default: ./data../data
PS_READONLYNoBlock all write operations. Default: true.true
PS_DUAL_MODENoRun stdio + HTTP simultaneously. Default: false.false
PS_HTTP_HOSTNoHTTP server bind address. Default: 127.0.0.1.127.0.0.1
PS_HTTP_PORTNoHTTP server port. Default: 3000.3000
PS_SAFE_SORTNoDisable sort parameter in API calls to avoid PrestaShop 1.7/8.x 500 errors. Default: true.true
PS_TRANSPORTNoTransport mode: stdio or http. Default: stdio.stdio
PS_AUTH_TOKENNoBearer token for HTTP mode. Required for HTTP mode.
PS_ALLOWED_ORIGINSNoComma-separated allowed origins for HTTP mode.
PS_TOOL_CATEGORIESNoComma-separated tool categories to load. Default: *.*

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
ps_site_infoA

Get PrestaShop site information including available API resources, shops, languages, and currencies. Use this first to understand the shop configuration.

Returns: Shop details, active languages with IDs (needed for multilang fields), currencies, list of available API resources, and multi-site configuration.

ps_list_languagesA

List all languages configured in the shop. Language IDs are essential for reading multilang fields (product names, descriptions, SEO metadata).

Returns: Array of languages with id, name, iso_code, language_code, and active status.

ps_list_targetsA

List all configured PrestaShop shops available for this MCP server.

Sites are configured via environment variables:

  • Default: PS_API_URL + PS_API_KEY (+ optional PS_SITE_DEFAULT_NAME)

  • Extra shops: PS_SITE_1_URL, PS_SITE_1_KEY, PS_SITE_1_NAME, PS_SITE_2_URL, etc.

Returns: Array of configured shops with key, name, URL, and connection status.

ps_set_targetA

Switch the active PrestaShop shop. All subsequent tool calls will target this shop.

Use ps_list_targets to see available site keys.

Args:

  • site: Site key (e.g., "default", "site_1", "site_2")

Returns: Confirmation with the new active site details.

ps_list_productsA

List products with optional filtering, sorting, and pagination.

Args:

  • limit: Max products to return (default: 50)

  • offset: Skip N products for pagination (default: 0)

  • sort: Sort field and direction (e.g., "id_DESC", "price_ASC", "name_ASC", "date_add_DESC")

  • active: Filter by active status (true/false)

  • id_category: Filter by category ID

  • reference: Filter by product reference

  • search_name: Search in product name (partial match)

  • lang_id: Language ID for multilang fields (default: "1")

  • mode: Response shape (default: "raw"): • "raw" → full product records (default, backward-compatible) • "summary" → aggregated stats only (counts, price range, active ratio) — zero individual records • "ids_only" → flat array of product IDs — minimal payload for further lookups

Returns: Array of products with id, name, reference, price, active status, category, and stock info.

ps_get_productA

Get full details of a product by ID, including all multilang fields, associations (categories, images, combinations, features), and SEO metadata.

Args:

  • id: Product ID (required)

  • lang_id: Language ID for multilang fields (default: "1")

Returns: Complete product data with name, descriptions, price, stock, images, categories, features, combinations, and SEO metadata.

ps_search_productsA

Search products using PrestaShop's built-in search engine.

Args:

  • query: Search query string (required)

  • lang_id: Language ID for search (default: "1")

Returns: Array of matching products with basic info.

ps_create_productA

Create a new product.

⚠️ Requires PS_READONLY=false and POST enabled on the PrestaShop Webservice key.

Args:

  • name: Product name (required)

  • price: Price tax excluded (required)

  • id_category_default: Default category ID (required)

  • description: Long description (HTML allowed)

  • description_short: Short description (HTML allowed)

  • reference: Product reference code

  • active: Activate the product (default: true)

  • meta_title: SEO title

  • meta_description: SEO meta description

  • link_rewrite: URL slug (auto-generated from name if not provided)

  • lang_id: Language ID for multilang fields (default: "1")

Returns: Created product ID and summary.

ps_delete_productA

Delete a product by ID.

⚠️ Requires PS_READONLY=false and DELETE enabled on the PrestaShop Webservice key. Note: PrestaShop may soft-delete (set active=0) depending on shop configuration.

Args:

  • id: Product ID (required)

  • confirmation_token: Confirmation token (when PS_CONFIRM_DESTRUCTIVE=true)

Returns: Confirmation of deletion.

ps_list_categoriesB

List product categories with hierarchy information.

Args:

  • limit: Max categories to return (default: 50)

  • offset: Pagination offset (default: 0)

  • active: Filter by active status

  • id_parent: Filter by parent category ID (for subcategories)

  • lang_id: Language ID for multilang fields (default: "1")

Returns: Array of categories with id, name, parent_id, level_depth, active status, and SEO metadata.

ps_get_categoryA

Get full details of a category by ID, including all multilang fields and SEO metadata.

Args:

  • id: Category ID (required)

  • lang_id: Language ID for multilang fields (default: "1")

Returns: Complete category data with name, description, hierarchy info, and SEO metadata.

ps_create_categoryA

Create a new product category.

⚠️ Requires PS_READONLY=false and POST enabled on the PrestaShop Webservice key.

Args:

  • name: Category name (required)

  • id_parent: Parent category ID (required, use 2 for "Home")

  • active: Activate the category (default: true)

  • description: Category description

  • meta_title: SEO title

  • meta_description: SEO meta description

  • link_rewrite: URL slug (auto-generated from name if not provided)

  • lang_id: Language ID for multilang fields (default: "1")

Returns: Created category ID and summary.

ps_update_categoryA

Update an existing category.

⚠️ Requires PS_READONLY=false and PUT enabled on the PrestaShop Webservice key.

Args:

  • id: Category ID (required)

  • name: Category name

  • active: Activate/deactivate

  • description: Category description

  • meta_title: SEO title

  • meta_description: SEO meta description

  • link_rewrite: URL slug

  • lang_id: Language ID for multilang fields (default: "1")

Returns: Confirmation with updated fields.

ps_list_ordersA

List orders with optional filtering and pagination.

Args:

  • limit: Max orders to return (default: 50)

  • offset: Pagination offset (default: 0)

  • sort: Sort field and direction (e.g., "id_DESC", "date_add_DESC") (default: "id_DESC")

  • id_customer: Filter by customer ID

  • current_state: Filter by order state ID

  • reference: Filter by order reference

  • mode: Response shape (default: "raw"): • "raw" → full order records (default, backward-compatible) • "summary" → aggregated stats only (count, total revenue, avg basket, state breakdown) • "ids_only" → flat array of order IDs — minimal payload

Returns: Array of orders with id, reference, customer_id, state, payment method, totals, and dates.

ps_get_orderA

Get full details of an order by ID, including order rows (products), payment info, and shipping details.

Args:

  • id: Order ID (required)

Returns: Complete order data with reference, customer, state, payment, totals, order rows (products with quantities and prices), and dates.

ps_list_order_statesA

List all order states/statuses. Use this to understand order state IDs when filtering orders.

Returns: Array of order states with id, name, and configuration.

ps_list_customersB

List customers with optional filtering and pagination.

Args:

  • limit: Max customers to return (default: 50)

  • offset: Pagination offset (default: 0)

  • sort: Sort field and direction (default: "id_DESC")

  • active: Filter by active status

  • email: Filter by exact email

  • search_name: Search in customer names (partial match)

  • newsletter: Filter by newsletter subscription

Returns: Array of customers with id, firstname, lastname, email, active status, newsletter, and dates.

ps_get_customerA

Get full details of a customer by ID.

Args:

  • id: Customer ID (required)

Returns: Complete customer data with personal info, groups, and dates. Note: sensitive data like password hashes are excluded.

ps_create_customerA

Create a new customer account.

⚠️ Requires PS_READONLY=false and POST enabled on the PrestaShop Webservice key.

Args:

  • firstname: First name (required)

  • lastname: Last name (required)

  • email: Email address (required)

  • passwd: Password (required, min 5 chars)

  • active: Activate the account (default: true)

  • newsletter: Subscribe to newsletter (default: false)

  • id_default_group: Customer group ID (default: 3 = Customer)

Returns: Created customer ID and summary.

ps_update_customerA

Update an existing customer's information.

⚠️ Requires PS_READONLY=false and PUT enabled on the PrestaShop Webservice key. Note: Password cannot be modified through this tool for security reasons.

Args:

  • id: Customer ID (required)

  • firstname: First name

  • lastname: Last name

  • email: Email address

  • active: Activate/deactivate

  • newsletter: Newsletter subscription

Returns: Confirmation with updated fields.

ps_list_stockA

List stock availability for products.

Args:

  • limit: Max items to return (default: 50)

  • offset: Pagination offset (default: 0)

  • id_product: Filter by product ID

  • out_of_stock_only: Only show products with quantity <= 0

  • mode: Response shape (default: "raw"): • "raw" → full stock entries (default, backward-compatible) • "summary" → aggregated stats only (total units, out-of-stock count, in-stock count) • "ids_only" → flat array of product IDs that have stock entries

Returns: Array of stock entries with product_id, product_attribute_id, quantity, and out_of_stock policy.

ps_get_product_stockA

Get stock information for a specific product, including all its combinations/variants.

Args:

  • id_product: Product ID (required)

Returns: Stock entries for the product and all its combinations, with quantities and out-of-stock policy.

ps_list_cms_pagesA

List CMS (static content) pages. These are informational pages like "About Us", "Terms & Conditions", etc.

Args:

  • active: Filter by active status

  • lang_id: Language ID for multilang fields (default: "1")

Returns: Array of CMS pages with id, title, active status, and SEO metadata.

ps_get_cms_pageA

Get full details of a CMS page by ID, including content and SEO metadata.

Args:

  • id: CMS page ID (required)

  • lang_id: Language ID for multilang fields (default: "1")

Returns: Complete CMS page data with title, content (HTML), SEO metadata, and configuration.

ps_create_cms_pageA

Create a new CMS (static content) page.

⚠️ Requires PS_READONLY=false and POST enabled on the PrestaShop Webservice key.

Args:

  • meta_title: Page title (required)

  • content: Page content (HTML allowed, required)

  • active: Activate the page (default: true)

  • id_cms_category: CMS category ID (default: 1)

  • meta_description: SEO meta description

  • link_rewrite: URL slug (auto-generated from title if not provided)

  • lang_id: Language ID for multilang fields (default: "1")

Returns: Created CMS page ID and summary.

ps_update_cms_pageA

Update an existing CMS page.

⚠️ Requires PS_READONLY=false and PUT enabled on the PrestaShop Webservice key.

Args:

  • id: CMS page ID (required)

  • meta_title: Page title

  • content: Page content (HTML)

  • active: Activate/deactivate

  • meta_description: SEO meta description

  • link_rewrite: URL slug

  • lang_id: Language ID for multilang fields (default: "1")

Returns: Confirmation with updated fields.

ps_list_carriersA

List shipping carriers configured in the shop.

Args:

  • active: Filter by active status (true/false)

  • lang_id: Language ID for multilang fields (default: "1")

Returns: Array of carriers with id, name, delay, price, active status, and configuration.

ps_list_combinationsB

List product combinations (variants) with optional filtering.

Args:

  • limit: Max items to return (default: 50)

  • offset: Pagination offset (default: 0)

  • id_product: Filter by product ID

Returns: Array of combinations with id, product_id, reference, price impact, and stock info.

ps_list_product_featuresA

List product features (characteristics) defined in the shop (e.g., Material, Color, Size).

Args:

  • lang_id: Language ID for multilang fields (default: "1")

Returns: Array of product features with id and name.

ps_list_product_optionsA

List product attribute options (e.g., Size, Color) used for combinations/variants.

Args:

  • lang_id: Language ID for multilang fields (default: "1")

Returns: Array of product options (attributes) with id, name, type, and position.

ps_list_cart_rulesA

List cart rules (discount codes / vouchers) with optional filtering.

Args:

  • limit: Max items to return (default: 50)

  • offset: Pagination offset (default: 0)

  • active: Filter by active status (true/false)

  • lang_id: Language ID for multilang fields (default: "1")

Returns: Array of cart rules with id, name, code, discount type, amount, and validity dates.

ps_list_specific_pricesA

List specific prices (promotional prices, quantity-based prices) configured for products.

Args:

  • limit: Max items to return (default: 50)

  • offset: Pagination offset (default: 0)

  • id_product: Filter by product ID

Returns: Array of specific prices with id, product_id, price, reduction type/amount, and validity dates.

ps_create_specific_priceA

Create a specific price rule (product-level promotion).

⚠️ Requires PS_READONLY=false and POST enabled on the PrestaShop Webservice key.

Args:

  • id_product: Product ID (required)

  • reduction: Reduction value (required)

  • reduction_type: "percentage" or "amount" (required)

  • from: Start date (ISO YYYY-MM-DD, optional)

  • to: End date (ISO YYYY-MM-DD, optional)

  • id_group: Customer group ID (0 = all groups)

  • id_country: Country ID (0 = all countries)

  • from_quantity: Minimum quantity for the price to apply (default: 1)

Returns: Created specific price ID.

ps_delete_specific_priceA

Delete a specific price rule by ID.

⚠️ Requires PS_READONLY=false and DELETE enabled on the PrestaShop Webservice key.

Args:

  • id: Specific price ID (required)

  • confirmation_token: Confirmation token (when PS_CONFIRM_DESTRUCTIVE=true)

Returns: Confirmation of deletion.

ps_list_order_historiesB

List order status history entries with optional filtering by order or state.

Args:

  • limit: Max items to return (default: 50)

  • offset: Pagination offset (default: 0)

  • id_order: Filter by order ID

  • id_order_state: Filter by order state ID

Returns: Array of history entries with id, order_id, state_id, employee_id, and date.

ps_list_tax_rulesA

List tax rules configured in the shop, optionally filtered by tax rule group.

Args:

  • limit: Max items to return (default: 50)

  • offset: Pagination offset (default: 0)

  • id_tax_rules_group: Filter by tax rule group ID

Returns: Array of tax rules with id, group_id, country_id, state_id, zip_range, and rate.

ps_list_addressesB

List customer or supplier addresses with optional filtering.

Args:

  • limit: Max items to return (default: 50)

  • offset: Pagination offset (default: 0)

  • id_customer: Filter by customer ID

  • deleted: Include deleted addresses (default: false)

Returns: Array of addresses with id, customer_id, firstname, lastname, company, address, city, country_id, and phone.

ps_get_product_imagesA

Get all image URLs for a specific product.

The PrestaShop Webservice exposes product images at: {PS_API_URL}/api/images/products/{product_id}/{image_id}

This tool fetches the product to retrieve its image IDs, then constructs the full URLs.

Args:

  • id_product: Product ID (required)

Returns: Array of image objects with id and URL for each image associated with the product.

ps_update_productB

Update product fields: price, active status, name, description, meta_title, meta_description, link_rewrite.

⚠️ Requires PS_READONLY=false and PUT enabled on the PrestaShop Webservice key.

Args:

  • id: Product ID (required)

  • price: New price (tax excluded)

  • active: Activate or deactivate the product

  • name: Product name (for lang_id language)

  • description: Long description (HTML allowed)

  • description_short: Short description (HTML allowed)

  • meta_title: SEO title

  • meta_description: SEO meta description

  • link_rewrite: URL slug

  • lang_id: Language ID for multilang fields (default: "1")

Returns: Updated product summary.

ps_update_stockA

Update the available quantity for a product or a specific combination/variant.

⚠️ Requires PS_READONLY=false and PUT enabled on the PrestaShop Webservice key.

Args:

  • id: Stock available ID (use ps_get_product_stock to find it)

  • quantity: New quantity (must be >= 0)

  • out_of_stock: Behaviour when out of stock: 0=deny orders, 1=allow orders, 2=use shop default

Returns: Updated stock entry.

ps_update_order_statusA

Change the status of an order by creating a new order history entry.

⚠️ Requires PS_READONLY=false and POST enabled on the PrestaShop Webservice key.

Args:

  • id_order: Order ID (required)

  • id_order_state: New state ID (use ps_list_order_states to get valid IDs)

Returns: Confirmation with new history entry ID.

ps_create_cart_ruleA

Create a discount voucher/coupon code with a percentage or fixed amount reduction.

⚠️ Requires PS_READONLY=false and POST enabled on the PrestaShop Webservice key.

Args:

  • name: Internal name for the rule (required)

  • code: Voucher code customers enter (leave empty for auto-apply)

  • reduction_type: "percent" for percentage, "amount" for fixed amount

  • reduction_value: Reduction value (e.g., 10 for 10% or 10.00 for €10)

  • date_from: Start date (ISO format: YYYY-MM-DD HH:MM:SS)

  • date_to: Expiry date (ISO format: YYYY-MM-DD HH:MM:SS)

  • quantity: Total number of usages allowed (default: 1)

  • quantity_per_user: Max usages per customer (default: 1)

  • lang_id: Language ID for the name (default: "1")

Returns: Created cart rule ID and details.

ps_audit_seoA

Scan active products and identify SEO issues: missing meta_title, missing meta_description, descriptions too short (<50 chars) or too long (>160 chars), meta_title too long (>70 chars), missing link_rewrite.

Returns a global score (0-100) and a prioritised action list sorted by severity.

Args:

  • limit: Number of products to scan (default: 50, max: 200)

  • lang_id: Language ID for multilang fields (default: "1")

Returns: SEO score, total products scanned, issue counts, and prioritised action list.

ps_update_seoA

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.

ps_audit_seo_categoriesA

Scan active categories and identify SEO issues: missing meta_title, missing meta_description, descriptions too short or too long, missing link_rewrite.

Same scoring methodology as ps_audit_seo but applied to categories.

Args:

  • limit: Number of categories to scan (default: 50, max: 200)

  • lang_id: Language ID for multilang fields (default: "1")

Returns: SEO score, total categories scanned, issue counts, and prioritised action list.

ps_audit_seo_cmsA

Scan active CMS pages and identify SEO issues: missing meta_title, missing meta_description, descriptions too short or too long, missing link_rewrite.

Args:

  • limit: Number of CMS pages to scan (default: 50, max: 200)

  • lang_id: Language ID for multilang fields (default: "1")

Returns: SEO score, total pages scanned, issue counts, and prioritised action list.

ps_get_order_detailsA

Get complete details of an order including ordered products, delivery address, carrier, and payment info.

Args:

  • id: Order ID (required)

Returns: Full order with products list (name, reference, quantity, unit price, total), delivery address, carrier, payment method, and all totals.

ps_get_customer_ordersA

Get the complete order history for a customer, with totals and statuses.

Args:

  • id_customer: Customer ID (required)

  • limit: Max orders to return (default: 50)

Returns: Array of orders sorted by date (newest first) with id, reference, state, payment method, totals, and dates. Also returns customer summary (total orders, total spent).

ps_low_stock_reportA

List products whose stock is below a threshold, sorted by quantity ascending (most critical first).

Args:

  • threshold: Stock alert threshold (default: 5) — products with quantity <= threshold are returned

  • limit: Max products to return (default: 50)

  • lang_id: Language ID for product names (default: "1")

Returns: Array of low-stock products with product_id, name, stock_id, quantity, and out_of_stock policy. Includes a summary with total count and critical (quantity=0) count.

ps_abandoned_cart_analysisA

Analyse shopping carts that were not converted to orders (abandoned carts).

Crosses carts with orders to identify carts without a matching order. Enriches with customer data when available.

Args:

  • days: Lookback period in days (default: 30)

  • limit: Max carts to analyse (default: 200)

Returns: Abandoned cart count, conversion rate, and list of abandoned carts with customer info.

ps_supplier_performanceB

Analyse supplier performance by crossing suppliers, products, stock, and orders.

Calculates per supplier: number of products, total stock, revenue generated, average margin.

Args:

  • days: Lookback period in days (default: 90)

  • lang_id: Language ID for supplier names (default: "1")

Returns: Array of suppliers with performance metrics.

ps_dead_products_reportA

Identify products with 0 sales in the last 90 days but with stock > 0.

Returns: product_id, name, stock, price, days_since_last_sale, estimated_loss (stock × price). Saves report to /data/dead_products_YYYY-MM-DD.json.

Args:

  • lang_id: Language ID for product names (default: "1")

  • limit: Max products to scan (default: 200)

ps_stock_rotation_scoreA

Calculate stock rotation rate per product.

rotation = units_sold_30d / average_stock Classification: "fast" (>2), "normal" (0.5–2), "slow" (0.1–0.5), "dead" (<0.1)

Saves to /data/stock_rotation_YYYY-MM-DD.json.

Args:

  • lang_id: Language ID for product names (default: "1")

  • limit: Max products to analyse (default: 200)

ps_margin_scoringA

Calculate gross margin per product using the wholesale_price field.

margin % = (price - wholesale_price) / price × 100 Classification: "excellent" (>50%), "good" (30–50%), "low" (15–30%), "critical" (<15%) Products without wholesale_price are marked as "no_data".

Saves to /data/margin_scores_YYYY-MM-DD.json.

Args:

  • lang_id: Language ID for product names (default: "1")

  • limit: Max products to analyse (default: 200)

ps_stock_alert_checkA

Compare current product stock against configured thresholds and report alerts.

Reads thresholds from /data/stock_alert_config.json (created with defaults if absent). Default config: { default_threshold: 5, critical_threshold: 0 }

Returns summary: { total_warnings, total_critical, alerts[] } Writes current alerts to /data/stock_alerts.json and history to /data/stock_alerts_history.json.

Args:

  • lang_id: Language ID for product names (default: "1")

  • limit: Max products to check (default: 500)

ps_configure_stock_alertsA

Set global and per-product stock alert thresholds.

Updates /data/stock_alert_config.json.

Args:

  • default_threshold: Global warning threshold (default: 5)

  • critical_threshold: Global critical threshold (default: 0)

  • check_interval_minutes: Recommended check interval in minutes (default: 60)

  • product_thresholds: JSON object mapping product_id → threshold e.g. { "42": 10, "99": 3 }

Returns the updated configuration.

ps_top_revenue_productsA

Calculate revenue per product from order history and return the top 20% by revenue (Pareto principle).

Includes: product_id, name, total_revenue, units_sold, avg_price, % of total revenue. Saves to /data/kpi_top_products_YYYY-MM-DD.json.

Args:

  • days: Lookback period in days (default: 90)

  • limit: Max orders to analyse (default: 1000)

ps_average_basket_analysisB

Analyse average basket value overall and by month, carrier, and customer group.

Also computes the trend (current period vs previous period) to show whether baskets are growing.

Args:

  • days: Lookback period in days (default: 90)

  • limit: Max orders to analyse (default: 2000)

ps_customer_ltvA

Calculate customer LTV and segment customers.

LTV = avg_order_value × purchase_frequency × lifespan_months

Segments:

  • "champion" : high LTV (top 20%)

  • "loyal" : medium LTV (20–60%)

  • "at_risk" : no purchase in 60+ days but ≥3 previous orders

  • "lost" : no purchase in 60+ days and <3 orders, or bottom 40% LTV

Saves to /data/kpi_ltv_YYYY-MM-DD.json.

Args:

  • limit: Max customers to analyse (default: 500)

  • at_risk_days: Days without purchase to flag as at_risk (default: 60)

ps_generate_full_reportA

Run all scoring and KPI tools sequentially and produce a consolidated report.

Executes:

  1. Stock rotation score

  2. Margin scoring

  3. Dead products report

  4. Top revenue products

  5. Average basket analysis

  6. Customer LTV

Saves consolidated output to /data/full_report_YYYY-MM-DD.json.

Args:

  • lang_id: Language ID for product/category names (default: "1")

  • days: Lookback period for KPI tools in days (default: 90)

  • limit: Max items to analyse per tool (default: 200)

ps_category_performanceB

Analyse revenue and margin per product category by crossing orders, order_details, and products.

Calculates: revenue per category, number of products, average basket per category.

Args:

  • days: Lookback period in days (default: 90)

  • lang_id: Language ID for category names (default: "1")

  • limit: Max orders to analyse (default: 1000)

ps_inventory_value_reportA

Calculate the total value of inventory by multiplying stock × wholesale_price.

Returns: total inventory value, number of products, top products by inventory value.

Args:

  • lang_id: Language ID for product names (default: "1")

  • limit: Max products to analyse (default: 200)

ps_cross_analysisA

Perform server-side cross-dataset analysis combining stock and order data. Returns only the final compact result — no intermediate raw records are exposed. Use this instead of manually paginating ps_list_stock + ps_list_orders to avoid filling the context window.

analysis_type options: • "dead_products" — products with stock > threshold but 0 units sold in the last days days • "low_movers" — products with stock > threshold and fewer than threshold units sold (sorted by velocity asc) • "out_of_stock_with_demand" — products with quantity = 0 that had at least 1 sale in the last days days

Supports pagination via limit + offset for large catalogues.

Args:

  • analysis_type: One of "dead_products", "low_movers", "out_of_stock_with_demand" (required)

  • days: Lookback period in days for sales data (default: 90)

  • threshold: Stock quantity threshold; interpretation depends on analysis_type (default: 0)

  • lang_id: Language ID for product names (default: "1")

  • limit: Max products to scan from PrestaShop (default: 200, max: 500)

  • offset: Skip N products — use with limit to paginate large catalogues (default: 0)

ps_list_manufacturersA

List manufacturers (brands) with optional filtering.

Args:

  • limit: Max items to return (default: 50)

  • offset: Pagination offset (default: 0)

  • active: Filter by active status

  • lang_id: Language ID for multilang fields (default: "1")

Returns: Array of manufacturers with id, name, active status, and description.

ps_get_manufacturerB

Get full details of a manufacturer by ID.

Args:

  • id: Manufacturer ID (required)

  • lang_id: Language ID for multilang fields (default: "1")

Returns: Complete manufacturer data with name, description, and SEO metadata.

ps_list_suppliersA

List suppliers with optional filtering.

Args:

  • limit: Max items to return (default: 50)

  • offset: Pagination offset (default: 0)

  • active: Filter by active status

  • lang_id: Language ID for multilang fields (default: "1")

Returns: Array of suppliers with id, name, active status, and description.

ps_get_supplierA

Get full details of a supplier by ID.

Args:

  • id: Supplier ID (required)

  • lang_id: Language ID for multilang fields (default: "1")

Returns: Complete supplier data with name, description, and SEO metadata.

ps_list_countriesA

List countries configured in the shop.

Args:

  • limit: Max items to return (default: 50)

  • active: Filter by active status

  • lang_id: Language ID for multilang fields (default: "1")

Returns: Array of countries with id, name, iso_code, and active status.

ps_list_zonesB

List geographic zones (e.g., Europe, North America).

Args:

  • limit: Max items to return (default: 50)

Returns: Array of zones with id, name, and active status.

ps_list_statesB

List states/provinces with optional country filter.

Args:

  • limit: Max items to return (default: 50)

  • id_country: Filter by country ID

Returns: Array of states with id, name, iso_code, and country_id.

ps_list_currenciesA

List currencies configured in the shop.

Args:

  • active: Filter by active status

Returns: Array of currencies with id, name, iso_code, sign, conversion_rate, and active status.

ps_list_groupsA

List customer groups (e.g., Visitor, Guest, Customer).

Args:

  • lang_id: Language ID for multilang fields (default: "1")

Returns: Array of groups with id, name, reduction, price_display_method, and show_prices.

ps_get_groupA

Get full details of a customer group by ID.

Args:

  • id: Group ID (required)

  • lang_id: Language ID for multilang fields (default: "1")

Returns: Complete group data with name, reduction, and configuration.

ps_list_cartsA

List shopping carts with optional filtering. Useful for abandoned cart analysis.

Args:

  • limit: Max items to return (default: 50)

  • offset: Pagination offset (default: 0)

  • id_customer: Filter by customer ID

Returns: Array of carts with id, customer_id, currency, carrier, and dates.

ps_get_cartB

Get full details of a shopping cart by ID, including cart rows (products).

Args:

  • id: Cart ID (required)

Returns: Complete cart data with customer, carrier, products, and dates.

ps_list_order_invoicesA

List order invoices with optional filtering.

Args:

  • limit: Max items to return (default: 50)

  • offset: Pagination offset (default: 0)

  • id_order: Filter by order ID

Returns: Array of invoices with id, order_id, number, totals, and dates.

ps_list_order_paymentsA

List order payments with optional filtering.

Args:

  • limit: Max items to return (default: 50)

  • offset: Pagination offset (default: 0)

  • id_order: Filter by order reference

Returns: Array of payments with id, order_reference, payment_method, amount, and date.

ps_list_configurationsA

List shop configuration keys and values.

Args:

  • limit: Max items to return (default: 50)

  • offset: Pagination offset (default: 0)

Returns: Array of configuration entries with id, name, and value.

ps_get_configurationB

Get a specific configuration entry by ID.

Args:

  • id: Configuration ID (required)

Returns: Configuration entry with id, name, value, and dates.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.1/5.0

Scored across 79 tools

Disambiguation2/5

Several tools have unclear boundaries: ps_get_order and ps_get_order_details appear to return nearly identical order detail, and ps_dead_products_report overlaps heavily with ps_cross_analysis using analysis_type=dead_products. Stock/alert tools (ps_low_stock_report, ps_stock_alert_check, ps_list_stock, ps_get_product_stock, ps_stock_rotation_score) and SEO update paths (ps_update_product, ps_update_category, ps_update_seo) also risk misselection.

Naming Consistency3/5

All tools use a consistent ps_ prefix and snake_case, which is readable. However, many analytics tools are noun-first reports (ps_dead_products_report, ps_stock_rotation_score, ps_customer_ltv) while the core CRUD tools are verb-first (ps_list_*, ps_get_*, ps_create_*), creating a mixed convention across the set.

Tool Count1/5

At 79 tools, the surface is extremely large for an MCP server and exceeds the point where an agent can reliably choose among tools. Much of the count comes from overlapping analytics/report tools and many read-only list/get endpoints, making the set feel overgrown rather than well-scoped.

Completeness3/5

Coverage is broad across products, categories, customers, orders, carts, stock, CMS, SEO, carriers, pricing, and reporting. However, several resources are list/get only (manufacturers, suppliers, carriers, tax rules, zones, configurations), and there are gaps in product combination/image management, order creation, and delete/update operations for some entities.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues