# `analyze_video`

_Performance_

`write` `10/day`

Analyze one of the brand's own published video posts using the same pipeline as Dalea. Pass platformVideoId from list_videos and platform to disambiguate. Returns cached analysis without AI or quota when available; otherwise requires confirm=true and consumes the daily quota (10/day). Includes transcript/timed segments when available, hook, structure, visual analysis, takeaway and comparison with the same connected account. Respects manual classifications. Check evidence: thumbnail or metadata is not observation of the video. Images/carousels are unsupported. Does not sync metrics. Read the saved result later with get_video; saved=false means persistence failed.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `brandId` | `string` | no |  |
| `platformVideoId` | `string` | yes |  |
| `platform` | `"instagram" \| "tiktok"` | no |  |
| `confirm` | `true` | yes |  |

## Example

### Prompt

```text
Analyze my latest Instagram Reel and compare it with my account's usual performance.
```

### JSON-RPC

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "analyze_video",
    "arguments": {
      "platformVideoId": "18012345678901234",
      "platform": "instagram",
      "confirm": true
    }
  }
}
```

### 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":"analyze_video","arguments":{"platformVideoId":"18012345678901234","platform":"instagram","confirm":true}}}'
```
