Skip to main content
Glama
Shopify Analytics MCP Server

Shopify Analytics MCP Server

by DrMatrixx

get_customer_health_report

Generates a severity-ranked customer health diagnosis by analyzing RFM segments, churn risk, and lifetime value for a selected period, with recommended actions.

Instructions

Get a full customer health diagnosis for your store. Analyzes RFM segments, churn risk, and lifetime value in one report with severity-ranked findings and recommended actions.

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

Input Schema

NameRequiredDescriptionDefault
periodNoDate range for analysis (default: last_12m). Supports: last_7d, last_30d, last_90d, last_12m, this_year, last_year, or YYYY-MM-DD:YYYY-MM-DD

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and it does disclose output shape: severity-ranked findings plus recommended actions. However, it never confirms this is a read-only analysis, gives no sense of cost or latency for a full-store diagnosis, and says nothing about how findings are prioritized or what happens with sparse data.

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 sentences, front-loaded with the core purpose and followed by the concrete contents of the report. No redundant restatement of the name or filler wording.

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 one-optional-parameter tool with no output schema, the description adequately conveys what the report contains and how findings are framed. The main residual gap is the absence of any behavioral or cost disclosure, which matters more because no annotations are present.

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 the single optional period parameter is fully documented in the schema, including its default and accepted formats. The description adds no additional meaning about the period, 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?

States a specific verb and resource ("Get a full customer health diagnosis") and enumerates the analyses it bundles (RFM, churn risk, LTV), which implicitly distinguishes it from the individual sibling tools. It stops short of naming those siblings explicitly, so differentiation requires a small inference.

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 phrase "in one report" implies this is the composite alternative to the narrower sibling tools, but the description never states when to prefer it over get_customer_rfm_segments, get_customer_churn_risk, or get_customer_ltv_summary, nor any exclusions or prerequisites. Usage is implied rather than specified.

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