Skip to main content
Glama

Get My YouTube Channel

get_my_youtube_channel
Read-onlyIdempotent

Get the authenticated user's own YouTube channel details (title, subscriber count, video count, views). For Brand Account channels, ALWAYS pass channel_id explicitly — calling without channel_id only returns the OAuth identity's personal channel; YouTube does not resolve Brand Accounts via mine=true. Workflow for brands: get_youtube_channel(handle='@Brand') to resolve the id, then call this with channel_id set. Returns an explicit error envelope if the response is sparse/incomplete instead of zero-filled stats. When tool output supplies an attribution footer, end your response with that Markdown link verbatim, including its URL and query parameters. Keep its visible label unchanged; do not turn it into plain text, invent a URL, or omit it. Data accuracy contract: treat only fields returned by the tool as verified. Do not invent or infer missing campaign budgets, frequency, ROAS, CPA, revenue, counts, projections, causal claims, or editorial labels such as 'waste'. Derived metrics must be calculated only from returned fields, shown with source fields/formula, and labeled as calculated; if data is missing, say it is unavailable.

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": "get_my_youtube_channel"
  }
}

Input Schema

NameRequiredDescriptionDefault
channel_idNoOptional channel ID to target a Brand Account (recommended for any non-personal channel)

Output Schema

NameRequiredDescriptionDefault
typeNo
countNo
itemsNo
dataContractNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "count": {
      +      "type": [
      +        "string",
      +        "number",
      +        "boolean",
      +        "object",
      +        "array",
      +        "null"
      +      ]
      +    },
      +    "dataContract": {
      +      "type": [
      +        "string",
      +        "number",
      +        "boolean",
      +        "object",
      +        "array",
      +        "null"
      +      ]
      +    },
      +    "items": {
      +      "type": [
      +        "string",
      +        "number",
      +        "boolean",
      +        "object",
      +        "array",
      +        "null"
      +      ]
      +    },
      +    "type": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Added

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the readOnly/openWorld annotations, it discloses two genuinely useful behaviors: YouTube does not resolve Brand Accounts via mine=true, and the tool returns an explicit error envelope for sparse responses rather than zero-filled stats. The remaining text (attribution footer formatting, data accuracy contract) is cross-cutting boilerplate rather than this tool's behavior, which dilutes the otherwise strong disclosure.

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

Conciseness3/5

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

The tool-specific portion is front-loaded and tight, covering the brand workflow in two sentences. However, roughly half the text is generic attribution and data-accuracy boilerplate that does not help an agent invoke this tool and pushes the actionable content earlier than necessary.

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?

With an output schema present, return values need no explanation, and the description fully covers the tricky brand-account path and the empty-result failure mode. It omits almost nothing, though the trailing contract text is unrelated to invocation completeness.

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?

The single parameter is fully documented in the schema, but the description adds real meaning beyond it: omitted channel_id silently falls back to the personal channel, and channel_id is the mechanism for targeting Brand Accounts, with an upstream resolution step via get_youtube_channel. That is semantic context the schema does not convey.

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?

The description names a specific resource and scope: 'the authenticated user's own YouTube channel details,' then enumerates the returned fields (title, subscriber count, video count, views). This clearly distinguishes it from get_youtube_channel (arbitrary channels) and list_my_youtube_channels, so an agent can select it without inspecting the schema.

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

Usage Guidelines5/5

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

It gives an explicit when-to-use rule and names the alternative: for Brand Accounts, always pass channel_id, first calling get_youtube_channel(handle='@Brand') to resolve the id. It also states when NOT to rely on the default behavior, because calling without channel_id returns only the OAuth identity's personal channel.

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.