Skip to main content
Glama
YouTube Studio MCP
by moeinxyz

get_traffic_sources

Read-only

Retrieve views and watch minutes by traffic source for a date range, optionally filtered to one video, to identify where audience attention comes from.

Instructions

Owner's views and watch minutes by traffic source, optionally for one video.

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": {
      "start_date": "<start_date>",
      "end_date": "<end_date>"
    },
    "name": "get_traffic_sources"
  }
}

Input Schema

NameRequiredDescriptionDefault
end_dateYes
video_idNo
start_dateYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=true, so safety is covered. The description adds the returned measures and the grouping dimension, and 'Owner's' faintly implies owner-scoped authorization, but it says nothing about date-range behavior, granularity, or rate/row limits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded clause with no filler; every element (metrics, dimension, optional scope) earns its place. It is a fragment rather than a full sentence and the possessive 'Owner's views' is slightly ambiguous, which is why it isn't a 5.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be described. However, for a three-parameter analytics tool with zero schema documentation, the description leaves the two required date parameters entirely unspecified and gives no sense of result granularity, making it too thin to call safely.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry parameter meaning, yet it only clarifies that video_id is an optional single-video filter. The required start_date and end_date are never mentioned, leaving their expected format and inclusivity completely undefined.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names specific metrics (views and watch minutes) grouped by a specific dimension (traffic source), plus an optional video scope, so an agent can tell what data comes back. It does not explicitly contrast with analytics siblings like get_channel_analytics or get_search_terms, which keeps it short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The only usage signal is the phrase 'optionally for one video', which hints at scoping but not at when to prefer this tool over get_channel_analytics or get_search_terms. There is no when-not guidance, no prerequisite statement, and no named alternative.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.