Skip to main content
Glama

YouTube traffic sources and search terms

youtube_traffic_sources
Read-only

Where the channel's views come from (YouTube search, suggested videos, Shorts feed, external sites...). Pass type='YT_SEARCH' for the YouTube SEARCH TERMS people used to find the videos (the YouTube equivalent of Search Console queries - compare them with Search Console for content gaps), 'EXT_URL' for the websites that send viewers, or 'RELATED_VIDEO' for the videos yours are suggested next to.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "youtube_traffic_sources"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoOmit for the overall split by source.
videoNoLimit to one video: id, URL, or title.
channelNoChannel name or id. Only needed when more than one YouTube channel is connected.
endDateNoYYYY-MM-DD. Default: 3 days ago (YouTube Analytics lags 2-3 days).
startDateNoYYYY-MM-DD. Default: 28 days before endDate.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/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 the safety profile is covered and the description adds little there. It contributes useful analytical framing (YouTube search terms are the analogue of Search Console queries) but says nothing about result shape, row limits, or the lag caveat, which lives only in the schema's endDate description.

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?

One sentence establishes what the tool returns and the next maps the key parameter values, so the most important routing information is front-loaded. The parenthetical list of example sources ('Shorts feed, external sites...') and the Search Console aside add some breadth, but no sentence is clearly wasteful.

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

Completeness4/5

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

For a read-only analytics query with a fully documented five-parameter schema and no output schema, the description covers purpose, parameter routing, and an intended workflow. The remaining gap is what the response looks like (source rows with view counts and the unspecified PLAYLIST type), which would help an agent plan follow-up calls.

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

Parameters3/5

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

Schema coverage is 100%, so the schema already documents all five parameters including value formats and defaults, which sets the baseline at 3. The description does add real meaning for three enum values (YT_SEARCH, EXT_URL, RELATED_VIDEO) beyond the bare enum list, but the fourth value, PLAYLIST, is never explained anywhere.

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 opens with a specific resource question ('Where the channel's views come from') and enumerates the source categories, so the resource and dimension are unambiguous. It stops short of naming a sibling it should be preferred over (e.g. get_search_terms or youtube_top_videos), leaving the boundary to be inferred from the Search Console analogy.

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

Usage Guidelines4/5

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

The description routes the agent by type value (YT_SEARCH for search terms, EXT_URL for referring sites, RELATED_VIDEO for suggested-next-to videos) and gives a concrete analytical use case (compare against Search Console for content gaps). It gives no explicit when-not-to-use or sibling alternative, so it falls short of a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources