Skip to main content
Glama
Shopify Analytics MCP Server

Shopify Analytics MCP Server

by DrMatrixx

get_order_trends

Analyze daily, weekly, monthly, or quarterly revenue and order-count trends, with optional period comparisons, to identify sales patterns and performance shifts.

Instructions

Get daily/weekly/monthly revenue and order count breakdown for trend analysis.

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

Input Schema

NameRequiredDescriptionDefault
periodNoDate range (default: last_30d)
compare_toNoComparison period: previous_period, previous_year, none (default: none)
granularityNoTime granularity (default: daily)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.2/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 that the response contains revenue and order count broken out by time bucket, which is the key behavioral fact, but says nothing about timezone handling, maximum date ranges, rate limits, or whether comparison data is additive or separate.

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 front-loaded sentence with no filler. It is slightly imprecise in listing only three of the four supported granularities while 'quarterly' is silently available.

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 three-optional-parameter analytics tool with no output schema and no annotations, the description is minimally sufficient: it says what metrics come back and at what granularity. It leaves the agent guessing about the response shape, date-range limits, and defaults interpretation that structured fields alone do not settle.

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 100%, so the schema already defines period, compare_to, and granularity fully, establishing a baseline of 3. The description reinforces granularity but actually omits 'quarterly', which the enum supports, and adds no format or default information beyond the schema.

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 ('Get'), a specific resource (revenue and order count breakdown), and the dimensions along which it is broken out (daily/weekly/monthly). An agent can tell this is a time-series aggregation tool rather than a detail or summary tool, though it does not name any sibling it differs from.

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

Usage Guidelines2/5

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

Only the trailing phrase 'for trend analysis' hints at when to reach for this. With siblings like get_sales_summary, get_sales_by_channel, and get_recent_orders in the catalog, there is no statement of how this differs or when to prefer it.

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