Skip to main content
Glama

calculate_ltv_cac_payback

Calculates e-commerce gross-profit LTV, LTV:CAC ratio, Day-1 contribution margin, and max scaling CAC ceiling to guide acquisition spend and payback decisions.

Instructions

Calculates e-commerce gross-profit LTV, LTV:CAC ratio, Day-1 contribution margin, and max scaling CAC ceiling.

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": {
      "aov": "<aov>",
      "grossMarginPct": "<grossMarginPct>",
      "repeatPurchaseRate": "<repeatPurchaseRate>",
      "cac": "<cac>"
    },
    "name": "calculate_ltv_cac_payback"
  }
}

Input Schema

NameRequiredDescriptionDefault
aovYesAverage Order Value in USD
cacYesCurrent Customer Acquisition Cost in USD
grossMarginPctYesGross margin percentage (1-100)
repeatPurchaseRateYesAverage repeat orders per customer (e.g. 0.6)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it at least names the four values returned (LTV, LTV:CAC ratio, Day-1 contribution margin, CAC ceiling), which is genuine behavioral disclosure for a tool lacking an output schema. However, it never states that this is a pure, side-effect-free calculation, nor does it mention determinism, units, or precision of results, leaving the mutation/safety profile unstated.

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?

A single sentence with no filler, and the key resource (e-commerce LTV/CAC analysis) is front-loaded before the list of computed values.

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

Completeness3/5

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

The four-metric list effectively discloses the return values even though no output schema exists, and the input schema is fully documented, covering the basics. What is missing is a statement of the calculation model (for example, how repeat purchase rate compounds LTV) and confirmation that nothing is persisted, which matters for an agent that needs to trust and chain the results.

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 description coverage is 100%, so all four parameters (aov, grossMarginPct, repeatPurchaseRate, cac) are already documented with units and ranges, which sets the baseline at 3. The description adds modest value by mapping inputs to the outputs, since CAC produces the LTV:CAC ratio and the ceiling, and gross margin feeds gross-profit LTV, though it does not give formulas or explain how repeatPurchaseRate is applied.

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?

A specific verb ("Calculates") tied to four named metrics (gross-profit LTV, LTV:CAC, Day-1 contribution margin, max scaling CAC ceiling) within a clear e-commerce domain. It is easily distinguished from the siblings audit_roas_anomalies and build_meta_capi_event based on the domain alone, though it never explicitly contrasts itself with them.

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?

There is no guidance on when to use this tool versus the sibling tools, no stated prerequisites, and no mention of preconditions such as requiring clean AOV or CAC inputs. The only usage signal is the implicit one from the metric names themselves.

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