Skip to main content
Glama

publish_to_youtube

Publish an existing video from a transcribe or summarize job to YouTube, storing the caller-supplied OAuth token. Price: Free. The upload starts automatically — once payment settles, if a price applies — with no separate trigger step. Captions are auto-generated from the session transcript if available. Poll get_job_status to track progress; it returns the YouTube URL when the job completes. Requires a YouTube OAuth2 access token obtained independently via Google OAuth (scope: youtube.upload).

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": {
      "session_token": "<session_token>",
      "access_token": "<access_token>",
      "source_job_id": "<source_job_id>",
      "title": "<title>",
      "visibility": "<visibility>"
    },
    "name": "publish_to_youtube"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleYesYouTube video title (max 100 characters)
visibilityYesYouTube video visibility: "private" (default), "unlisted", or "public"private
descriptionNoYouTube video description (max 5000 characters)
access_tokenYesYouTube OAuth2 access token — the caller is responsible for obtaining this via Google OAuth
refresh_tokenNoYouTube OAuth2 refresh token — if provided, the Workflow will refresh the access token automatically before uploading
session_tokenYesSession token from create_session, create_transcript, or create_summary
source_job_idYesJob ID of an existing transcribe or summarize job in this session whose video to publish. The Workflow will auto-generate captions if no transcript is found.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that the caller-supplied OAuth token is stored, that the upload fires automatically with no separate trigger step, that price/payment settlement gates the upload, and that captions are auto-generated from the transcript when available. Remaining gaps — failure modes, duplicate-publish behavior, whether tokens are persisted beyond the job — keep it at 4.

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?

Front-loaded with the core action and follows the async flow logically. The 'Price: Free' plus 'once payment settles, if a price applies' phrasing is somewhat contradictory and costs a bit of clarity, but overall the text is dense and earns its space.

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 7-parameter mutation tool with no annotations and no output schema, the description covers the key missing pieces: authentication source, the asynchronous upload lifecycle, where the result appears (get_job_status returning the URL), and caption generation. Error handling and idempotency are the only notable omissions.

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 every parameter is already documented, including refresh_token auto-refresh and source_job_id's caption fallback. The description adds only the OAuth scope context for access_token; baseline 3 applies when the schema does the heavy lifting.

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 (publish), resource (YouTube video), and source constraint (an existing video from a transcribe or summarize job). An agent can distinguish this from siblings like transcribe, summarize, or complete_upload without opening any schema.

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?

Gives clear operational routing: poll get_job_status to track progress and get the resulting YouTube URL, and obtain the OAuth token independently via Google OAuth with the youtube.upload scope. It lacks explicit when-not-to-use guidance (e.g., don't call twice for the same source_job_id, or when to prefer clips_from_job), which keeps it from 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