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

# get_companies_ranked_by_metric - MCP

> Rank companies by valuation, revenue, or total funding

Ranks companies by a financial metric. With no parameters, it returns active, independent private companies ranked by valuation, highest first.

> [!NOTE]
>
> Calls [`GET /api/v1/companies/rankings/`](https://docs.sacra.com/api-reference/companies/rank-companies) with your credential and returns its JSON response as text.

## Parameters

**sort\_by** `string` (default: valuation)

Metric to rank by: `valuation`, `revenue`, or `total_funding`.

**order** `string` (default: desc)

`asc` or `desc`.

**company\_type** `string` (default: private)

`all`, `private`, or `public`.

**include\_acquired** `boolean` (default: false)

Include companies acquired in a closed acquisition.

**limit** `integer` (default: 50)

Maximum rows to return. Max 100.

## Response

The response matches [`GET /api/v1/companies/rankings/`](https://docs.sacra.com/api-reference/companies/rank-companies).

```json tools/call theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_companies_ranked_by_metric",
    "arguments": {
      "sort_by": "revenue",
      "limit": 10
    }
  }
}
```


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