Skip to main content
Glama
Shopify Analytics MCP Server

Shopify Analytics MCP Server

by DrMatrixx

get_product_performance

Retrieves product-level analytics for a specific product or all products, including revenue, units sold, and average order value, with optional period comparisons.

Instructions

Get detailed analytics for a specific product or compare all products. Shows revenue, units sold, AOV with optional period comparison.

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

Input Schema

NameRequiredDescriptionDefault
periodNoDate range (default: last_30d)
compare_toNoComparison: previous_period, previous_year, none (default: none)
product_titleNoProduct title to filter (partial match). If omitted, returns all products.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses that comparison is optional and what metrics are produced, but says nothing about read-only safety, rate limits, result size, pagination, or how the all-products mode differs in shape from the single-product mode.

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?

Two tight sentences that front-load the capability and then the output metrics, with no filler. The only mild redundancy is repeating the optional comparison already covered by the schema.

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?

For a three-parameter, all-optional read tool with fully documented schema and no output schema, the definition names the returned metrics and both query modes, which is enough to call it correctly. Missing output-field detail and any sibling routing keep it short of full completeness.

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 all three parameters (period, compare_to, product_title) already carry descriptions including default values and the partial-match behavior. The description's "optional period comparison" and "specific product or all products" restate that without adding format or syntax detail, so the baseline of 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?

The description uses a specific verb and resource ("Get detailed analytics for a specific product or compare all products") and enumerates the metrics returned (revenue, units sold, AOV). It clearly covers both operating modes, though it never names a sibling like get_top_products or get_sales_by_channel to sharpen the boundary.

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 only implied: the two modes tell an agent that omitting product_title yields an all-products comparison, but there is no explicit when-to-use, when-not, or pointer to alternatives for related questions about top products or channel-level revenue.

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