Skip to main content
Glama

Repeat purchase behavior

get_repeat_purchase_behavior
Read-only

Returns Brand Analytics repeat-purchase behavior by ASIN for synced week, month, or quarter report periods. Includes orders, unique customers, repeat-purchase revenue, and repeat-customer percentages. This is aggregate Brand Analytics data, not daily customer-level order identity.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
asinNoFilter by ASIN.
limitNoMax rows (1-1000, default 20).
offsetNoPagination offset (0-100000, default 0). Use the returned pagination.next_offset to continue.
periodNoBrand Analytics report period to read: week, month, quarter, or all.week
sort_byNoColumn to sort by.end_date
end_dateNoOptional. YYYY-MM-DD upper bound on report end_date. With both dates omitted, defaults to the latest complete week/month/quarter; all ends today.
sort_orderNoSort order.desc
start_dateNoOptional. YYYY-MM-DD lower bound on report start_date. With both dates omitted, defaults to the complete ingested window for the selected period.
include_raw_rowsNoFalse returns compact rows. Default true.
include_diagnosticsNoTrue may add expanded freshness diagnostics. Basic empty-result data-window diagnostics are included by default when available.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
evidenceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already establish readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds useful semantic context about the data being aggregate Brand Analytics versus customer-level identity, but omits things like data freshness/ingestion lag, auth requirements, or how periods are synced.

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?

Three tight sentences with no filler; the core purpose and period scope are front-loaded, and the granularity caveat is appropriately placed last. Efficient, though slightly more repetition of schema-level detail than strictly necessary.

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 an output schema present and rich annotations, the description need not explain return shapes, and it adequately conveys the data's nature and scope. It leaves minor gaps around usage routing and freshness behavior, but nothing an agent needs to invoke it correctly is absent.

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%, so every parameter (asin, period, limit, offset, sort_by, date bounds, includes) is already documented in the schema. The description restates period values and metric meaning but adds no format, defaulting, or pagination detail beyond the schema, so baseline 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+resource ("Returns Brand Analytics repeat-purchase behavior") and scope (by ASIN, week/month/quarter periods), and enumerates the returned metrics. The closing sentence distinguishes the data's granularity (aggregate vs. daily customer-level order identity), though it never names a specific sibling tool, so differentiation is implicit rather than explicit.

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 description conveys context (Brand Analytics aggregate data for repeat-purchase analysis), so intended usage is inferable, but it never states when to choose this over alternatives like get_product_performance, get_brand_health, or order-level tools, nor any prerequisites or exclusions. Implied usage only.

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.