# `get_metrics_daily`

_Performance_

`read` `idempotent`

Daily aggregated metrics per connected account between from and to (YYYY-MM-DD, inclusive; range capped to the last 180 days before `to`). One row per account per day: date, platform, totals and averageEngagementPct. Optional platform filter.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `brandId` | `string` | no |  |
| `platform` | `"tiktok" \| "instagram"` | no |  |
| `from` | `string` | yes |  |
| `to` | `string` | yes |  |

## Example

### Prompt

```text
Show me my daily view counts for the last two weeks.
```

### JSON-RPC

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_metrics_daily",
    "arguments": {
      "from": "2026-10-01",
      "to": "2026-10-01"
    }
  }
}
```

### 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_metrics_daily","arguments":{"from":"2026-10-01","to":"2026-10-01"}}}'
```
