Skip to main content
Glama
CRM MCP Server

CRM MCP Server

list_inactive_customers

Read-onlyIdempotent

Identifies previously purchasing customers with no recent orders, sorted by lifetime value, to surface churn risks and win-back opportunities.

Instructions

Customers who have bought before but not in the last N days, most valuable first. Use it to find churn risks and win-back opportunities.

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": "list_inactive_customers"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoNo orders in at least this many days
limitNo
min_lifetime_valueNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so safety is covered. The description still adds real behavioral information beyond them: the precise cohort definition (must have bought before AND be silent for N days, excluding never-purchased customers) and the default sort order by value. It omits pagination behavior, which the output schema presumably covers.

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 sentences, front-loaded with the cohort definition before the use case, with no filler. The opening is a sentence fragment, which is slightly rough but not costly.

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?

With rich annotations, an output schema, and three mostly self-explanatory optional parameters, the description covers the key unknowns: what makes a customer 'inactive' and how results are ordered. Only minor gaps remain, such as how ties or customers with no lifetime value are handled.

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 only 33% — just `days` is documented — but `limit` and `min_lifetime_value` are largely self-describing by name. The description reinforces `days` ('not in the last N days') and hints at value ordering, which indirectly explains min_lifetime_value, but it adds no formatting or edge-case detail for the undocumented two.

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 defines the exact cohort returned: customers with at least one prior purchase and no order in the last N days, ordered by value descending. That is specific enough to distinguish it from a general customer search, though it never names a sibling tool to contrast with.

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?

'Use it to find churn risks and win-back opportunities' gives a clear use case, so the intent is implied rather than left blank. However, there is no guidance on when not to use it versus search_customers or get_customer_summary, and no mention of how to choose N appropriately.

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