Skip to main content
Glama

SaaS Metrics & Valuation

valuation_saas
Read-onlyIdempotent

Calculate SaaS unit economics and valuation metrics—LTV, CAC, MRR, ARR, NRR, magic number, Rule of 40, CAC payback, or ARR multiple—by selecting a method and supplying its inputs.

Instructions

SaaS unit economics and valuation: LTV, CAC, MRR, ARR, net revenue retention, magic number, Rule of 40, CAC payback, and ARR revenue-multiple valuation. Method selects the metric. Use for subscription software; for marketplace GMV metrics use valuation_marketplace and for payments/lending use valuation_fintech. Parameters apply per method: ltv needs arpu + gross_margin + churn_rate; cac needs sales_marketing_expense + new_customers; arr needs subscription_values; nrr needs starting_revenue + ending_revenue; revenue_multiple needs arr + revenue_multiple. Not for company-level pre-revenue value — for that use valuation_core. Only method is required; all other parameters are method-dependent, so supply those the selected method names and omit the rest (defaults apply where defined). Rate and decimal inputs are fractions (0.10 = 10%); probability and weight lists are in [0,1] and sum to 1. Returns value, method, inputs, assumptions, chapter, formula_number and calculation steps; pure arithmetic — no I/O and no external calls — rounded to 2 decimals, with no auth or rate limits. An unknown method, or a missing method-required parameter, returns an error instead of a value.

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": {
      "method": "<method>"
    },
    "name": "valuation_saas"
  }
}

Input Schema

NameRequiredDescriptionDefault
arrNoAnnual recurring revenue, currency units.
cacNoCustomer acquisition cost per customer, currency units.
arpuNoAverage revenue per user per month, currency units.
methodYesFormula to apply. Options: ltv = LTV = ARPU × gross margin / churn.; cac = CAC = S&M expense / new customers.; mrr = MRR = ARR / 12 (reverse of ARR).; arr = ARR = Σ monthly subscriptions × 12.; nrr = NRR = (ending + expansion) / start; ending excludes expansion.; magic_number = Magic Number = net new ARR / prior-quarter S&M.; rule_of_40 = Score = growth rate + profit margin.; cac_payback = Months to recover CAC from gross profit.; revenue_multiple = Valuation = ARR × multiple.
arr_valueNoAnnual recurring revenue, currency units.
churn_rateNoPeriodic churn rate as a decimal (0.02 = 2% per month).
growth_rateNoRevenue growth rate as a decimal (0.40 = 40%).
net_new_arrNoNet new ARR added in the period, currency units.
gross_marginNoGross margin as a decimal (0.80 = 80%).
new_customersNoNumber of customers acquired in the period.
profit_marginNoProfit margin as a decimal (0.15 = 15%).
ending_revenueNoRevenue from the same cohort at period end, currency units.
mrr_per_customerNoMonthly recurring revenue per customer, currency units.
revenue_multipleNoSaaS revenue multiple (e.g. 8 for 8x ARR).
sm_expense_priorNoSales & marketing expense in the prior period, currency units.
starting_revenueNoRevenue from the cohort at period start, currency units.
expansion_revenueNoExpansion revenue from the cohort in the period.
subscription_valuesNoMonthly subscription revenue per customer (summed x12 for ARR).
sales_marketing_expenseNoSales & marketing spend for the period, currency units.

Output Schema

NameRequiredDescriptionDefault
errorNoError message when the call fails.
stepsNoIntermediate steps for traceability.
valueYesComputed valuation or metric.
inputsNoEcho of the normalised inputs used.
methodNoFormula / method name that produced the result.
chapterNoSource textbook chapter.
assumptionsNoModelling assumptions applied.
formula_numberNoSource textbook formula number (e.g. '3.1').
defaults_appliedNoOptional parameters that were not supplied, so their documented defaults were used.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.1.5
    • changedInput schema / properties / method / description
      Previous value: -"Formula to apply. Options: ltv = LTV = ARPU × gross margin / churn.; cac = CAC = S&M expense / new customers.; mrr = MRR = ARR / 12 (reverse of ARR).; arr = ARR = Σ monthly subscriptions × 12.; nrr = NRR = (start + expansion) / start, net of churn.; magic_number = Magic Number = net new ARR / prior-quarter S&M.; rule_of_40 = Score = growth rate + profit margin.; cac_payback = Months to recover CAC from gross profit.; revenue_multiple = Valuation = ARR × multiple."New value: +"Formula to apply. Options: ltv = LTV = ARPU × gross margin / churn.; cac = CAC = S&M expense / new customers.; mrr = MRR = ARR / 12 (reverse of ARR).; arr = ARR = Σ monthly subscriptions × 12.; nrr = NRR = (ending + expansion) / start; ending excludes expansion.; magic_number = Magic Number = net new ARR / prior-quarter S&M.; rule_of_40 = Score = growth rate + profit margin.; cac_payback = Months to recover CAC from gross profit.; revenue_multiple = Valuation = ARR × multiple."
  2. Changed1 schema field changedv2.1.1
    • addedOutput schema / properties / defaults_applied
      Added value: +{
      +  "description": "Optional parameters that were not supplied, so their documented defaults were used.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  3. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world behavior, so the description is not carrying the safety burden. It still adds real context beyond them: pure arithmetic with no I/O, no external calls, no auth or rate limits, 2-decimal rounding, and explicit error behavior for unknown methods or missing required parameters. Hedging to 3 because return-format detail (value, method, inputs, assumptions, chapter, formula_number, steps) is partially covered by the output schema, making that sentence less additive.

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?

Front-loads what the tool computes and the sibling routing before diving into per-method parameter detail, which is the right order. It is dense and mostly earns its length, though the fraction-convention sentence largely restates what the schema already says for gross_margin, churn_rate, growth_rate and profit_margin.

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 19-parameter, method-dispatching calculator, the definition covers scope, alternatives, parameter conventions, error conditions, runtime properties and output shape. With an output schema present it need not detail return values further, so nothing an agent needs to call it correctly is missing.

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 every parameter already has its own description and the method enum already embeds formulas; the baseline is therefore 3. The description does add the genuinely useful method-to-parameter dependency mapping (ltv → arpu + gross_margin + churn_rate, etc.), but it is incomplete: mrr, magic_number, rule_of_40 and cac_payback are listed as methods yet their required parameters are never stated, and the duplicated arr/arr_value pair is left unexplained.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific domain (SaaS unit economics and valuation) and enumerates the concrete metrics computed (LTV, CAC, MRR, ARR, NRR, magic number, Rule of 40, CAC payback, revenue multiple). It also explicitly distinguishes itself from valuation_marketplace, valuation_fintech and valuation_core, so an agent can pick it without opening any schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use ('subscription software') and when-not-to-use boundaries, naming the sibling to use instead for marketplace GMV and payments/lending. The closing line clarifies that only method is required and that other parameters are method-dependent and should be omitted otherwise, which is actionable routing guidance.

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