List Products


Lists WooCommerce products with filtering by search, SKU, status, featured flag, type, category, tag, stock status, price range, sale status, virtual/downloadable flags, slug, IDs, and modified-date range.

Also known as: products, catalogue, what do I sell, shop items, stock list.

Property Value
Ability slug mosmcp/list-products
Wire tool name mosmcp__list-products
Category WooCommerce (mosmcp-woocommerce)
Plan Free

 

Required access

Requirement Value
Capability edit_products
Minimum default role Shop manager
Requires WooCommerce
Annotations readOnly: true · destructive: false · idempotent: true · openWorld: false

 

Input schema

Field Type Required Default Description
search string — Search term matched against product title.
slug string — Exact product slug.
sku string — Search term matched against SKU.
status string publish Product status to filter by, or "any".
featured boolean — Filter to only featured (or only non-featured) products.
on_sale boolean — Filter to only products currently on sale.
virtual boolean — Filter by the virtual flag.
downloadable boolean — Filter by the downloadable flag.
type string (one of simple, variable, grouped, external) — Filter by product type.
category string[] — Product category slugs to filter by.
tag string[] — Product tag slugs to filter by.
stock_status string (one of instock, outofstock, onbackorder) — Filter by stock status.
price_min number — Minimum price (inclusive).
price_max number — Maximum price (inclusive).
include integer[] — Limit results to these specific product IDs.
exclude integer[] — Exclude these specific product IDs from the results.
after string — Only include products created on or after this date (YYYY-MM-DD).
before string — Only include products created on or before this date (YYYY-MM-DD).
orderby string (one of date, id, include, title, slug, modified, menu_order, price, popularity, rating) date Field to order results by.
order string (one of ASC, DESC) DESC Sort direction.
page integer 1 Page number, for pagination.
per_page integer 20 Results per page (1-100).

 

Output schema

Field Type Required
success boolean
message string
data object
data.products object[]
meta object
meta.ability string
meta.timestamp string
meta.execution_time string \| null
meta.pagination object

 

Example

Sample prompt
Show me all my clothing products that are running low or out of stock.

Example request (json)

{
  "jsonrpc": "2.0",
  "id": 381,
  "method": "tools/call",
  "params": {
    "name": "mosmcp__list-products",
    "arguments": {
      "input": {
        "category": [
          "clothing"
        ],
        "stock_status": "outofstock",
        "per_page": 20
      }
    }
  }
}

Example response (json)

{
  "jsonrpc": "2.0",
  "id": 381,
  "result": {
    "isError": false,
    "structuredContent": {
      "success": true,
      "message": "1 product(s) retrieved.",
      "data": {
        "products": [
          {
            "id": 42,
            "name": "Organic Cotton T-Shirt",
            "slug": "organic-cotton-t-shirt",
            "type": "simple",
            "status": "publish",
            "featured": false,
            "catalog_visibility": "visible",
            "description": "<p>Soft, breathable organic cotton tee.</p>",
            "short_description": "Everyday organic tee.",
            "sku": "TSHIRT-ORG-01",
            "price": "24.00",
            "regular_price": "24.00",
            "sale_price": "",
            "price_html": "<span class=\"amount\">$24.00</span>",
            "on_sale": false,
            "purchasable": true,
            "virtual": false,
            "downloadable": false,
            "manage_stock": true,
            "stock_quantity": 0,
            "stock_status": "outofstock",
            "backorders": "no",
            "weight": "0.2",
            "dimensions": {
              "length": "30",
              "width": "25",
              "height": "2"
            },
            "tax_status": "taxable",
            "tax_class": "",
            "shipping_class": "",
            "sold_individually": false,
            "upsell_ids": [],
            "cross_sell_ids": [],
            "purchase_note": "",
            "menu_order": 0,
            "categories": [
              {
                "id": 15,
                "name": "Clothing",
                "slug": "clothing"
              }
            ],
            "tags": [
              {
                "id": 31,
                "name": "Organic",
                "slug": "organic"
              }
            ],
            "images": [
              {
                "id": 88,
                "src": "https://example.com/wp-content/uploads/2026/09/tshirt.jpg",
                "alt": "Organic cotton t-shirt"
              }
            ],
            "date_created": "2026-08-12T09:30:00",
            "date_modified": "2026-09-20T14:02:11",
            "permalink": "https://example.com/product/organic-cotton-t-shirt/"
          }
        ]
      },
      "meta": {
        "ability": "mosmcp/list-products",
        "timestamp": "2026-09-29T10:15:00+00:00",
        "execution_time": "18.4ms",
        "pagination": {
          "total": 1,
          "total_pages": 1,
          "current_page": 1,
          "has_next": false,
          "has_previous": false
        }
      }
    }
  }
}

 

Edge cases / errors

  • status defaults to publish, so drafts and private products are hidden unless you pass their status or "any".
  • after/before not in YYYY-MM-DD format → wcab_invalid_date error.
  • per_page is clamped to 1-100 and page to at least 1; out-of-range values are silently adjusted, not rejected.
  • sku is a partial (LIKE) match, and price_min/price_max filter on the stored active price; non-numeric price bounds are ignored.

 


<< Previous Next >>
List Product Tags Orders Report

For more information about the Secure MCP Server for WordPress plugin, explore the following resources:

Product Overview | Pricing | Try for Free | Documentation

If you have any questions regarding plugin configuration, pricing plans or licensing, please contact us or mail us at aisupport@xecurify.com.