Skip to main content
Glama

Write titles, description, chapters and tags

generate_metadata
Read-only

Generate YouTube metadata from a transcript, captions, text, or local file—titles, chapters, tags, hashtags, pinned comment, and thumbnail text—checked against YouTube limits.

Instructions

Gets the transcript with timestamps (from text you pass, a .srt/.vtt/.txt file, an uploaded video’s captions, or by transcribing a local file). When an AI writing model is configured (Azure OpenAI, OpenAI…), it returns a finished draft: 3 titles, description with chapters, tags, hashtags, pinned comment and thumbnail text, already merged with the template and checked against YouTube’s limits. Otherwise (or with draft: false) it returns a brief for you to write from. Show the draft to the user before using it.

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

Input Schema

NameRequiredDescriptionDefault
draftNoHave the configured AI model write the metadata (default: yes when one is configured).
notesNoAnything else: audience, links to include, tone.
formatNovideo
channelNoWhich connected channel: channel ID (UC...), @handle or name. Omit to use the default channel.
languageNoLanguage to write the metadata in.
templateNo
video_idNoUse the captions of this video on your channel.
file_pathNoTranscribe this local video first (needs transcription configured).
transcriptNoTranscript or notes as plain text.
transcript_pathNo.srt, .vtt or .txt file on this computer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.1.0
    • addedInput schema / properties / draft
      Added value: +{
      +  "description": "Have the configured AI model write the metadata (default: yes when one is configured).",
      +  "type": "boolean"
      +}
  2. First observedv1.0.1

TDQS

A3.6/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint, so the description carries most of the burden and does add real context: dependency on a configured AI model, a requirement that transcription be configured for file_path, template merging, and validation against YouTube limits. It omits the cost/latency implications of transcribing a local file and says nothing about what the fallback brief actually contains. No contradiction with readOnlyHint, since nothing is written to YouTube.

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?

It is a single dense paragraph with no waste, but the front-loading is wrong: an agent skimming the first clause learns about transcript retrieval rather than metadata generation. Nested parentheticals listing sources and outputs make it harder to parse than a short lead sentence plus bullet-style conditions would be.

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 10-parameter, zero-required-parameter tool with no output schema, the description covers the main modes well: draft vs brief, transcript source options, and the limit-checked merged output. Gaps remain around the template parameter, the video/short format distinction, and the shape of the fallback brief.

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 80%, so the baseline is 3. The description does add meaning by enumerating the transcript sources (passed text, .srt/.vtt/.txt, uploaded video captions, local-file transcription), which maps transcript/transcript_path/video_id/file_path onto distinct modes, but template and the format enum remain undescribed and draft is only partly explained.

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 names the concrete outputs (3 titles, description with chapters, tags, hashtags, pinned comment, thumbnail text) which matches the title and makes the resource specific. The opening sentence, however, leads with transcript acquisition rather than metadata generation, briefly obscuring the primary action. It does not distinguish itself from siblings like preview_metadata, seo_check, or translate_video_metadata.

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?

It gives a clear conditional: with a configured AI model you get a finished draft, otherwise (or with draft: false) you get a brief to write from, plus the instruction to show the draft to the user first. It never says when to use this instead of preview_metadata, critique_thumbnails, or seo_check, so routing among the content-generation siblings is left to inference.

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