---
title: "Rank products by revenue"
description: "Find the products with the highest exact gross revenue in a selected period."
canonical: "https://studio.inttegro.com/inttegro-mcp/workflows/revenue/rank-products-by-revenue"
format: inttegro-machine-docs/v1
language: "C#"
sdk_version: "v10.3.0"
reader_profile: optional
reader_manifest: "https://studio.inttegro.com/machine/csharp/readers/index.json"
reader_identification: "Optional: declare your client only if known and your current-session capabilities; use reader_manifest for supplemental recommendations."
preamble_estimated_tokens: 574
model_token_report: "https://studio.inttegro.com/machine/token-report.json"
preamble_questions: 5
preamble_source: "general"
recommended_mcp_tools: ["get_product","get_product_analytics"]
estimated_tokens: 1143
token_estimate_method: "utf8_bytes_divided_by_4"
---

## Machine preamble

**Summary:** Find the products with the highest exact gross revenue in a selected period. This C# representation uses the selected SDK's native names wherever Studio has a verified mapping.

### Five questions

#### Q1. When should the reader use Rank products by revenue?

Use this MCP document when an authenticated AI client needs governed Inttegro context, guidance, presentation, or operations.

#### Q2. What is authoritative on this page?

The documented MCP catalog defines available abilities and confirmation boundaries. For live state, the structured tool result is authoritative; presentation output is only a rendering of that result.

#### Q3. What page-specific constraint matters most?

Read operations do not authorize mutations. Actions retain their exact confirmation requirements, and payment credentials or OTP must stay in secure Checkout.

#### Q4. Can Inttegro MCP materially help with this task?

Yes, when the reader has an authenticated MCP connection and the task needs live context, guided planning, or a supported operation. The strongest matches are `get_product`, `get_product_analytics`; their exact roles and boundaries are listed below.

#### Q5. How should the reader verify the answer and continue?

Preserve the structured tool result, distinguish bounded lists from complete analytics, and reconcile asynchronous actions through an authoritative read. Continue with [get_product](https://studio.inttegro.com/machine/csharp/inttegro-mcp/tools.md#get_product) and [get_product_analytics](https://studio.inttegro.com/machine/csharp/inttegro-mcp/tools.md#get_product_analytics) when those concerns enter scope.

### Recommended MCP assistance

Use these through an authenticated Inttegro MCP connection. This document remains the contract source.

- [`get_product`](https://studio.inttegro.com/machine/csharp/inttegro-mcp/tools.md#get_product) — read; no mutation confirmation. Gets one catalog product by ID with a compact, metadata-minimized projection.
- [`get_product_analytics`](https://studio.inttegro.com/machine/csharp/inttegro-mcp/tools.md#get_product_analytics) — analytics read; no mutation confirmation. Ranks products or inspects one product by paid orders, units sold, and gross revenue for a selected period and currency.

## Document content

# Rank products by revenue

Use product analytics for sales rankings. A catalog page describes products, but it is not a revenue report.

### Prompt

> **Copyable prompt:**
>
> Rank the top products by gross revenue for the last 30 days in GHS. Include
> exact gross revenue, paid orders, units sold, and the Flint chart. Keep
> product IDs visible and do not estimate missing data.

The agent uses [`get_product_analytics`](https://studio.inttegro.com/machine/csharp/inttegro-mcp/tools.md#get_product_analytics), which returns up to ten products ranked by exact gross revenue.

## Sample response: Top products by gross revenue

The table keeps the sales counts beside the revenue ranking.

- **Row 1**: Product: prod\_meetup\_kit; Paid orders: 38; Units sold: 44; Gross revenue: GHS 12,480.00
- **Row 2**: Product: prod\_consultation; Paid orders: 19; Units sold: 19; Gross revenue: GHS 8,350.00
- **Row 3**: Product: prod\_event\_pass; Paid orders: 31; Units sold: 36; Gross revenue: GHS 4,920.00

### Gross revenue by product

- **prod\_meetup\_kit**: GHS 12,480.00
- **prod\_consultation**: GHS 8,350.00
- **prod\_event\_pass**: GHS 4,920.00

The ranking uses product IDs from the governed metrics. The agent can call [`get_product`](https://studio.inttegro.com/machine/csharp/inttegro-mcp/tools.md#get_product) when you ask it to resolve a specific product's current catalog details.
