Skip to main content
Glama
Upload-Post

Upload-Post

Official

Create a comment or reply

create_comment
Destructive

Post a top-level comment or threaded reply on supported social posts after a preview, so you can engage audiences and control exactly what is published.

Instructions

Post a top-level comment or a reply on a post. Provide exactly ONE of commentId (reply to a comment), postId, or postUrl (top-level). LinkedIn: postId=the post urn; the comment is made as whoever published the post (the member on a personal post, the Page on a Page post) unless linkedinPageId says otherwise. Instagram: commentId replies to a comment, and postId (the numeric media id) or postUrl without it posts a top-level comment on one of the account's own posts. TikTok always needs postId (the video id); add commentId on top of it to reply inside that thread. X: links are removed from the message unless the account is allowed links on X (the response then lists it in warnings), and a message that was only links is refused with 400 x_links_not_allowed. Replies on X share a daily limit per X account with post edits and reposts made through Upload-Post (20 a day on the free plan, 200 on paid plans, reset at 00:00 UTC); past it the call returns 429 x_daily_write_limit with retry_after in seconds. TikTok: Requires the 'comments' capability on the profile's TikTok account (see the capabilities array in list_users). It is granted at connection time, so an account connected earlier has to reconnect TikTok before this works. Needs the user's approval: call it first without confirmed to get a preview (nothing is sent), show the user exactly what will go out, and repeat the call with confirmed: true only after they approve.

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": {
      "user": "<user>",
      "message": "<message>"
    },
    "name": "create_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
userYesUpload-Post profile name.
postIdNoTop-level comment on this post ID. LinkedIn: the post urn. TikTok: the video id, always required.
messageYesComment text to post.
postUrlNoTop-level comment on this post URL.
imageUrlNoTikTok only: public URL of an image posted as the comment or with it (JPG, PNG or WebP, up to 5 MB, 360x360 to 1080x1920 or 1920x1080 pixels); an image TikTok cannot take answers 400 invalid_image and nothing is posted. Sent as `image_url`.
platformNoSocial platform. One of instagram, facebook, youtube, linkedin, tiktok, x, threads, bluesky.instagram
commentIdNoReply to this comment. Required by Instagram. TikTok: pass it together with postId to reply inside a thread.
confirmedNoSet to true only after the user has seen the preview this tool returns without it and approved it. Without it nothing is sent.
linkedinPageIdNoLinkedIn only: who the comment is made as. `personal` = the member's own profile; a numeric organization id (from get_linkedin_pages) = that company Page. Leave it out to comment as the author of the post. A Page pinned to the profile wins over a page id sent here, but not over `personal`. Sent as `target_linkedin_page_id`.

Output Schema

NameRequiredDescriptionDefault
resultNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.29.0
    • addedInput schema / properties / imageUrl
      Added value: +{
      +  "description": "TikTok only: public URL of an image posted as the comment or with it (JPG, PNG or WebP, up to 5 MB, 360x360 to 1080x1920 or 1920x1080 pixels); an image TikTok cannot take answers 400 invalid_image and nothing is posted. Sent as `image_url`.",
      +  "type": "string"
      +}
  2. Changed1 schema field changedv0.23.0
    • addedInput schema / properties / linkedinPageId
      Added value: +{
      +  "description": "LinkedIn only: who the comment is made as. `personal` = the member's own profile; a numeric organization id (from get_linkedin_pages) = that company Page. Leave it out to comment as the author of the post. A Page pinned to the profile wins over a page id sent here, but not over `personal`. Sent as `target_linkedin_page_id`.",
      +  "type": "string"
      +}
  3. Changed1 schema field changedv0.17.2
    • addedInput schema / properties / confirmed
      Added value: +{
      +  "description": "Set to true only after the user has seen the preview this tool returns without it and approved it. Without it nothing is sent.",
      +  "type": "boolean"
      +}
  4. Changed2 schema fields changedv0.11.4
    • changedInput schema / properties / platform / description
      Previous value: -"Social platform. One of instagram, facebook, youtube, linkedin, tiktok."New value: +"Social platform. One of instagram, facebook, youtube, linkedin, tiktok, x, threads, bluesky."
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "instagram",
      -  "facebook",
      -  "youtube",
      -  "linkedin",
      -  "tiktok"
      -]New value: +[
      +  "instagram",
      +  "facebook",
      +  "youtube",
      +  "linkedin",
      +  "tiktok",
      +  "x",
      +  "threads",
      +  "bluesky"
      +]
  5. Changed6 schema fields changedv0.11.1
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • changedInput schema / properties / commentId / description
      Previous value: -"Reply to this comment. Required by Instagram."New value: +"Reply to this comment. Required by Instagram. TikTok: pass it together with postId to reply inside a thread."
    • changedInput schema / properties / platform / description
      Previous value: -"Social platform. One of instagram, facebook, youtube, linkedin."New value: +"Social platform. One of instagram, facebook, youtube, linkedin, tiktok."
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "instagram",
      -  "facebook",
      -  "youtube",
      -  "linkedin"
      -]New value: +[
      +  "instagram",
      +  "facebook",
      +  "youtube",
      +  "linkedin",
      +  "tiktok"
      +]
    • changedInput schema / properties / postId / description
      Previous value: -"Top-level comment on this post ID. LinkedIn: the post urn."New value: +"Top-level comment on this post ID. LinkedIn: the post urn. TikTok: the video id, always required."
    • removedOutput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
  6. Addedv0.7.0

TDQS

A4.1/5.0
Behavior5/5

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

Far beyond the annotations, it discloses concrete failure modes and side effects: X strips links unless the account permits them and returns 400 `x_links_not_allowed`, X shares a daily write limit of 20/200 with post edits and reposts reset at 00:00 UTC returning 429 `x_daily_write_limit` with `retry_after`, and TikTok requires the 'comments' capability granted at connection time. The two-step preview/`confirmed` protocol and the 'nothing is sent' guarantee are exactly the behavioral context an agent needs before a destructive call.

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?

The critical mutual-exclusivity rule is front-loaded, which is good, but the middle of the description is a dense platform-by-platform run-on that repeats schema content (LinkedIn urn, TikTok postId always required). Several clauses could be trimmed without losing meaning.

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, multi-platform, destructive write tool with an output schema, the description covers the selection constraint, attribution behavior, rate limits, capability gating, and the approval protocol. Return values are handled by the output schema, so nothing material is missing.

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 100%, so the schema already documents each parameter. The description does add one genuine constraint the schema cannot express — mutual exclusivity of commentId/postId/postUrl — as well as who the comment is attributed to on LinkedIn, but most remaining per-parameter detail (urn meaning, TikTok postId requirement) restates the schema descriptions.

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 first sentence states a specific verb and resource ('Post a top-level comment or a reply on a post') and immediately separates the two modes. It does not, however, distinguish this tool from the sibling reply_to_comment or public_reply_to_comment, so an agent cannot be certain which entry point to use without opening 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?

It gives an explicit selection rule ('Provide exactly ONE of commentId, postId, or postUrl') with per-platform conditions for each, plus a clear prerequisite flow for `confirmed`. It stops short of naming alternatives or stating when not to use the tool at all.

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

Deploy Server

Other Tools