Skip to main content
Glama

Publish a post

publish_post

Publish content to the caller's connected account on the chosen platform. Async — returns job_id; poll get_publish_status(job_id). Rate limit: 10 calls/hour.

Media source — provide exactly one: media_url (a public https URL), draft_id (an already-uploaded SocialGPT draft), or carousel_id. If the user only has a LOCAL file on their device and you have no public URL, do NOT ask them to host it or paste a link — call get_upload_link, have them upload, then publish the resulting draft via draft_id (list_uploads returns the newest draft_id). The post_from_my_device prompt walks through this end to end.

TikTok: follow the rules from get_publish_options. post_mode='draft' sends to the TikTok inbox (the user finishes inside TikTok); post_mode='direct' publishes now and requires the full consent ritual (options_token + human-chosen privacy_level + previewed consent).

Instagram: publishes reels (media_url/draft_id) and carousels (carousel_id) immediately — no draft mode, no privacy, no TikTok ritual fields. Use share_to_feed / thumb_offset. The account must be set up for publishing (a connected Instagram professional account).

YouTube: publishes a video (media_url/draft_id) immediately — no carousels. caption becomes the video title (required). privacy is one of public | unlisted | private (default private).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
captionNoPost caption (TikTok: 90 title / 4000 desc). For YouTube the caption becomes the video title (truncated to 100 chars).
is_aigcNoDirect mode, video: label as AI-generated (irreversible).
privacyNoYouTube: public | unlisted | private (default private). YouTube only.
draft_idNopost_id of an existing SocialGPT draft video — e.g. one the user just uploaded via get_upload_link (find it with list_uploads, newest first).
group_idNoOptional account-group (brand) id from list_accounts. Omit to use the default group.
platformYesTarget platform. Required. 'tiktok' supports draft/direct + the consent ritual; 'instagram' publishes reels/carousels immediately (share_to_feed, thumb_offset); 'youtube' publishes a video immediately (caption=title, privacy).
media_urlNoPublic https URL of a video to post (downloaded server-side). Only when you already have a hosted URL — for a file on the user's device use get_upload_link then draft_id, never ask them to host it.
post_modeNoTikTok only — 'draft' (send to inbox) or 'direct' (publish now). Required for TikTok; omit for Instagram/YouTube.
account_idNoThe account_id returned by get_publish_options. Omit to use the default connected TikTok account.
carousel_idNoIdea (hook) id with a generated carousel.
disable_duetNoDirect mode, video: disable duet.
thumb_offsetNoInstagram reels: thumbnail offset in seconds. Instagram only.
options_tokenNoDirect mode: token from get_publish_options (15-min TTL).
privacy_levelNoDirect mode: the human's choice from privacy_level_options. No default.
share_to_feedNoInstagram reels: also share to the main feed (default true). Instagram only.
auto_add_musicNoDirect mode, carousel: auto-add recommended music.
disable_stitchNoDirect mode, video: disable stitch.
disable_commentNoDirect mode: disable comments.
brand_content_toggleNoDirect mode: paid partnership ('Paid partnership' label).
brand_organic_toggleNoDirect mode: promotes the creator's own brand.
user_previewed_contentNoDirect mode attestation: the human previewed content + settings.
user_expressly_consentedYesAttestation about the HUMAN: they explicitly approved sending exactly this content to the target platform. Never set true without asking them.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteYes
job_idYes
statusYesAlways 'pending' at creation; poll the matching status tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

The description discloses async behavior (returns job_id, poll get_publish_status), rate limit (10 calls/hour), platform-specific quirks (TikTok draft vs direct, irreversible is_aigc label), and consent requirements. Annotations provide minimal behavioral cues; the description adds substantial context.

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?

The description is well-structured with paragraphs for general behavior, media source selection, and platform breakdowns. It is slightly verbose but every sentence serves a purpose. Front-loads key async and rate-limit info.

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?

Given 22 parameters (2 required), 100% schema coverage, and an existing output schema, the description is highly complete. It covers all platform variations, error states (e.g., user consent required), and practical workflows (local files, upload link).

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?

With 100% schema coverage, baseline is 3. The description adds meaningful context beyond the schema, such as the relationship between media_url, draft_id, and carousel_id, the TikTok consent ritual fields, and platform-specific parameter usage (e.g., share_to_feed only for Instagram).

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 clearly states it publishes content to the caller's connected account on the chosen platform. It specifies platforms (TikTok, Instagram, YouTube) and distinguishes behaviors per platform, making the tool's purpose unambiguous.

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?

Explicit guidance on when to use media_url vs. draft_id vs. carousel_id, and a clear workflow for local files (avoid asking user to host). Platform-specific instructions (e.g., TikTok consent ritual, Instagram immediate publish) are provided, and when-not-to-use cases (local files) are covered.

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.