Skip to main content
Glama

Log churn and growth by month

log_customer_metrics

Record how many customers a company had, gained and lost each month, or its churn rate, so Ripplewatch can show whether churn is rising and line it up against competitor moves. Built for consumer and subscription companies, which usually cannot say why each customer left but do know their numbers. Use it when the user has a billing tool (Stripe, a store, a subscription platform) you can read: pull the last 6 to 12 months and pass one row per month, exactly as read. Every number is optional, send what you have: churn_pct (0 to 100) if the source states a rate, otherwise customers_start and cancelled_customers so it can be worked out, plus new_customers, customers_end and revenue for growth. Never estimate or fill in a number you did not read. Ask the user before pulling their data. Re-sending a month updates it.

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": {
      "months": "<months>"
    },
    "name": "log_customer_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
monthsYes
segmentNoWhich side of the business these numbers are for. Defaults to consumer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (write, non-destructive, closed-world), the description discloses the key behavioral trait that re-sending a month upserts it, which is essential for an agent retrying or correcting data. It also states a data-integrity rule ('Never estimate or fill in a number you did not read') and that all metrics are optional.

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 the what and why before the how, and every instruction is actionable. Some material is marginally redundant with the schema (repeating the 0-100 range on churn_pct) and the 'consumer and subscription companies' rationale is slightly verbose.

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?

For a write tool with no output schema, it covers what to send, where to get it, what is optional, the upsert behavior and the no-fabrication rule. Missing only what a successful call returns and the meaning of the segment parameter.

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?

Adds real meaning beyond the 50%-covered schema: it explains the fallback relationship between churn_pct, customers_start and cancelled_customers, and which fields serve growth versus churn. It does not explain the segment enum ('business' vs 'consumer', default consumer), leaving one parameter's intent to the schema alone.

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 and resource ('Record how many customers a company had, gained and lost each month, or its churn rate') plus the downstream purpose. The contrast with the read-side sibling get_churn_and_growth is clear from 'Record' versus 'so Ripplewatch can show whether churn is rising'.

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?

Gives a concrete trigger condition ('use it when the user has a billing tool ... you can read'), a data-range recipe (last 6 to 12 months, one row per month) and a prerequisite ('Ask the user before pulling their data'). It does not explicitly name a when-not case or point to a sibling alternative, so it falls short of a 5.

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.