Skip to main content
Glama

SaaSCity

Rule of 40 and SaaS efficiency

rule_of_40
Read-onlyIdempotent

Rule of 40 score (revenue growth % + profit margin %), plus the magic number, burn multiple and SaaS quick ratio when their inputs are given. Full calculator: https://saascity.io/free-tools/rule-of-40-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": {
      "growth_pct": "<growth_pct>",
      "margin_pct": "<margin_pct>"
    },
    "name": "rule_of_40"
  }
}

Input Schema

NameRequiredDescriptionDefault
new_mrrNoOptional: new MRR, for the quick ratio
net_burnNoOptional: net burn over a period, for the burn multiple
growth_pctYesYear-over-year revenue growth in percent
margin_pctYesProfit margin in percent (EBITDA or free cash flow); negative when losing money
churned_mrrNoOptional: churned MRR
net_new_arrNoOptional: net new ARR over the same period
expansion_mrrNoOptional: expansion MRR
contraction_mrrNoOptional: contraction MRR
revenue_last_quarterNoOptional: revenue last quarter
revenue_this_quarterNoOptional: revenue this quarter, for the magic number
sales_marketing_last_quarterNoOptional: sales and marketing spend last quarter

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

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description's added value is the conditional-output behavior: extra metrics materialize only when their inputs are supplied. That is a genuine behavioral trait an agent needs in order to interpret a sparse result. It stops short of describing validation failures or what happens with missing required fields.

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?

Two sentences, front-loaded with the primary calculation, then the conditional add-ons. The trailing link is the only non-essential element, but it is short and plausibly useful as a reference.

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?

An output schema exists, so return values need no explanation, and the two required parameters are implicitly identified by the parenthesized formula. What remains thin is edge-case behavior — negative margins, or partial optional input sets — but for a read-only calculator that is a minor gap.

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 coverage is 100%, so the baseline is 3, but the description adds grouping semantics the schema does not: which parameter clusters drive which derived metric (magic number, burn multiple, quick ratio). That lets an agent decide which optional inputs to gather for a desired output without reverse-engineering the schema.

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 exactly what is computed and how: 'Rule of 40 score (revenue growth % + profit margin %)' — a concrete formula, not a restatement of the name. It also enumerates the secondary metrics (magic number, burn multiple, SaaS quick ratio), which cleanly separates it from siblings like calculate_arr or calculate_nrr that each target a single metric.

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?

The phrase 'when their inputs are given' tells the agent the optional metrics only appear conditionally, which is useful invocation guidance. However, there is no explicit when-to-use versus when-not, and no routing to alternatives such as calculate_arr or calculate_nrr when only a single metric is needed.

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.