Skip to main content
Glama
tuitamogamer-gpt

youtube-mcp-server

Audience Demographics

youtube_audience_demographics
Read-onlyIdempotent

Retrieve age group and gender distribution of your channel's viewers, showing viewer percentage per demographic segment. Get data for a custom date range.

Instructions

Retrieve the age group and gender distribution of the channel's viewers, expressed as percentages of total viewership.

Args:

  • startDate (optional): Inclusive start date in YYYY-MM-DD format. Defaults to 28 days ago.

  • endDate (optional): Inclusive end date in YYYY-MM-DD format. Defaults to today.

  • response_format (optional): "markdown" (default) or "json".

Returns (JSON shape):

{
  "columns": ["ageGroup", "gender", "viewerPercentage"],
  "rows": [
    ["age25-34", "male", 23.5],
    ["age18-24", "female", 18.2],
    ...
  ]
}

Examples:

  • "What is my audience demographics?" → call with no arguments.

  • "Demographics for Q1 2025" → pass matching startDate / endDate.

Errors:

  • 403: insufficient scope or the channel has insufficient data — re-run npm run auth.

  • rows empty: channel may not have enough viewership data to surface demographics.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
startDateNoInclusive start date in YYYY-MM-DD format. Defaults to 28 days ago.
endDateNoInclusive end date in YYYY-MM-DD format. Defaults to today.
response_formatNoOutput format: "markdown" (default) for a human-readable table, "json" for the structured payload.markdown
Behavior5/5

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

Annotations already declare readOnly, destructive, idempotent, openWorld hints. Description adds useful behavioral context: returns percentage data, indicates that empty rows may occur if viewership data is insufficient, and explains error 403 requires re-authentication. This is extra value beyond annotations.

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

Conciseness5/5

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

Well-structured with clear sections: purpose, Args, Returns, Examples, Errors. Front-loaded with the main functionality. Each sentence adds necessary information; no fluff. Efficiently covers all needed aspects in a readable format.

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?

Despite lacking an output schema, the description includes a full JSON shape of the return value, covering columns and example rows. Handles date ranges, optional parameters, default behavior, and common errors. Sufficient for an agent to understand and invoke the tool correctly.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3. Description adds value by providing return shape (JSON with columns/rows), default values, and examples showing parameter usage. It clarifies the meaning of dates and the response_format enum. Slightly redundant with schema but still helpful.

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?

Clearly states the tool retrieves age group and gender distribution of viewers as percentages. Specific verb 'retrieve' and resource 'age and gender distribution' with no ambiguity. Distinguishes itself from sibling analytics tools like youtube_revenue and youtube_traffic_sources.

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?

Provides example calls with and without arguments, and describes error scenarios. However, no explicit guidance on when to prefer this tool over siblings. The examples implicitly guide usage for date ranges, but lacks 'when not to use' or alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tuitamogamer-gpt/youtube-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server