Skip to main content
Glama

Shopify sales breakdown

get_sales_breakdown
Read-onlyIdempotent

Shopify's own Total sales breakdown for the current period: gross sales, discounts, returns, net sales, shipping and taxes — the same lines, with the same definitions, as the merchant's Shopify admin. Use this whenever the question is about revenue in the merchant's own terms, or when they say our number disagrees with Shopify. IMPORTANT: netSales is Shopify's revenue figure and EXCLUDES tax and shipping; orderTotal is the order-total basis the rest of Nuira still reports and INCLUDES both, which is why the two differ — say so rather than picking one silently. VAT: grossSales, discounts, returns and netSales are ALL WITHOUT tax (VAT), exactly like Shopify's own lines; tax is its own line. taxInclusive only says how the store ENTERS its prices (with tax included), which Nuira has already taken out of every line: never read it as the figures including VAT. Asked whether a figure carries VAT, the answer is no, and the VAT is the tax line. Returns count in the period the refund was issued, not the period of the order it reverses. When complete is false, some orders in the range predate these figures and every line understates: say that instead of quoting the totals as final. Optional from and to (inclusive YYYY-MM-DD, both or neither, never after today) read another span instead of the default period. A named month, a week or two dates the operator gave MUST be sent here: without them this reads the default period (the one on the operator's screen, else the last 30 days), which is not that month. When the operator names no period, send neither.

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_sales_breakdown"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoLast day of the span, inclusive, as YYYY-MM-DD; not after today. Send together with `from`, or omit both to read the default period: the one on the operator's screen when the message names it, else the last 30 days.
fromNoFirst day of the span, inclusive, as YYYY-MM-DD. Send together with `to`, or omit both to read the default period: the one on the operator's screen when the message names it, else the last 30 days.
salesChannelNoOnly online orders (the web shop) or only point-of-sale orders; omit for every channel. When the operator says 'solo web', 'online only' or 'sin POS', send online — and keep sending it for the rest of the conversation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / from / description
      Previous value: -"First day of the span, inclusive, as YYYY-MM-DD. Send together with `to`, or omit both to read the default 30-day period."New value: +"First day of the span, inclusive, as YYYY-MM-DD. Send together with `to`, or omit both to read the default period: the one on the operator's screen when the message names it, else the last 30 days."
    • changedInput schema / properties / to / description
      Previous value: -"Last day of the span, inclusive, as YYYY-MM-DD; not after today. Send together with `from`, or omit both to read the default 30-day period."New value: +"Last day of the span, inclusive, as YYYY-MM-DD; not after today. Send together with `from`, or omit both to read the default period: the one on the operator's screen when the message names it, else the last 30 days."
  2. Changed1 schema field changed
    • addedInput schema / properties / salesChannel
      Added value: +{
      +  "description": "Only online orders (the web shop) or only point-of-sale orders; omit for every channel. When the operator says 'solo web', 'online only' or 'sin POS', send online — and keep sending it for the rest of the conversation.",
      +  "enum": [
      +    "online",
      +    "pos"
      +  ],
      +  "type": "string"
      +}
  3. Changed2 schema fields changed
    • addedInput schema / properties / from / description
      Added value: +"First day of the span, inclusive, as YYYY-MM-DD. Send together with `to`, or omit both to read the default 30-day period."
    • addedInput schema / properties / to / description
      Added value: +"Last day of the span, inclusive, as YYYY-MM-DD; not after today. Send together with `from`, or omit both to read the default 30-day period."
  4. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), yet the description adds substantive behavioral context: `netSales` excludes tax and shipping while `orderTotal` includes both, `taxInclusive` describes price entry rather than the reported figures, returns land in the refund period, and `complete: false` means every line understates. These are exactly the non-obvious traits an agent would otherwise misreport.

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?

Purpose and when-to-use are front-loaded before the caveats, and every section carries real operational stakes. It loses a point for density and repetition: the VAT point is restated three times ('ALL WITHOUT tax', 'never read it as the figures including VAT', 'the answer is no') in one unbroken block.

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

Completeness5/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 carries the burden of explaining returned figures, and it does so for every named line, including the two competing revenue bases, the tax treatment, the `complete` flag, and returns timing. Combined with fully documented optional parameters, an agent has everything needed to call and interpret it correctly.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3; the description earns a point above it by giving decision rules the schema only describes mechanically — a named month, week, or two given dates must be passed here, and omitting them silently falls back to the default period, which is 'not that month'. It is silent on `salesChannel`, but the schema's enum description already carries that mapping in full.

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

Purpose5/5

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

The opening sentence names the specific resource (Shopify's own Total sales breakdown) and enumerates the exact lines returned: gross sales, discounts, returns, net sales, shipping and taxes. It also contrasts its basis with 'the rest of Nuira' reporting orderTotal, so an agent can tell it apart from sibling sales tools such as get_sales or get_sales_by without opening their schemas.

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

Usage Guidelines5/5

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

It gives an explicit use case ('whenever the question is about revenue in the merchant's own terms, or when they say our number disagrees with Shopify') and an explicit exclusion/contrast (the orderTotal basis used elsewhere). It further specifies when the period parameters must be sent ('a named month, a week or two dates the operator gave MUST be sent here') and when to omit them ('when the operator names no period, send neither').

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources