Skip to main content
Glama

Publish to TikTok

publish_tiktok_post
Destructive

Publish to a connected TikTok account: a video (video_url: MP4/MOV/WebM, 3 to 600 s, up to 1 GB, at least 360 px) or a photo post (image_urls: 1 to 35 JPEG or WebP; TikTok refuses PNG). Media must be at a public HTTPS URL. TikTok processes the post asynchronously: the result has a share_id, pass it to get_tiktok_publish_status. TikTok caps API posting at about 15 posts per day per account. To post later, pass scheduled_at. Every post gets a post_id (list_scheduled_posts).

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": {
      "account_id": "<account_id>"
    },
    "name": "publish_tiktok_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoPhoto posts only, up to 90 characters
captionNoUp to 2,200 characters, #hashtags allowed
video_urlNo
account_idYesA TikTok account_id from list_social_accounts
image_urlsNo
scheduled_atNoSchedule instead of posting now: ISO 8601 with a timezone, e.g. 2026-11-06T09:00:00-03:00, 1 minute to 90 days ahead. easyCoexistence copies the media and publishes it then; see list_scheduled_posts.
disable_commentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, yet the description adds genuinely new behavior: the post is processed asynchronously and returns a share_id rather than a finished post, and the account is capped at roughly 15 API posts per day. It also discloses TikTok-side validation rejections (PNG refused, duration/resolution/size limits), which an agent cannot infer from the annotation flags.

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?

One dense paragraph, front-loaded with the what and the media paths, then workflow, then limits. Every clause carries information, though the semicolon-heavy packing makes the media constraints harder to scan than a short bulleted form would.

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 destructive publishing tool with no output schema, it covers the essentials an agent needs: media validity, async return value, rate ceiling, and scheduling handoff. The gaps are minor but real: disable_comment is unexplained and the caption/title limits live only in the schema.

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 57% and video_url and image_urls have no schema description at all, so the description carries the real semantics there: accepted codecs, 3-600 s, 1 GB, 360 px minimum, 1-35 JPEG/WebP images, public HTTPS requirement. It adds nothing for disable_comment, which remains undocumented in both description and 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?

States a specific verb and resource (publish a video or photo post to a TikTok account) and immediately splits the two mutually exclusive media paths, video_url vs image_urls. It also names the follow-up sibling get_tiktok_publish_status, so an agent can place it in the workflow without opening another 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 routing signals: pass share_id to get_tiktok_publish_status for the result, pass scheduled_at to post later, and use list_scheduled_posts to find the post_id. It stops short of explicit exclusions, e.g. it never contrasts with publish_instagram_post/publish_facebook_post or says when scheduling should be refused in favor of a scheduled-post tool.

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