Skip to main content
Glama

Customers

get_customers
Read-onlyIdempotent

Customer figures for the current period: total, new and returning customers (returningCustomers is Shopify's unit, ORDERS placed by repeat buyers; returningBuyers is the headcount behind it), repeatPurchaseRate (a ratio 0..1), avgLtv (lifetime revenue per customer) and marginLtv (the same after product costs), blended CAC (all ad spend ÷ new customers) and paidCac (each ad platform's spend ÷ the new customers whose first paid touch was that platform; paidGaps names platforms left out and why), the lifetime-value spread (ltvBands), new vs returning per day (growth), acquisition per channel with new customers, first order value and CAC (acquisition.acquisition), customers back after 180+ days away (acquisition.reactivated of acquisition.lapsedAtStart), and support tickets (support null = no helpdesk connected). Each tile has previous, the prior period's value. Use for any question about customers, LTV, CAC, repeat purchase, acquisition by channel or LTV ÷ CAC — divide nothing yourself: marginLtv and paidCac are both here. When suppressed is true, under half of revenue carries a customer id: say the customer figures are withheld instead of quoting any. A null CAC means no spend or too few new customers (under 10) — never zero. Optional from and to (inclusive YYYY-MM-DD, both or neither, never after today) read another span instead of the default period. A named month, a week or two dates the operator gave MUST be sent here: without them this reads the default period (the one on the operator's screen, else the last 30 days), which is not that month. When the operator names no period, send neither.

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

Input Schema

NameRequiredDescriptionDefault
toNoLast day of the span, inclusive, as YYYY-MM-DD; not after today. Send together with `from`, or omit both to read the default period: the one on the operator's screen when the message names it, else the last 30 days.
fromNoFirst day of the span, inclusive, as YYYY-MM-DD. Send together with `to`, or omit both to read the default period: the one on the operator's screen when the message names it, else the last 30 days.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / from / description
      Previous value: -"First day of the span, inclusive, as YYYY-MM-DD. Send together with `to`, or omit both to read the default 30-day period."New value: +"First day of the span, inclusive, as YYYY-MM-DD. Send together with `to`, or omit both to read the default period: the one on the operator's screen when the message names it, else the last 30 days."
    • changedInput schema / properties / to / description
      Previous value: -"Last day of the span, inclusive, as YYYY-MM-DD; not after today. Send together with `from`, or omit both to read the default 30-day period."New value: +"Last day of the span, inclusive, as YYYY-MM-DD; not after today. Send together with `from`, or omit both to read the default period: the one on the operator's screen when the message names it, else the last 30 days."
  2. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so safety needs no restating. The description earns credit for behavior it alone can supply: the suppression rule (say figures are withheld, quote nothing), the null-CAC meaning (no spend or fewer than 10 new customers, never zero), and paidGaps naming excluded platforms. It stops short of describing pagination or response envelope, but there is little of that to describe for an aggregate tile response.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Everything stated is load-bearing, but it lands as one very long paragraph dense with parentheticals, so the period rule — arguably the most actionable line — sits at the tail rather than up front. The metric glossary could be structured as a short list to make scanning easier. Efficient in words, weak in layout.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a parameterless-by-default aggregate read with no output schema, this covers the gaps that matter: what each field means, that every tile carries a prior-period `previous`, how suppression and null CAC must be narrated, and how the date range resolves. An agent could answer correctly and refuse correctly using only this text.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the schema already states inclusive YYYY-MM-DD, both-or-neither, and the default-period fallback, so the baseline is 3. The description adds meaning the schema cannot: the intent-to-parameter mapping (a period the operator spoke aloud must become from/to here) and the 'never after today' guard framed against operator phrasing. The gain is real but partly a restatement of the schema's own wording.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names the resource (customers) and enumerates the exact figures returned — total/new/returning, repeatPurchaseRate, avgLtv, marginLtv, blended CAC, paidCac, ltvBands, growth, acquisition, reactivated, support — so an agent can map a question to this tool without seeing the response shape. The explicit disambiguation of returningCustomers (orders) vs returningBuyers (headcount) prevents a very likely misreading of ambiguous metric names.

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

Usage Guidelines5/5

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

Gives an explicit invocation rule, not just a topic: 'Use for any question about customers, LTV, CAC, repeat purchase, acquisition by channel or LTV ÷ CAC'. It also sets a hard routing rule for periods — a named month, week, or two operator-given dates MUST be sent here or the default period is read instead — and tells the agent to send neither when no period is named, which closes the most common silent failure.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources