Skip to main content
Glama

How a checkout is doing

offer_stats
Read-only

One checkout's numbers over the last N days (default 30): visits, checkout starts, orders, conversion, order bump and upsell take rates, average order, refunds and revenue, and afterPayment: each offer in the upsell chain (shown, taken, take rate, revenue) and the paths buyers took through it ("took offer 1 then offer 2"). Real orders only. Call this before suggesting a change to price, bump, upsell or chain, and again after a change to see if it helped.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "product": "<product>"
    },
    "name": "offer_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoHow many days back, 1-365. Default 30.
accountNoOnly to work in a client's account: its id from list_accounts. Leave it out for your own account.
productYesThe checkout's id or slug.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare readOnlyHint and destructiveHint=false, so the safety profile is covered. The description still adds real value beyond them: "Real orders only" tells the agent the figures exclude test/sandbox activity, the default 30-day window is restated, and the returned metric set is spelled out. It does not discuss volume, latency or how to interpret a small sample, so it stops short of a 4.

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?

The purpose and the time window are front-loaded, and the long metric enumeration is dense but usable, since it functions as an informal return-value spec in the absence of an output schema. A tighter grouping of the metric list would make it easier to scan, but nothing here should be cut.

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 no output schema, the description carries the burden of describing returns, and it does so well: core conversion/revenue metrics, then the afterPayment per-offer breakdown and buyer paths. The main omissions are guidance on how to interpret the numbers (e.g. baseline comparison) and any note on performance for larger day ranges.

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 100%, so days, account and product are already documented in the schema, and the description only echoes the default window. The one bit of added meaning is that the metrics are scoped to a single checkout's id or slug, which is already implied by the schema wording. 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 gives a specific verb-and-resource picture: the per-checkout metrics (visits, checkout starts, orders, conversion, bump/upsell take rates, refunds, revenue) over the last N days, plus the afterPayment upsell-chain detail. That is clear enough to distinguish it from aggregate siblings like funnel_stats or coupon_stats, but the overlap with retention_offer_stats is never addressed.

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

Usage Guidelines4/5

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

It states a concrete usage pattern: call before suggesting a price, bump, upsell or chain change, then again afterwards to see whether the change helped. That is an explicit when-to-use instruction. It does not name a when-not condition or point at a specific alternative for account-wide or offer-specific views.

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.