Skip to main content
Glama

MRR history

get_mrr_history
Read-onlyIdempotent

Monthly 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

NameRequiredDescriptionDefault
toNoLast day, YYYY-MM-DD (inclusive).
fromNoFirst day, YYYY-MM-DD (inclusive). Use with to.
fieldsNoOptional: 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.
periodNoPreset period, default 30d. today/yesterday/wtd/mtd follow the timezone. Ignored when from and to are set.
compareNoWhat 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.
currencyNoISO 4217 code; default the site's reporting currency.
timezoneNoIANA time zone for day boundaries and grouping, e.g. Europe/Madrid. Default UTC.
website_idNoWebsite ID from list_websites (the data-site-id value in the tracking script).
granularityNoBucket size (default automatic).

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 establish a safe, idempotent, closed-world read, so the bar is lower, and the description still adds real behavioral detail: pre-recording days are reconstructed from subscription dates and flagged reconstructed: true, amounts are converted at each day's ECB rate, and compare returns previous.series bucket for bucket. The only weakness is the ambiguous trailing 'filters don't apply', which never says which filters.

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 purpose and core metrics are front-loaded and nearly every clause carries information about output shape or behavior. It is a dense single block with no paragraph breaks, and the final clause 'filters don't apply' is under-specified enough that it partly wastes its slot.

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 nine-parameter analytics tool with no output schema, the description covers the important non-obvious behavior: reconstruction, currency conversion, and comparison alignment. It stops short of describing what the summary section contains or the series item shape, which an agent would still have to discover by calling it.

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%, so the schema already documents all nine parameters, making 3 the baseline. The description does add meaning for compare (previous/weekdays/year/start-date semantics and the bucket-for-bucket guarantee) and currency (ECB rate per day), but fields, timezone, website_id and granularity get nothing beyond their schema text.

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 opens with a specific verb-and-resource statement — monthly recurring revenue over time — and enumerates the concrete outputs (closing MRR, active/trialing/past-due subscriptions, new/expansion/contraction/churned movements, and a summary). That is far more precise than a restated title. It does not, however, contrast itself with the sibling get_revenue or any other MRR-adjacent tool, so an agent cannot rule out overlap from the text alone.

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 through the compare and granularity discussion, and the closing clause 'filters don't apply' signals a scoping constraint. But there is no explicit statement of when to choose this over get_revenue or get_breakdown, and no prerequisites or exclusions beyond that one dangling clause.

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