# `list_niche_patterns`

_Viral catalog_

`read` `idempotent`

List the recurring script patterns detected in a niche's viral videos (name, description, structure, average virality, usage count). Defaults to the brand's niche.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `brandId` | `string` | no |  |
| `niche` | `string` | no |  |
| `limit` | `integer` | no |  |

## Example

### Prompt

```text
What script patterns keep going viral in my niche?
```

### JSON-RPC

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

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