Skip to main content
Glama

Get revenue

get_revenue
Read-only

Revenue from every payment provider connected to the Lomen account (Stripe, Shopify, Lemon Squeezy, Polar, Paystack), added together the way the dashboard's income line and Money made tab show it: which providers are connected, gross, refunds, net and number of payments for the last 30 days, net earned today, net and payments for the chosen period with the change against the period before, net and payments per day, the month's goal and whether the month is on pace for it, the weekday that earns most on average, the best-earning days with that day's visitors and revenue per visitor, and whether revenue tends to move with traffic. Amounts are in the currency's main unit (dollars, not cents) and in the primary currency only; days are UTC. Revenue belongs to the account, not to one site; site matters only for a site shared through a team, whose owner's revenue is then read if the role allows it.

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
siteNoWhich site: its domain (for example example.com) or its id from list_sites. Leave it out for the account's first site.
rangeNoThe period for the period totals and best days. Defaults to 30 days.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds substantial behavioral detail beyond them: amounts are in main currency units (not cents), only the primary currency is returned, days are UTC, data is account-scoped rather than site-scoped, and team-shared sites may require a role check. These are exactly the semantics an agent needs to avoid misinterpreting values.

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 single run-on sentence front-loads the core purpose but then stacks roughly a dozen output clauses with commas and semicolons, making it hard to scan. Because there is no output schema, the return enumeration earns its place, but the structure would benefit from being broken into shorter sentences or a list.

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, the description carries the full burden of describing return values and does so comprehensively: provider list, gross/refunds/net/payment counts, 30-day and period totals with prior-period change, per-day series, month goal pacing, best weekday, best days with visitors and revenue per visitor, and traffic-revenue correlation. Currency, timezone, and permission scoping are all covered.

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?

Schema coverage is 100%, so a 3 is the baseline, but the description adds meaning: `site` only changes results for team-shared sites and otherwise resolves to the account, and the chosen `range` drives the period totals, best days, and change-vs-prior-period figures. That clarifies parameter effects beyond the schema's own wording.

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 names a specific resource (aggregated revenue across all connected payment providers: Stripe, Shopify, Lemon Squeezy, Polar, Paystack) and explicitly disambiguates it from traffic/site analytics siblings by stating revenue belongs to the account, not a site. An agent can tell immediately that this is the money-metrics tool, not a traffic or breakdown tool.

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 gives clear context on when `site` is relevant ('matters only for a site shared through a team, whose owner's revenue is then read if the role allows it') and mirrors the dashboard's income line and Money made tab, which helps an agent match user phrasing. It stops short of naming when-not-to-use or explicit alternative tools for traffic questions, so a 4 rather than a 5.

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