Skip to main content
Glama
Shopify Analytics MCP Server

Shopify Analytics MCP Server

by DrMatrixx

get_customer_ltv_summary

Project customer lifetime value by annualized revenue run-rate, identify top customers by projected LTV, and break down LTV by RFM segment for a chosen period.

Instructions

Get customer lifetime value (LTV) projections. Shows annualized revenue run-rate per customer, top customers by projected LTV, and LTV breakdown by RFM segment.

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

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?

No annotations are provided, so the description carries the full behavioral burden. It does disclose the analytical content returned (run-rate, top customers, RFM breakdown), which is useful. But it does not state that the tool is read-only, how projections are computed or how reliable they are, or what the response shape looks like, leaving gaps for a projection/analytics tool with zero annotation coverage.

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 with no wasted wording: the first states the purpose and the second front-loads the exact outputs. The structure lets an agent decide quickly whether this tool answers its question.

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 single-optional-parameter summary tool with no output schema and no annotations, the description covers purpose and returned content well enough to call it correctly. The main omissions are projection methodology and the read-only/safety profile, which would matter more if the tool had write behavior or required parameters.

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% for the single optional `period` parameter, so the schema already documents the supported date ranges and default. The description adds no parameter-level detail beyond that, though the mention of "annualized" run-rate hints that results are normalized regardless of the chosen period. Baseline 3 is appropriate when the schema does the heavy lifting.

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 states a specific verb and resource ("Get customer lifetime value (LTV) projections") and enumerates the three outputs: annualized revenue run-rate per customer, top customers by projected LTV, and LTV breakdown by RFM segment. This makes the tool's purpose concrete. It does not explicitly distinguish itself from near-neighbors such as get_customer_rfm_segments, which also covers RFM segmentation, so it falls short of a 5.

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 described outputs imply the questions this tool answers (who are the highest-value customers, how is LTV distributed across segments), so usage is inferable. However, there is no explicit when-to-use or when-not-to-use guidance, and no alternative tool is named for related questions such as churn risk or RFM segmentation.

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