> ## Documentation Index
> Fetch the complete documentation index at: https://docs.beaconrevenue.io/llms.txt
> Use this file to discover all available pages before exploring further.

# revenue-by-customer

> List one month's recurring revenue per subscription, highest first, with how each one moved.

`revenue-by-customer` returns one month's recurring revenue as Beacon stores it, one row per subscription, highest first. Each row carries the customer, the month's MRR, last month's MRR and how the subscription moved.

The tool only reads. It orders and limits stored rows; it adds nothing up. A customer with several subscriptions appears once per subscription. If an AI tool totals them, the total is its own sum, not a Beacon figure.

## Who can use it

The tool is listed for you only when all four conditions hold. They're the same as for [`revenue-series`](https://docs.beaconrevenue.io/mcp/revenue-series).

| Condition | Detail |
| - | - |
| **Your access covers company-wide confidential figures** | Set by your role in Beacon. |
| **You can open the Revenue page in Beacon** | Claude never shows you more than the app does. |
| **AI tools are switched on for your company** | On by default. An admin can switch them off for everyone; no admin has to connect Claude first. |
| **Your access isn't limited to your own deals and customers** | Company revenue is never listed to that access. |

Beacon checks these once, when Claude connects. If one fails, the tool isn't listed: it isn't shown and then refused. Roles are set on [Add and manage users](https://docs.beaconrevenue.io/add-and-manage-users.md).

Customer names follow the same rule as the app. If you can see customer names in Beacon, each row carries the name. If you can't, rows carry the customer's Beacon reference only, and the answer says why.

## Inputs

| Name | Type | Required | Meaning | Allowed values |
| - | - | - | - | - |
| `month` | string | Yes | The month | `YYYY-MM`, such as `2026-09` |
| `limit` | integer | No | How many rows. Defaults to 20. | 1 to 50 |

There's no customer input. Customers are listed, never looked up by name.

## What it returns

One JSON object, sent as text in the tool result's `content`.

| Field | Meaning |
| - | - |
| `beacon` | Always `revenue_by_customer` |
| `company` | Your company's name in Beacon, or its reference when no name is set |
| `company_ref` | Your company's Beacon reference |
| `month` | The month asked for |
| `rows` | Up to `limit` subscriptions, highest MRR first. Ties are ordered by customer reference. |
| `more_rows_in_month` | `true` when the month has more subscriptions than were returned |
| `grain_note` | A sentence saying there's one row per subscription and Beacon doesn't add them together |
| `names_note` | Present when names aren't shown: either your access hides them, or Beacon couldn't read them just then |
| `alignment_warnings` | Present when the rows are in more than one currency. Beacon doesn't convert them here. |
| `envelope` | What the answer is and how fresh it is |

A subscription with no stored MRR for the month is excluded.

### Each row

| Field | Meaning | Unit |
| - | - | - |
| `customer_ref` | The customer's Beacon reference, such as `stripe:cus_123` | Text |
| `customer_name` | The customer's name. Present only if you can see names; `null` when Beacon has none. | Text |
| `subscription_ref` | The subscription's reference | Text |
| `mrr` | The subscription's [recurring revenue](https://docs.beaconrevenue.io/definitions/mrr.md) for the month | Currency, per month |
| `previous_mrr` | The subscription's recurring revenue the month before | Currency, per month |
| `movement` | How the subscription moved from last month. See below. | Text |
| `currency` | The row's currency | Currency code |

### movement

| Value | When |
| - | - |
| `new` | Nothing last month, revenue this month, and no earlier churn. See [New recurring revenue](https://docs.beaconrevenue.io/definitions/new-mrr.md). |
| `reactivation` | Nothing last month, revenue this month, after an earlier churn. See [Reactivation recurring revenue](https://docs.beaconrevenue.io/definitions/reactivation-mrr.md). |
| `expansion` | Higher than last month. See [Expansion recurring revenue](https://docs.beaconrevenue.io/definitions/expansion-mrr.md). |
| `contraction` | Lower than last month, and still above zero. See [Contraction recurring revenue](https://docs.beaconrevenue.io/definitions/contraction-mrr.md). |
| `churn` | Revenue last month, nothing this month. See [Churned recurring revenue](https://docs.beaconrevenue.io/definitions/churn-mrr.md). |
| `no_change` | The same as last month, above zero |
| `inactive` | Zero in both months |

### What travels with the figures

One `envelope` covers the whole answer. Its `as_of` is the oldest `as_of` among the rows read. `sealed_or_live` is `live` and `data_class` is `financial-sensitive`.

On this tool, `definition_id`, `definition_version`, `source_state_ref`, `confidence`, `transform_version` and `guidance` are `null`, and no currency anchor is attached. Each field is described on [MCP tools](https://docs.beaconrevenue.io/mcp-tools.md#what-travels-with-every-value).

## Refusals

When the tool can't answer, it returns a refusal as a normal result, with `isError` set to `false`, so Claude sees the reason.

| Reason | `what_would_make_it_available` | When |
| - | - | - |
| `no_grain` | Ask for a month written like 2026-09. | `month` is missing or isn't written `YYYY-MM` |
| `no_grain` | Ask for between 1 and 50 rows. | `limit` isn't a whole number from 1 to 50 |
| `no_grain` | Beacon has no revenue stored for that month. | No subscription has stored MRR for the month |
| `no_grain` | Beacon could not confirm what date these figures describe, so it is not showing them. | The month's rows came back without their dates |
| `no_grain` | There are more stored rows here than Beacon can read in one answer, so it is not showing part of them. | The read is too large for one answer |

Any other refusal from Beacon's data read is passed on unchanged. Every reason is listed on [MCP tools](https://docs.beaconrevenue.io/mcp-tools.md#refusals).

## Example

Example data: the company, the customers and every figure below are invented.

```json Request theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "revenue-by-customer",
    "arguments": { "month": "2026-09", "limit": 3 }
  }
}
```

The result is `{"isError": false, "content": [{"type": "text", "text": "..."}]}`. This is the `text`, parsed:

```json Response theme={null}
{
  "beacon": "revenue_by_customer",
  "company": "Beacon Demo",
  "company_ref": "co-beacon-demo",
  "month": "2026-09",
  "rows": [
    {
      "customer_ref": "stripe:cus_1001",
      "customer_name": "Northwind Health",
      "subscription_ref": "sub_2001",
      "mrr": 8400,
      "previous_mrr": 7200,
      "movement": "expansion",
      "currency": "USD"
    },
    {
      "customer_ref": "stripe:cus_1002",
      "customer_name": "Halden Logistics",
      "subscription_ref": "sub_2002",
      "mrr": 6100,
      "previous_mrr": 6100,
      "movement": "no_change",
      "currency": "USD"
    },
    {
      "customer_ref": "stripe:cus_1003",
      "customer_name": "Orbit Analytics",
      "subscription_ref": "sub_2003",
      "mrr": 5200,
      "previous_mrr": 0,
      "movement": "new",
      "currency": "USD"
    }
  ],
  "more_rows_in_month": true,
  "grain_note": "One row per subscription. A customer with more than one subscription appears once per subscription; Beacon does not add them together here.",
  "envelope": {
    "definition_id": null,
    "definition_version": null,
    "source_state_ref": null,
    "computed_at": "2026-10-01T02:10:00.000Z",
    "as_of": "2026-09-30T23:59:59.999Z",
    "freshness": { "age_ms": 2374200001, "floor_ms": null, "within_floor": null },
    "sealed_or_live": "live",
    "confidence": null,
    "data_class": "financial-sensitive",
    "transform_version": null,
    "guidance": null,
    "pin": "SC-2026.10.19-v0.51"
  }
}
```

## Related

> [card] [revenue-series](https://docs.beaconrevenue.io/mcp/revenue-series.md)
>
> Company recurring revenue, month by month.

> [card] [Recurring revenue](https://docs.beaconrevenue.io/definitions/mrr.md)
>
> How Beacon calculates recurring revenue.

> [card] [MCP tools](https://docs.beaconrevenue.io/mcp-tools.md)
>
> Every tool, and how to connect Claude.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.