List Orders


Lists WooCommerce orders, filterable by status, customer, date range, or a text search across order number, billing name, email, and phone. Results include customer billing details.

Also known as: orders, recent orders, sales, purchases, what has sold.

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

 

Required access

Requirement Value
Capability manage_woocommerce
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 order number, billing name, email, or phone. Use this to find an order by customer name/email when you don't already have an order ID or a numeric customer ID (e.g. guest checkouts have no customer ID).
status string[] — Order statuses to filter by. Omit for any status.
customer integer — Filter to orders placed by this customer (WordPress user ID). Not useful for guest orders — use search instead.
after string — Only include orders created on or after this date (YYYY-MM-DD).
before string — Only include orders created on or before this date (YYYY-MM-DD).
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.orders object[]
meta object
meta.ability string
meta.timestamp string
meta.execution_time string \| null
meta.pagination object

 

Example

Sample prompt
Show me this week's orders that are still processing.

Example request (json)

{
  "jsonrpc": "2.0",
  "id": 377,
  "method": "tools/call",
  "params": {
    "name": "mosmcp__list-orders",
    "arguments": {
      "input": {
        "status": [
          "processing"
        ],
        "after": "2026-09-28",
        "per_page": 20
      }
    }
  }
}

Example response (json)

{
  "jsonrpc": "2.0",
  "id": 377,
  "result": {
    "isError": false,
    "structuredContent": {
      "success": true,
      "message": "1 order(s) retrieved.",
      "data": {
        "orders": [
          {
            "id": 1057,
            "parent_id": 0,
            "number": "1057",
            "order_key": "wc_order_a1B2c3D4e5",
            "created_via": "checkout",
            "status": "processing",
            "currency": "USD",
            "date_created": "2026-09-27T16:45:10",
            "date_modified": "2026-09-27T16:46:02",
            "discount_total": "0.00",
            "discount_tax": "0.00",
            "shipping_total": "5.00",
            "shipping_tax": "0.00",
            "cart_tax": "3.96",
            "total": "56.96",
            "total_tax": "3.96",
            "prices_include_tax": false,
            "customer_id": 57,
            "customer_ip_address": "203.0.113.24",
            "customer_user_agent": "Mozilla/5.0",
            "customer_note": "",
            "billing": {
              "first_name": "Jane",
              "last_name": "Doe",
              "company": "",
              "address_1": "12 High Street",
              "address_2": "",
              "city": "Austin",
              "state": "TX",
              "postcode": "78701",
              "country": "US",
              "email": "jane@example.com",
              "phone": "+1 512 555 0142"
            },
            "shipping": {
              "first_name": "Jane",
              "last_name": "Doe",
              "company": "",
              "address_1": "12 High Street",
              "address_2": "",
              "city": "Austin",
              "state": "TX",
              "postcode": "78701",
              "country": "US"
            },
            "payment_method": "stripe",
            "payment_method_title": "Credit card",
            "transaction_id": "ch_3PqX12",
            "date_paid": "2026-09-27T16:46:02",
            "date_completed": null,
            "line_items": [
              {
                "id": 311,
                "name": "Organic Cotton T-Shirt",
                "parent_name": null,
                "product_id": 42,
                "variation_id": 0,
                "quantity": 2,
                "tax_class": "",
                "subtotal": "48.00",
                "subtotal_tax": "3.96",
                "total": "48.00",
                "total_tax": "3.96",
                "sku": "TSHIRT-ORG-01",
                "price": "24.00"
              }
            ],
            "tax_lines": [
              {
                "id": 312,
                "rate_code": "US-TX-TAX-1",
                "rate_id": 1,
                "label": "Tax",
                "compound": false,
                "tax_total": "3.96",
                "shipping_tax_total": "0.00"
              }
            ],
            "shipping_lines": [
              {
                "id": 313,
                "method_title": "Flat rate",
                "method_id": "flat_rate",
                "total": "5.00",
                "total_tax": "0.00"
              }
            ],
            "fee_lines": [],
            "coupon_lines": [],
            "refunds": []
          }
        ]
      },
      "meta": {
        "ability": "mosmcp/list-orders",
        "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

  • Always newest first; per_page is clamped to 1-100.
  • status values outside the listed enum are dropped; omit it to include every status.
  • after/before not YYYY-MM-DD → wcab_invalid_date; a non-positive customer → wcab_invalid_id.
  • Guest orders have customer_id 0 - find them with search (name, email, phone) instead of customer.

 


<< Previous Next >>
List Order Refunds List Product Attributes

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.