Skip to main content
Glama

Calculate churn rate

calculate_churn
Read-onlyIdempotent

Work out customer churn for a month: customers lost over customers at the start, with retention, the same rate compounded over a year, average customer lifetime and, given revenue per customer, the revenue lost. Send numbers only (percentages as 5 for 5%). Answers a headline, the figures behind it and notes. Arithmetic on your own numbers, not financial advice. Answers from what you send alone: nothing is fetched or stored.

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": "<start>",
      "lost": "<lost>"
    },
    "name": "calculate_churn"
  }
}

Input Schema

NameRequiredDescriptionDefault
arpaNoAverage revenue per customer, per month Optional.
lostYesCustomers who cancelled during it. Only customers who were there at the start.
startYesCustomers at the start of the month
currencyNoThe sign money is written with; "none" for bare numbers. Default "$".

Output Schema

NameRequiredDescriptionDefault
toolYes
toolUrlYes

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?

The annotations already establish read-only, idempotent, non-destructive, closed-world behavior. The description adds meaningful context beyond that: it says nothing is fetched or stored, explains that input numbers should be sent as plain numbers with percentages expressed as 5 for 5%, and notes that the answer includes a headline, supporting figures, and notes.

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?

The core purpose is front-loaded, and the extra sentences about number formatting, output shape, and statelessness are relevant. The main sentence is dense, but every clause contributes to understanding the calculation.

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?

Given the rich annotations and the presence of an output schema, the description is complete enough for the agent to invoke the tool correctly. It covers the calculation scope, required input style, output composition, and stateless behavior, leaving only schema-level details to the structured fields.

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 schema already documents start, lost, arpa, and currency. The description adds a useful input convention—send numbers only and express percentages as 5 for 5%—which is not captured in the schema itself.

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?

The description states a specific verb and resource: work out customer churn for a month, and it lists the exact computations including churn rate, retention, annualized rate, average lifetime, and revenue lost. This clearly distinguishes it from sibling calculators such as calculate_ltv_cac and calculate_mrr without needing to open the schema.

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 context is implied by 'for a month' and 'Arithmetic on your own numbers,' which tells the agent this is a calculation tool using supplied inputs. However, it does not explicitly say when to choose this over alternatives like calculate_ltv_cac or calculate_mrr, nor does it name any exclusions.

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.

Resources