Skip to main content
Glama

set_post

Write or edit a session's LinkedIn, X, YouTube, or vertical post, including threads, titles, captions, media, first comments, and selected-text fixes for each platform draft.

Instructions

Write the session's post for LinkedIn (default, posts/linkedin.md) or X (platform=x, posts/x.md). One session holds one post per platform, so the LinkedIn post and its X version sit together. LinkedIn: the app shows a real LinkedIn feed post with the video, cut after three lines with '…more', so put the hook in the first two lines. Max 3000 characters. X: the app shows a real X post, or a thread when you pass several tweets (tweets=[...], or text with a line holding only '---' between tweets). The media goes on the first tweet. The timeline cuts a tweet over 280 characters with 'Show more' (the user has Premium, so longer is allowed). The user edits the post in the app and comments on selected text; fix those comments with set_post. YouTube (platform=youtube): the long wide video. Pass title (max 100) and the description as text (chapters as '0:00 Intro' lines). Vertical (platform=vertical, also for tiktok/reels/shorts): one caption for TikTok, Instagram Reels and YouTube Shorts with the 9:16 edit; hook in the first line, max 2200 characters, at most 5 hashtags; title is the Shorts title, on picks the places. The old text stays in history. get_session returns them as 'post', 'x_post', 'youtube_post', 'vertical_post'. Posts are plain text only: they show no markdown. No video? The post works without one (text only, or pass an image). For other versions use create_post_variants; for opening options set_post_hooks. With variant= it edits that variant instead of the main post.

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": {
      "session": "<session>"
    },
    "name": "set_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
onNovertical only: where it goes. Default all three.
nameNoWith variant: rename it.
noteNoWhat changed, e.g. 'Shorter hook'.
textNoThe whole post, as it will appear.
mediaNoOptional: the video or image to show, e.g. 'edits/hook-v3.mp4'. Default: the newest edit.
titleNoyoutube: the video title. vertical: the Shorts title (empty: YouTube uses the caption's first line). Max 100 characters.
tweetsNoX only, instead of text: the tweets of a thread in order (one item = one tweet).
sessionYesSession: 'Project/folder', an absolute path or its id (from get_session). Old paths still work.
variantNoOptional: edit this post variant (slug) instead of the main post.
platformNoWhich post of the session: linkedin (default, posts/linkedin.md), x (posts/x.md), youtube (the long wide video: title + description, posts/youtube.md) or vertical (one vertical video and caption for TikTok, Instagram Reels and YouTube Shorts, posts/vertical.md).
first_commentNoLinkedIn only. Optional: the first comment the user posts under it (links, resources, a question). The app shows it under the post as the user's comment. One per session, shared by the variants. Empty string removes it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2026.11.11
    • changedInput schema / properties / session / description
      Previous value: -"Session as 'Project/folder', an absolute path, or its id (from get_session). An old path still works after a rename or move."New value: +"Session: 'Project/folder', an absolute path or its id (from get_session). Old paths still work."
  2. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Goes well past the annotations by disclosing that 'the old text stays in history' (consistent with destructiveHint=false and clarifying overwrite is recoverable), that posts are plain text with no markdown, that one post exists per platform per session, and how get_session surfaces each one. It also documents truncation behavior ('…more' after three lines, 'Show more' past 280 chars) and character ceilings.

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?

Front-loaded with the core purpose and alternative routing before platform detail, and nearly every sentence carries operational information. It is dense as a single unbroken block and restates the storage paths already present in the platform schema description, which is a small redundancy.

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 an 11-parameter, four-mode mutation tool with no output schema, the description covers every mode's content rules, media defaults, history retention, and how to read results back via get_session. An agent has everything needed to invoke each platform path correctly.

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: the '---' line trick as an alternative to the tweets array, the dual role of title on youtube vs. vertical, chapter format as '0:00 Intro' lines, and the 'on' parameter governing where a vertical caption is published. Only a few params (note, first_comment, name) get no extra treatment beyond 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 ('Write the session's post') and immediately enumerates the four target platforms with their storage locations. It explicitly distinguishes itself from create_post_variants, set_post_hooks, and variant editing, so an agent can route correctly without opening any 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?

Gives explicit routing rules: 'For other versions use create_post_variants; for opening options set_post_hooks', and 'With variant=<slug> it edits that variant instead of the main post'. Per-platform paragraphs also state what each mode is for (long wide video vs. 9:16 caption), so when-to-use is fully covered.

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