# `get_performance_summary`

_Performance_

`read` `idempotent`

Totals for videos published in the last N days (7|30|90, default 30): videoCount, views, likes, comments, shares, saves, averageEngagementPct; the same for the previous window; deltaPct per metric (null when the previous value is 0); and the topVideo by views.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `brandId` | `string` | no |  |
| `days` | `7 \| 30 \| 90` | no |  |

## Example

### Prompt

```text
How did my content perform over the last 30 days compared to the 30 days before?
```

### JSON-RPC

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

### 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_performance_summary","arguments":{"brandId":"3f6c2a4e-8b1d-4c7a-9e2f-5a1b0c9d8e7f","days":7}}}'
```
