Skip to main content
Glama

Live: revenue trend

live_revenue_trend
Read-onlyIdempotent

Reads the Live app's day-by-day revenue and top products between from (inclusive) and before (exclusive), both YYYY-MM-DD, at most 180 days at a time — refund-aware, per currency, from Gemmein's own stored payment events, never a live Stripe call. Also answers churn for the period (subscriptions cancelled, active at the start, the rate) when there is one to compute. The same finer-grained numbers the dashboard's Payments chart reads; live_revenue's own read is the coarser monthly aggregate. live:read; audited; changes nothing. This is what a founder may call their revenue chart or sales trend.

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": {
      "from": "<from>",
      "before": "<before>"
    },
    "name": "live_revenue_trend"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromYesYYYY-MM-DD, inclusive
beforeYesYYYY-MM-DD, exclusive

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

The description goes far beyond the annotations by detailing the data provenance (Gemmein's own stored events), operational context (refund-aware, per currency), and methodology (how churn is computed), which is highly valuable for an agent.

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 description is verbose and conversational, dedicating a significant portion to rhetorical context (e.g., what a founder calls the chart) rather than pure technical instruction.

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 high complexity of handling financial metrics, currencies, time windows, and data sourcing, this definition is extremely comprehensive.

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?

The schema coverage is 100%, so the baseline of 3 applies. The description primarily adds semantic flavor by defining the range logic (inclusive vs. exclusive) rather than explaining parameters not already in the schema.

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 identifies a specific resource (day-by-day revenue/top products) and key metrics (churn) while clearly differentiating itself from the coarser 'live_revenue' aggregate.

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?

It provides explicit constraints on data usage, noting the maximum period is 180 days and details the inclusive/exclusive nature of the date ranges.

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.