Skip to main content
Glama

woo_stock_report

Generates a WooCommerce stock status report, listing stock-managed products with the lowest stock first and filtering by low stock, out of stock, or backorder status.

Instructions

Get stock status report (stock-managed products, lowest stock first)

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "site": "<site>"
    },
    "name": "woo_stock_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYesSite id (see list_sites)
limitNoNumber of products (default 20)
statusNolowstock (default: in stock at or below the low-stock threshold), outofstock, onbackorder

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv3.14.0
    • removedInput schema / properties / limit / default
      Removed value: -20
    • addedInput schema / properties / limit / description
      Added value: +"Number of products (default 20)"
    • changedInput schema / properties / limit / type
      Previous value: -"number"New value: +"integer"
    • removedInput schema / properties / status / default
      Removed value: -"lowstock"
    • addedInput schema / properties / status / description
      Added value: +"lowstock (default: in stock at or below the low-stock threshold), outofstock, onbackorder"
  2. Changed2 schema fields changedv3.4.0
    • addedInput schema / properties / site
      Added value: +{
      +  "description": "Site id (see list_sites)",
      +  "type": "string"
      +}
    • addedInput schema / required
      Added value: +[
      +  "site"
      +]
  3. First observedv2.0.0

TDQS

B3.4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full burden. It does disclose two meaningful traits beyond the schema: only stock-managed products are included, and results are ordered lowest stock first. It omits pagination behavior, whether the response includes thresholds or quantities, and any permission requirements.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single compact line with zero filler and the sorting/scope qualifiers front-loaded in parentheses. It borders on under-specified rather than padded, but every word earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple three-parameter read tool with a fully documented schema, the description is adequate but thin: with no output schema, the agent gets no sense of what the report rows contain (quantities, thresholds, product identifiers) or how many results to expect beyond the limit parameter.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the schema itself documents all three parameters including the status enum and its 'lowstock' default semantics, so the description adds no parameter meaning beyond it. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ('Get stock status report') and adds scope qualifiers — stock-managed products only, sorted lowest stock first. An agent can tell this is a read-only inventory report rather than the stock mutation sibling (woo_bulk_update_stock), though it never names that distinction explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the name and the 'lowest stock first' phrasing (a replenishment/audit use case), but there is no explicit when-to-use, when-not-to-use, or pointer to alternatives such as woo_sales_report for broader reporting. The scope note about stock-managed products is the only real guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools