Skip to main content
Glama

Fair Value MCP Server

Sector-specific operating metrics

calculate_sector_metrics
Read-onlyIdempotent

Sector-metric engine. Compute the metrics that anchor valuation in specific industries: SaaS (ARR, NRR, magic number, Rule of 40), marketplaces (take rate, GMV multiple), lending (LTV/CAC), and crypto (NVT, Metcalfe). It returns operating metrics, not a valuation; use them as inputs to calculate_market_multiple or calculate_dcf. Methods: ltv: arpu, gross_margin, churn_rate; cac: sales_marketing_expense, new_customers; arr: subscription_values; nrr: starting_revenue, ending_revenue, expansion_revenue; magic_number: net_new_arr, sales_marketing_expense_prior; rule_of_40: growth_rate, profit_margin; take_rate: revenue, gmv; gmv_multiple: gmv, ev_gmv_multiple; retention: retained_customers, starting_customers; trl: market_size, market_share, margin, exit_multiple, trl_discount; break_even: fixed_costs, asp, variable_cost; gross_margin: asp, variable_cost; token: transaction_volume, price_per_tx, velocity, supply; nvt: market_cap, transaction_volume; metcalfe: n, coefficient. Supply exactly one method with its declared inputs (no defaults). An unknown method, a missing input, or an extra field returns an error envelope (code INVALID_ARGUMENT) instead of raising.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nNoNode/participant count n (>=0).
aspNoAverage selling price per unit.
gmvNoGross merchandise value in reporting currency.
arpuNoAverage revenue per user per period.
marginNoOperating margin as a decimal.
methodYesFormula to apply; the tool description lists the exact inputs each value requires.
supplyNoToken supply.
revenueNoBase-year revenue in reporting currency.
velocityNoToken velocity.
churn_rateNoPeriodic churn rate as a decimal.
market_capNoMarket capitalisation.
coefficientNoScaling coefficient (Metcalfe).
fixed_costsNoPeriod fixed costs.
growth_rateNoPeriodic growth rate as a decimal (0.03 = 3%).
market_sizeNoTotal addressable market in reporting currency.
net_new_arrNoNet new ARR in the period.
gross_marginNoGross margin as a decimal (0.80 = 80%).
market_shareNoAchievable market share as a decimal.
price_per_txNoValue per transaction.
trl_discountNoTechnology-readiness risk discount as a decimal.
exit_multipleNoExit multiple on the final flow, e.g. 8.0 for 8x.
new_customersNoCustomers acquired in the period.
profit_marginNoProfit margin as a decimal.
variable_costNoVariable cost per unit.
ending_revenueNoRevenue from the cohort at period end.
ev_gmv_multipleNoEV/GMV multiple.
starting_revenueNoRevenue from the cohort at period start.
expansion_revenueNoExpansion revenue from the cohort.
retained_customersNoCustomers retained at period end.
starting_customersNoCustomers at period start.
transaction_volumeNoTransaction volume for the period.
subscription_valuesNoSubscription revenue per customer.
sales_marketing_expenseNoSales and marketing spend for the period.
sales_marketing_expense_priorNoPrior-period sales and marketing spend.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoError detail, present only when status='error'.
stepsNoOrdered computation steps, when the method reports them.
valueNoPrimary result: a number for scalar methods, an object for valuation methods.
methodNoMethod or tool name that produced the result.
statusYes'ok' on success, 'error' on failure.
tickerNoTicker the result pertains to, when applicable.
assumptionsNoInputs and assumptions used, echoed for traceability.
formula_refNoFormula or standards reference for the method.
data_timestampNoISO-8601 UTC timestamp of the underlying data, when fetched.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already cover read-only/idempotent/non-destructive safety, and the description adds substantial extra behavior: it warns that exactly one method must be supplied with its declared inputs (no defaults) and that unknown methods, missing inputs, or extra fields yield an INVALID_ARGUMENT error envelope rather than raising. This is genuinely useful call-time behavior not derivable from annotations.

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 purpose, then method-to-input mapping, then error semantics. The method list is dense and long but each entry carries required information; some parenthetical metric glosses could be trimmed without loss.

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 34-param, one-required-field dispatcher with an output schema, the description covers everything the agent needs: method enumeration, per-method required inputs, single-method constraint, and error behavior. Return-value detail is correctly left to the output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although schema coverage is 100%, the description supplies the critical cross-parameter mapping the schema cannot express: which inputs each method value requires (e.g. ltv needs arpu/gross_margin/churn_rate; nvt needs market_cap/transaction_volume). The schema itself defers to the description for this ('the tool description lists the exact inputs each value requires').

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?

States a specific verb+resource ('compute the metrics that anchor valuation') and enumerates the concrete industry domains and metrics covered (ARR, NRR, take rate, NVT, etc.). It explicitly differentiates from siblings by declaring it returns operating metrics, not a valuation.

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?

Clearly routes the agent: the outputs are 'inputs to calculate_market_multiple or calculate_dcf,' which distinguishes this tool from the valuation siblings. It does not give explicit exclusion criteria for individual methods, but the when-to-use context is clear.

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.