MRR history
get_mrr_historyMonthly recurring revenue over time: closing MRR, active, trialing and past-due subscriptions per day, week or month, with new, expansion, contraction and churned MRR (movements) and a summary. Days before recording began are reconstructed from subscription dates and flagged reconstructed: true. With compare (previous, year or a start date) previous.series has the comparison window bucket for bucket. Amounts convert into the report currency at each day's ECB rate; filters don't apply.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_mrr_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last day, YYYY-MM-DD (inclusive). | |
| from | No | First day, YYYY-MM-DD (inclusive). Use with to. | |
| fields | No | Optional: only these parts of the answer, as comma-separated dot paths (e.g. overview.current,series.date,series.visitors). Through a list a path applies to every item; period is always kept. An unknown top-level name fails with the list of valid ones. Leave out for the full answer. | |
| period | No | Preset period, default 30d. today/yesterday/wtd/mtd follow the timezone. Ignored when from and to are set. | |
| compare | No | What change figures compare against: previous (default, the equal-length window right before), weekdays (the same length, starting whole weeks earlier on the same weekday, so Mondays compare with Mondays), year (same period last year), or a YYYY-MM-DD start (window keeps the period's length). Ignored for period all. | |
| currency | No | ISO 4217 code; default the site's reporting currency. | |
| timezone | No | IANA time zone for day boundaries and grouping, e.g. Europe/Madrid. Default UTC. | |
| website_id | No | Website ID from list_websites (the data-site-id value in the tracking script). | |
| granularity | No | Bucket size (default automatic). |