Skip to main content
Glama

Revenue

get_revenue
Read-onlyIdempotent

Revenue (after refunds), MRR, subscribers and failed payments for the last N days (or the range's days, when range is passed), per app or across the apps this connection can see. Amounts are in minor units per currency; currencies are never added together.

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_revenue"
  }
}

Input Schema

NameRequiredDescriptionDefault
appNoApp slug, domain or URL. Leave empty for every app.
daysNo
rangeNoPass a range for the full picture: MRR movements, MRR and subscriber churn, net revenue retention, refunds, failed payments paid later, money leaving soon, trials, forecast, sales gone quiet, sources that keep customers, costs and profit

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already establish readOnly, idempotent, non-destructive and closed-world behavior, so the safety profile is covered. The description adds genuinely useful semantics beyond that: amounts in minor units per currency and the rule that currencies are never summed. It does not describe pagination, latency or how the two modes differ in cost, which keeps it at a 3.

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?

Two dense sentences with the returned resources front-loaded and the units caveat last; every clause carries information. It is slightly over-packed, cramming scope, window logic and currency rules into one sentence.

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 read-only metrics tool with no output schema, the description states the measurable outputs, the two windowing modes, aggregation granularity and the currency-unit convention, which is enough to call it correctly. Return value shape and empty-result behavior remain unspecified, but those are minor for this complexity.

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?

The description clarifies the interaction between days and range (the range's day count overrides the default window) and that app omission means all visible apps, which the schema only partially conveys at 67% coverage. The enum's own description carries the heavy metric list, so the description's added value is real but narrower than a 5.

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 the concrete metrics returned (revenue after refunds, MRR, subscribers, failed payments) and the scope (per app or across visible apps). It is specific enough to separate it from metrics-adjacent siblings, but never names an alternative such as get_revenue_activity or sync_revenue, so differentiation is left to inference.

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 implicit guidance: use days for a rolling window, or pass range for the fuller picture including churn, NRR and forecasts. However, nothing states when to prefer this tool over get_revenue_activity or sync_revenue, and no exclusions or prerequisites are given.

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