Skip to main content
Glama

Revenue for a period

revenue_summary
Read-only

Gross revenue, refunds, affiliate commission and net for a trailing window, with the previous window of the same length for comparison. This is the same maths the dashboard shows, so the numbers will always agree.

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": "revenue_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoWindow length in days. Use 0 for all time. Default 30.
accountNoOnly to work in a client's account: its id from list_accounts. Leave it out for your own account.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare read-only, non-destructive, closed-world behavior. The description adds useful behavioral context beyond that: it lists the returned metrics, notes the prior-period comparison, and guarantees parity with the dashboard; auth and rate-limit details are absent but not central for this read-only tool.

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?

The description is two sentences and front-loads the returned metrics and comparison behavior. The second sentence adds the dashboard-consistency guarantee without unnecessary wording.

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 two-parameter read-only summary with no output schema, the description explains the key output metrics and the comparison period, making it largely complete. Minor gaps remain around exact response shape, currency, and partial-current-period handling, but they are not critical for correct invocation.

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%, with both days and account fully explained in the input schema. The description reinforces the trailing-window concept but adds no syntax, constraints, or parameter meaning beyond what the schema already provides, so the baseline 3 applies.

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 states the exact metrics returned (gross revenue, refunds, affiliate commission, net) and the scope (trailing window with previous-period comparison), so the tool's purpose is clear. It does not explicitly distinguish itself from siblings such as revenue_by_month or revenue_forecast, so it falls short of a 5.

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?

It provides implied usage context: a trailing-window summary with an automatically matched comparison period. However, it does not say when to prefer this over alternatives like revenue_by_month or account_summary, nor does it state any exclusions.

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.