Get Product
Gets a single WooCommerce product by ID, including price, stock, images, categories/tags, and shipping detail.
Also known as: product details, product price, stock level.
| Property | Value |
|---|---|
| Ability slug | mosmcp/get-product |
| Wire tool name | mosmcp__get-product |
| 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 |
|---|---|---|---|---|
| id | integer | Yes | — | The product ID (required). |
Output schema
| Field | Type | Required |
|---|---|---|
| success | boolean | |
| message | string | |
| data | object | |
| data.id | integer | |
| data.name | string | |
| data.slug | string | |
| data.type | string | |
| data.status | string | |
| data.featured | boolean | |
| data.catalog_visibility | string | |
| data.description | string | |
| data.short_description | string | |
| data.sku | string | |
| data.price | string | |
| data.regular_price | string | |
| data.sale_price | string | |
| data.price_html | string | |
| data.on_sale | boolean | |
| data.purchasable | boolean | |
| data.virtual | boolean | |
| data.downloadable | boolean | |
| data.manage_stock | boolean | |
| data.stock_quantity | integer \| null | |
| data.stock_status | string | |
| data.backorders | string | |
| data.weight | string | |
| data.dimensions | object | |
| data.tax_status | string | |
| data.tax_class | string | |
| data.shipping_class | string | |
| data.sold_individually | boolean | |
| data.upsell_ids | integer[] | |
| data.cross_sell_ids | integer[] | |
| data.purchase_note | string | |
| data.menu_order | integer | |
| data.categories | object[] | |
| data.tags | object[] | |
| data.images | object[] | |
| data.date_created | string \| null | |
| data.date_modified | string \| null | |
| data.permalink | string | |
| meta | object | |
| meta.ability | string | |
| meta.timestamp | string | |
| meta.execution_time | string \| null |
Example
Sample prompt
What's the current price and stock level of product 42?
Example request (json)
{
"jsonrpc": "2.0",
"id": 370,
"method": "tools/call",
"params": {
"name": "mosmcp__get-product",
"arguments": {
"input": {
"id": 42
}
}
}
}Example response (json)
{
"jsonrpc": "2.0",
"id": 370,
"result": {
"isError": false,
"structuredContent": {
"success": true,
"message": "Product retrieved.",
"data": {
"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": 35,
"stock_status": "instock",
"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/get-product",
"timestamp": "2026-09-29T10:15:00+00:00",
"execution_time": "18.4ms"
}
}
}
}
Edge cases / errors
- id missing, zero or negative → wcab_invalid_id ("A valid product ID is required").
- No product with that ID → wcab_product_not_found.
- Works for any product status (drafts, private, trashed) as long as WooCommerce can load it.
| << Previous | Next >> |
|---|---|
| Get Order | Get Product Attribute |
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.