get_inventory
Retrieve WooCommerce inventory levels and stock status for products, and filter results for low-stock or out-of-stock items.
Instructions
Retrieve inventory levels and stock status for products in the WooCommerce store. Supports filtering for low-stock and out-of-stock items (deterministic low stock threshold <= 5).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_inventory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number for pagination. | |
| limit | No | Maximum number of inventory items to return (1-100). | |
| low_stock_only | No | When true, only returns products that are out of stock or have stock quantity below or equal to their low stock threshold (default threshold: <= 5). |