Skip to main content
Glama

Repeat Purchase Rate

run_repeat_purchase_rate
Read-onlyIdempotent

Percentage of customers in the selected window who placed two or more orders.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNoSize of the trailing window in days used to compute the repeat purchase rate (default 90, 7 to 730).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
metaNoPer-skill parameters and totals, e.g. the timeframe the report was run for.
_metaNo
notesNoPlain-language context, including why a report came back empty.
summaryNoHeadline figures for the report, in display order.
_messageNo
warningsNoConditions that make the figures less reliable. Relay these.
_truncatedNo
_tenant_contextNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already indicate read-only, idempotent, and non-destructive behavior. The description adds meaningful behavioral context by defining exactly what the percentage represents and that it depends on a selected trailing window.

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 description is a single clear sentence with no filler. The core definition is front-loaded and every word contributes to understanding the metric.

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 low-complexity, single-parameter tool with full schema coverage, an output schema, and safety annotations, the description is complete enough for an agent to select and invoke the tool correctly. No critical missing information is apparent.

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?

The single parameter 'days' is fully documented in the schema with range and default. The description's mention of 'selected window' aligns with the parameter but adds no new semantic detail beyond the schema.

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 states the computed metric: percentage of customers in a window who placed two or more orders. It is understandable and distinct from sibling metrics, though it lacks an explicit verb like 'computes' or 'returns'.

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

Usage Guidelines2/5

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

No guidance is given on when to use this tool versus alternatives such as get_cohort_analysis, get_ltv_summary, or run_win_back_candidates. There are no exclusions or selection criteria beyond the metric itself, which is implied by the name.

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