Skip to main content
Glama
wp-woo-mcp

wp-woo-mcp

by Wtirliz

Sales summary

sales_summary
Read-only

Aggregate WooCommerce orders for a date range to calculate revenue, order count, average order value, status breakdown, and top products by revenue.

Instructions

Aggregate orders for a period: count, revenue, average order, orders by status and top products by revenue. Reads up to max_orders orders.

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": {
      "after": "<after>"
    },
    "name": "sales_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNo
afterYesPeriod start, ISO 8601, e.g. 2026-11-01T00:00:00
beforeNoPeriod end, ISO 8601; default now
statusesNo
max_ordersNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The sentence 'Reads up to max_orders orders' adds genuine non-obvious context that the summary is bounded by a scan cap, but it does not say what happens past that cap (truncation, sampling, silently partial totals), which is exactly what an agent needs to interpret the numbers.

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

Conciseness5/5

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

Two tight sentences, front-loaded with what is computed and followed by the one behavioral constraint that matters. No filler, no restatement of the title.

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?

With no output schema, the description does useful work by enumerating the returned metrics, and it flags the scan cap. But for an analytical tool whose numbers drive decisions, it omits currency/units, how statuses affect the aggregation, and what a capped or empty result looks like, leaving material ambiguity.

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 description coverage is only 40%: 'after' and 'before' are documented, but 'top', 'statuses' and 'max_orders' are not. The description partly compensates by tying 'top products by revenue' to the 'top' parameter and by explaining the max_orders scan bound, but it never reveals that 'statuses' defaults to processing+completed only, so an agent could report totals that silently exclude pending or completed-elsewhere orders.

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?

The description names a specific verb ('Aggregate') and resource ('orders for a period') and enumerates the exact metrics produced (count, revenue, average order, by status, top products). That is far more specific than the generic title 'Sales summary', though it never explicitly contrasts itself with the list/search siblings that also return orders.

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?

Aggregation over a period is clearly implied by the phrasing, which steers an agent away from get_order/list_orders for totals. However, there is no explicit when-to-use or when-not-to-use statement, no mention that it returns metrics rather than individual records, and no guidance on when to prefer list_orders for raw rows.

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