Skip to main content
Glama
Shopify Analytics MCP Server

Shopify Analytics MCP Server

by DrMatrixx

get_customer_insights

Retrieve customer analytics—total customers, top spenders, and aggregate metrics—for a chosen period to understand customer value and spending patterns.

Instructions

Get customer analytics: total customers, top spenders, and aggregate metrics.

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

Input Schema

NameRequiredDescriptionDefault
periodNoDate range (default: last_30d)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden but only implies a read-only analytics retrieval. It does not explain data source or freshness, how top spenders are ranked or limited, or other reporting behavior; there is no annotation contradiction.

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?

The single sentence is front-loaded and efficient, using a compact list to communicate the report's contents without filler. The vague phrase "aggregate metrics" affects completeness rather than structural economy.

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?

The description and schema are sufficient for a basic default invocation of this zero-required-parameter reporting tool. Without an output schema, however, the undefined aggregate metrics, unspecified top-spender count or ranking, and unclear period options leave meaningful gaps in predicting and interpreting the result.

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 baseline is 3 even though the description adds nothing about the optional period parameter. The schema supplies the default last_30d, but neither the schema nor the description clarifies other accepted period values or formats.

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 clearly pairs the verb "Get" with customer analytics and identifies three result categories: total customers, top spenders, and aggregate metrics. It does not distinguish this broad report from specialized customer-analysis siblings such as the LTV, RFM, or health tools.

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?

The listed outputs imply that the tool is suitable for a general customer analytics overview. However, there is no explicit guidance on when to choose it, when not to use it, or which sibling to use for more specialized analysis.

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