Skip to main content
Glama

Get YouTube audience

get_youtube_audience
Read-only

Who watches the workspace's YouTube channel, read live from YouTube for a date window: age and gender (share of viewers; YouTube only shares these for channels with enough viewers), countries (top 10 by views), devices, subscribed (views from subscribers vs. not) and traffic_sources (where views came from). Each slice has key, label, share (percent) and, where YouTube gives them, views. Without from/to it covers the channel's lifetime.

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": {
      "workspace_id": "<workspace_id>"
    },
    "name": "get_youtube_audience"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoEnd date, ISO 8601. Optional; defaults to today.
fromNoStart date, ISO 8601 (e.g. 2026-10-01). Optional.
workspace_idYesWorkspace with a connected YouTube account. Get one from list_workspaces.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, openWorld and non-destructive, so the safety profile is covered. The description adds genuine behavioral context beyond them: data is read live from YouTube, age/gender are only available for channels with enough viewers, countries is capped at top 10 by views, and views may be absent per slice. Those availability caveats are exactly the kind of thing an agent needs to interpret empty or partial results.

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?

It is front-loaded with the what and then lists the slices, with zero filler sentences. It is dense — heavy parenthetical nesting — but every clause carries information, so the compression is justified rather than wasteful.

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

Completeness5/5

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

There is no output schema, but the description compensates by describing the return shape ('each slice has key, label, share (percent) and, where YouTube gives them, views'). Combined with the date-window default and the workspace requirement, an agent has everything needed to call and interpret this tool.

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 description coverage is 100%, so the parameters are already documented, setting the baseline at 3. The description adds one useful semantic beyond the schema: omitting from/to means lifetime coverage rather than 'today only', which the schema does not spell out for the pair.

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

Purpose5/5

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

States a specific verb and resource ('Who watches the workspace's YouTube channel, read live from YouTube') and then enumerates the exact metric families returned (age, gender, countries, devices, subscribed, traffic_sources). That enumeration distinguishes it from sibling analytics tools such as get_youtube_retention and get_video_analytics without needing to name them.

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

Usage Guidelines3/5

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

The closing sentence gives a real usage rule — omitting from/to yields the channel's lifetime — which tells the agent how to invoke it for all-time vs. windowed data. However, there is no explicit guidance on when to pick this over audience-adjacent siblings like get_account_growth or get_workspace_analytics, and no prerequisites beyond the schema's mention of a connected account.

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.