# `get_top_performers`

_Performance_

`read` `idempotent`

Rank the brand's videos published in the last N days (default 30) by metric: views | engagement | saves | shares | likes. direction top (default) or bottom. limit default 10 max 100.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `brandId` | `string` | no |  |
| `metric` | `"views" \| "engagement" \| "saves" \| "shares" \| "likes"` | no |  |
| `days` | `integer` | no |  |
| `direction` | `"top" \| "bottom"` | no |  |
| `limit` | `integer` | no |  |

## Example

### Prompt

```text
What were my 5 best-performing videos over the last 30 days?
```

### JSON-RPC

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_top_performers",
    "arguments": {
      "brandId": "3f6c2a4e-8b1d-4c7a-9e2f-5a1b0c9d8e7f",
      "metric": "views"
    }
  }
}
```

### curl

```bash
curl -X POST https://app.usedalea.ai/api/mcp/mcp \
  -H "Authorization: Bearer dalea_mcp_..." \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_top_performers","arguments":{"brandId":"3f6c2a4e-8b1d-4c7a-9e2f-5a1b0c9d8e7f","metric":"views"}}}'
```
