YouTube Setup Helper
query_contextsHelper for planning YouTube data queries.
Step 1: Get account information • request="accounts" - No extra params needed. Returns workspace_id, brand_id, channel_id, AND available_requests.
Step 2: Get detailed body structure for specific report(s)/action(s) • request="actions_details", platform="youtube-analytics" - List all available analytics reports • request="actions_details", platform="youtube-data" - List all available data actions • request="actions_details", platform="youtube-analytics", report_names=["channel_basic", "video_performance"] - Get schema for specific reports • request="actions_details", platform="youtube-data", actions=["channel_info", "video_details"] - Get schema for specific actions
Additional: Get brand guidelines • request="brands", brand_id=, workspace_id= - Get brand guidelines
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": {
"request": "<request>"
},
"name": "query_contexts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actions | No | ||
| request | Yes | ||
| brand_id | No | ||
| platform | No | ||
| report_names | No | ||
| workspace_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||