youtube_creator_report
Runs allowlisted YouTube Analytics reports for your owned channel, with metrics, dimensions, filters, sorting, and a default last-28-days range; invalid combinations are rejected before API calls.
Instructions
Run an allowlisted YouTube Analytics report for the owned channel (default: last 28 days). Metrics: views, estimatedMinutesWatched, averageViewDuration, averageViewPercentage, subscribersGained, subscribersLost, likes, comments, shares (viewerPercentage only with ageGroup/gender). Dimensions: day, month, video, country, deviceType, operatingSystem, insightTrafficSourceType, insightTrafficSourceDetail (needs one video plus an insightTrafficSourceType filter), ageGroup, gender, subscribedStatus, sharingService (shares only). Invalid combinations are rejected with invalid_input before any API call. Rows come back as objects keyed by column name.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"metrics": "<metrics>"
},
"name": "youtube_creator_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Sort keys, up to 4; prefix a key with - for descending, e.g. -views. | |
| endDate | No | End date, YYYY-MM-DD; defaults to today. | |
| filters | No | Optional filters to narrow the report. | |
| metrics | Yes | YouTube Analytics metric names such as views, 1-12 items. | |
| startDate | No | Start date, YYYY-MM-DD; defaults to 28 days before endDate. | |
| dimensions | No | YouTube Analytics dimension names to group by, up to 3. | |
| maxResults | No | Maximum rows to return, 1-200; traffic-source-detail reports allow at most 25. |