Skip to main content
Glama

revenue_summary

Read-onlyIdempotent

Retrieve revenue totals, daily results, refunds, MRR, churn, and top products for a UTC date range; call once per period to compare periods.

Instructions

Revenue for a date range (UTC, both ends inclusive): totals (orders, gross, refunds, net), each day, refunds, MRR, active subscriptions, churn and the top products. A paid order counts on the day it was paid; a refund on the day it was made. To compare periods (e.g. last week vs the week before), call this once per period.

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_date": "<from_date>",
      "to_date": "<to_date>"
    },
    "name": "revenue_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
to_dateYesLast day, inclusive (YYYY-MM-DD, UTC).
from_dateYesFirst day, inclusive (YYYY-MM-DD, UTC).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so safety is covered. Beyond that, the description adds genuinely useful accounting semantics — a paid order counts on the payment day, a refund on the refund day — which materially affects how an agent interprets the totals and daily breakdown.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the returned metrics, then the attribution rules, then the comparison tip. Nothing is padded and the most decision-relevant information comes first.

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?

With no output schema, the description carries the return-shape burden and does so by listing every metric returned. Remaining minor gaps — whether zero-activity days appear in the daily series, or whether MRR is a point-in-time snapshot at the end date — are not addressed, but nothing essential to invoking the tool correctly is missing.

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 coverage is 100%, and the schema already documents both parameters as YYYY-MM-DD, UTC, inclusive. The description's 'UTC, both ends inclusive' restates the schema rather than adding format or edge-case detail, so it earns the baseline 3 for a fully documented two-parameter 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 opens with a specific verb-and-resource framing ('Revenue for a date range') and enumerates exactly what is returned: totals (orders, gross, refunds, net), daily breakdown, refunds, MRR, active subscriptions, churn, and top products. This is clearly an aggregate reporting tool, distinguishable at a glance from entity-lookup siblings like get_order or get_customer.

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 an explicit usage pattern for period-over-period comparison ('call this once per period'), which is the non-obvious case an agent would likely get wrong. It does not name any alternative tool or state when not to use this one, but the aggregation-vs-lookup distinction is already clear from the purpose statement.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.