Skip to main content
Glama

SaaSCity

Net and gross revenue retention

calculate_nrr
Read-onlyIdempotent

Net revenue retention (NRR) and gross revenue retention (GRR) of a group of customers from their starting MRR, expansion, contraction and churned MRR, with annualised figures. Full calculator: https://saascity.io/free-tools/net-revenue-retention-calculator

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": {
      "start_mrr": "<start_mrr>"
    },
    "name": "calculate_nrr"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodNomonth, quarter or year
start_mrrYesMRR of the customers at the start of the period
churned_mrrNoMRR lost to cancellations
expansion_mrrNoMRR added by those customers
contraction_mrrNoMRR lost to downgrades

Output Schema

NameRequiredDescriptionDefault
resultYesThe calculator result; percentages as 0-1 shares unless the key says pct
calculator_urlYes

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 state readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is fully covered and the description carries little extra burden. The only behavioral addition is that figures are annualised, which is genuinely useful output context. Nothing is said about how missing inputs are treated or rounding/precision, but for a stateless calculator that is a minor gap.

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?

A single front-loaded sentence that states the metrics and formula components, followed by a reference link. Nothing is padded, though the external URL is promotional rather than operationally necessary for invocation.

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, return values need no explanation, and annotations cover the safety profile. The description adequately establishes purpose and inputs; the main omission is that it never says only start_mrr is mandatory or how the optional MRR components are treated when 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% and every parameter is documented in the schema, so the baseline is 3. The description reinforces how the inputs relate (start + expansion − contraction − churn) which adds mild conceptual value, but it gives no format, unit, or default guidance beyond what the schema already supplies.

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 names the specific metrics (NRR and GRR) and the exact inputs they are derived from (starting MRR, expansion, contraction, churned MRR), so an agent knows precisely what is computed. It does not, however, differentiate itself from close siblings like calculate_churn or calculate_arr, leaving that distinction to the names alone.

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?

Usage is only implied: an agent can infer this is the tool for retention metrics when it has cohort MRR movement data. There is no explicit when-to-use, no mention of prerequisites (e.g. start_mrr is the only required field, others default to zero), and no pointer to sibling calculators such as calculate_churn for related questions.

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.