Skip to main content
Glama

Get recurring revenue (MRR)

get_mrr
Read-only

A site's monthly recurring revenue (MRR) from its Stripe subscriptions: today's amount and number of paying subscriptions, the amount at the start of the period and its change, the curve over the period (the first day, each day it moved, and the last), today's MRR by the source or campaign of each subscriber's first payment, today's MRR by plan (by_plan: each product and its billing interval), and what moved it over the period: the subscriptions that began to pay and those that stopped, in all and by that same source or campaign (which source brought the new subscribers). The history goes back before the site was measured: Stripe dates every subscription. Needs the site's Stripe connected with a key that can read Subscriptions.

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": {
      "site": "<site>"
    },
    "name": "get_mrr"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoEnd date YYYY-MM-DD (site timezone), included.
fromNoStart date YYYY-MM-DD (site timezone), with `to`.
siteYesThe site: its domain (example.com), its id, or its public id. See list_sites.
periodNoA preset period ending today: today, 7d, 30d, 90d, 1y (one year) or all (everything since the site's first visit, five years at most). Default 30d. Ignored when from/to are given.
dimensionNoDefault source.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered. Beyond that, the description adds the integration prerequisite (Stripe key with Subscriptions read access) and a provenance caveat that history extends back before measurement because Stripe dates every subscription — genuine context the annotations do not supply.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is dense but almost every clause adds information; the problem is structure, not waste. It is a single ~120-word run-on sentence enumerating return fields, with no segmentation, making it harder to scan than an equivalent bulleted or multi-sentence form.

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?

With no output schema and five parameters, the description fully compensates by enumerating every returning block (today's MRR, period-start amount and change, curve, per-source, per-plan, movement) plus how started/stopped subscriptions are attributed. Nothing material is missing for correct invocation.

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 includes enum values, defaults, and the from/to overriding period rule, so the schema carries the parameter burden. The description adds one semantic nuance — that source/campaign attribution is based on each subscriber's first payment — but says nothing about the from/to versus period interaction.

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 a specific resource and scope: MRR derived from Stripe subscriptions, broken down by period, attribution source, and plan. That implicitly separates it from the generic get_revenue sibling, but it never names or contrasts an alternative explicitly.

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?

There is no explicit when-to-use versus get_revenue/get_breakdown guidance and no when-not conditions. The one real usage constraint given is a prerequisite: the site's Stripe must be connected with a key that can read Subscriptions, which is useful but partial.

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