Skip to main content
Glama

publish_post

Destructive

Publish one post, several, or every version of one now, and wait for the platforms to answer (about half a minute).

A post whose earlier publish failed is retried (requeued about a minute out, retried: true). Every post first passes the same checks: character limit, required media and settings, a connected account. One post answers with its live url; several come back per post in posts with publishedCount, and a post that cannot go is reported on its own while the rest still publish (at most 10 per call). Still processing answers pending with checkAfterSeconds: one get_post after it, no polling. A TikTok post answers tiktok_choices_needed until the user has answered each choice; never answer for them.

Args: post_ids: The posts to publish. campaign_id: Every version of one post (its campaignId from create_post) instead. post_id: One post; the same as post_ids=[post_id]. workspace_id: Workspace ID or name. Optional if user has only one workspace. tiktok_settings: A TikTok post's settings, as the user answered the tiktokChoices a first call returned: {privacyLevel, allowComment, allowDuet, allowStitch, commercialContent: {enabled, yourBrand, brandedContent}, userConsented: true}, or {useLast: true, userConsented: true} once the user said yes to the lastUsed settings offered, or {sendToApp: true} when the user wants to finish it in their TikTok app (add a sound there): the video goes there without its caption, no choice is asked, and the post ends sent_to_app / waiting_in_app, not published. Flat, one answer covers every TikTok post in the call on one account; keyed by post id otherwise. Only the user's own answers, for the posts they were shown. routine_id: The Autopilot routine this run is for: its mode decides whether it may schedule or publish.

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

Input Schema

NameRequiredDescriptionDefault
contextNoThe user's underlying goal for this call, in one sentence without personal details. Used for product analytics only.
post_idNo
post_idsNo
llm_modelNoThe model identifier of the calling assistant, or "unknown". Used for product analytics only.
routine_idNo
campaign_idNo
workspace_idNo
conversation_idNoThe conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics.
tiktok_settingsNo

Output Schema

NameRequiredDescriptionDefault
_mcp_instructionsNoServer-issued metadata for this conversation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / conversation_id / description
      Previous value: -"Pass the exact conversation_id from the server's previous response, unchanged. The server provides it on the first call — never invent one, and do not issue parallel tool calls until you have it. Keep passing the same conversation_id for the rest of the conversation, including after later user messages or on a different task; do not reset it when the user starts a new request."New value: +"The conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics."
  2. Changed1 schema field changed
    • addedInput schema / properties / routine_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Routine Id"
      +}
  3. Changed1 schema field changed
    • changedInput schema / required
      Previous value: -[
      -  "context",
      -  "llm_model"
      -]New value: +[]
  4. Changed1 schema field changed
    • addedInput schema / properties / tiktok_settings
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": true,
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Tiktok Settings"
      +}
  5. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses the ~30s blocking wait, the retry/requeue path with `retried: true`, the 10-post-per-call cap, per-post partial failure reporting, the `pending` + `checkAfterSeconds` outcome, and the fact that TikTok posts stall on `tiktok_choices_needed`. It also warns the agent never to answer TikTok choices on the user's behalf. This is exactly the behavioral context destructiveHint/openWorldHint cannot convey.

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 core action is front-loaded in the first sentence, and nearly every later clause carries real operational information (retry, cap, pending, choice gating). It loses a point for density: long run-on sentences with mid-sentence line breaks make the TikTok branch harder to parse than it needs to be.

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?

For a 9-parameter, zero-required, side-effecting tool with a TikTok consent sub-flow and partial-failure semantics, the description covers triggers, targeting modes, blocking behavior, and outcome states. With an output schema present it rightly doesn't enumerate every return field, only the decision-relevant ones.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 33%, so the description must carry the load, and it does: it documents the meaning of post_ids, campaign_id, post_id, workspace_id, and routine_id, and spells out the three tiktok_settings shapes including the flat-vs-post-keyed rule. The three analytics parameters it omits are already self-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?

States a specific verb and resource with scope: "Publish one post, several, or every version of one now, and wait for the platforms to answer." The word "now" plus the explicit waiting behavior separates it from schedule_post and create_post without needing their schemas.

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?

The Args section gives clear selection rules among the mutually exclusive targeting parameters (post_ids vs campaign_id vs post_id) and states the operational rule "one get_post after it, no polling." It also notes that routine mode decides whether it may schedule or publish. What's missing is an explicit when-not or a named alternative such as schedule_post for future-dated publishing.

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.