Skip to main content
Glama
woocommerce-mcp

woocommerce-mcp

by mubasher1111

Sales report

sales_report
Read-onlyIdempotent

Calculates exact WooCommerce sales figures for a date range—orders, gross/net sales, refunds, tax, AOV, top products/customers, and daily totals.

Instructions

Exact sales figures for a date range, calculated from the orders: order count, gross and net sales, refunds, discounts, shipping, tax, average order value, items sold, sales by day, top products, top customers, payment methods and cities. Counts completed, processing and on-hold orders unless statuses are given. Up to 2,000 orders.

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": "sales_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoEnd date YYYY-MM-DD, inclusive (default: today)
fromNoStart date YYYY-MM-DD (default: first day of this month)
statusesNoOrder statuses to count

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the readOnly/idempotent annotations, it discloses two substantive behaviours: the default status set counted (completed, processing, on-hold) and a hard cap of 2,000 orders. That cap is exactly the kind of limit an agent needs before calling. It still omits currency, timezone, and how incomplete periods are treated.

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?

Front-loaded with the core verb and scope, then a metrics list, then the two behavioural constraints. The metric enumeration is long but each item is meaningful rather than filler. Slightly dense in the middle sentence but no wasted clauses.

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

Completeness4/5

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

A read-only aggregation with a fully documented three-parameter schema and no output schema does not need return-value prose, and the description supplies the metrics list plus default filtering and the order cap. Remaining gaps (currency, timezone boundaries) are minor for correct invocation.

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%, so date formats and defaults are already documented; baseline is 3. The description does add meaning for the statuses parameter by stating which statuses are counted when it is omitted, which the schema alone does not say, but it adds nothing about date-range semantics.

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?

Opens with a specific verb-and-resource framing ("Exact sales figures for a date range") and enumerates the metrics returned, so an agent knows this is a metrics aggregation, not an order list. It does not name the neighbouring overview tool (store_overview) or otherwise differentiate itself from siblings, which keeps it short of a 5.

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 rather than stated: the description makes clear this is for reporting over a date range and gives default date handling indirectly. There is no explicit "use this when X, use store_overview when Y" routing guidance, and no exclusions. Adequate but the agent must infer the choice against siblings.

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