Add Order Note


Adds a note to a WooCommerce order, either private (staff-only) or customer-visible.

Also known as: add a note to an order, customer note, order comment.

Property Value
Ability slug mosmcp/create-order-note
Wire tool name mosmcp__create-order-note
Category WooCommerce (mosmcp-woocommerce)
Plan Free

 

Required access

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

 

Input schema

Field Type Required Default Description
id integer Yes — The order ID (required).
note string Yes — The note text (required).
customer_note boolean false Whether the note is visible to the customer.

 

Output schema

Field Type Required
success boolean
message string
data object
data.note_id integer Yes
data.order_id integer Yes
meta object
meta.ability string
meta.timestamp string
meta.execution_time string \| null

 

Example

Sample prompt
Add a note to order 1057 telling the customer their parcel has been dispatched.

Example request (json)

{
  "jsonrpc": "2.0",
  "id": 351,
  "method": "tools/call",
  "params": {
    "name": "mosmcp__create-order-note",
    "arguments": {
      "input": {
        "id": 1057,
        "note": "Your parcel has been dispatched and should arrive in 2-3 days.",
        "customer_note": true
      }
    }
  }
}

Example response (json)

{
  "jsonrpc": "2.0",
  "id": 351,
  "result": {
    "isError": false,
    "structuredContent": {
      "success": true,
      "message": "Order note added.",
      "data": {
        "note_id": 9021,
        "order_id": 1057
      },
      "meta": {
        "ability": "mosmcp/create-order-note",
        "timestamp": "2026-09-29T10:15:00+00:00",
        "execution_time": "18.4ms"
      }
    }
  }
}

 

Edge cases / errors

  • customer_note defaults to false (private staff note); set it to true to make the note customer-visible, which triggers WooCommerce's customer-note email.
  • Empty note → wcab_missing_note; the text is stored as plain text (HTML is stripped).
  • Unknown order → wcab_order_not_found; no edit rights → wcab_cannot_edit; WooCommerce fails to save → wcab_note_failed.

 


<< Previous Next >>
Coupon Usage 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.