Skip to main content
Glama

publish_video

Sends one finished video to selected platforms such as YouTube, TikTok, and Instagram, with a preview-only dry run by default to confirm where it will go before posting.

Instructions

Publish one finished video (a path from list_videos) to YouTube, TikTok, Instagram and the other platforms, through the user's own Upload-Post account, or directly to their own YouTube channel (youtube_direct). By default it only previews: dry_run is true, nothing is sent and the reply shows what would go where. Set dry_run to false only when the user asked to post: the video and its title then leave this PC, and a video is never sent twice to the same platform. Keys and the YouTube sign-in are set in the ShortsFlow app's Settings card.

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": {
      "path": "<path>",
      "platforms": "<platforms>"
    },
    "name": "publish_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath of a finished video inside the ShortsFlow sessions folder, from list_videos. Required.
tagsNoTags separated by commas. Empty uses the video's own tags.
titleNoTitle on the platform. Empty uses the video's own title.
dry_runNoTrue (the default) only previews and sends nothing. False really publishes.
privacyNoFor a youtube_direct upload: private, unlisted or public.private
platformsYesWhere to publish. youtube_direct goes straight to the user's own channel; the others go through Upload-Post. Required.
descriptionNoDescription text. Empty uses the video's own description.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.3

TDQS

A4.6/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 behavioral burden and does most of it: it discloses the read-only-by-default semantics, that the video and title leave the machine on a real post, that a video is never sent twice to the same platform, and where credentials come from. It stops short of covering failure modes (what happens on a per-platform partial failure) or rate limits, which for a fan-out publish tool would be worth a sentence.

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?

Four sentences, front-loaded with the verb, resource and routing model, then the safety default, then the side effect, then the prerequisite. Every sentence adds a distinct decision-relevant fact and none restate the tool name or title.

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 publishing tool with no output schema and no annotations, the definition covers the destructive path, data egress, idempotency and credential prerequisites. What is missing is only the shape of the reply beyond "shows what would go where" — acceptable given a preview step exists to be inspected.

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 the baseline is 3, but the description adds real meaning: it explains that youtube_direct bypasses Upload-Post while the other platforms route through it, and that privacy applies only to the youtube_direct upload — a scoping detail the schema enum does not convey. It reinforces but does not repeat the empty-value fallbacks (title, tags, description) already documented in the schema.

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 verb and resource ("Publish one finished video") and pins down the target set: YouTube, TikTok, Instagram, "and the other platforms", either through Upload-Post or straight to the user's own channel via youtube_direct. It also ties the input to the sibling that produces it ("a path from list_videos"), so an agent can place it in the workflow without opening a 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 explicit when-to-use guidance for the risky part: the default is preview-only, and "Set dry_run to false only when the user asked to post" is a clear gating condition. It also states the prerequisite (keys and the YouTube sign-in live in the ShortsFlow Settings card), which tells the agent what must already be true before calling.

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