Skip to main content
Glama

Publish an original post (optionally a self-thread), with media

publish

Create and publish an original post to X with built-in algorithm checks, media upload, and cost tracking. Preview with dry_run to see the full plan without posting.

Instructions

Create an original post on the authenticated account. Runs the algorithm rules first (mentions ≤1, no engagement bait, spacing ≥4h between originals, video strictly >10s and video-only), uploads media via the v2 chunked endpoints (files must live under the allowed media roots: /root/.x-mcp/media), enforces the monthly budget ($0.015/post, $0.2 if the text contains a URL), and records the post so post_performance/account_pulse can track it in algorithm terms (cold-start window, first-favorite → OON corpus, 48h shelf life). Set dry_run=true to see the full plan without posting. Use thread for follow-up posts chained as replies to your own post (they do NOT get their own For You reach — one post per conversation ships — they are for readers who tap in). Quote posts are Enterprise-only on pay-per-use: use handoff(kind="quote") instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pollNo
tagsNoExperiment tags for `insights` (e.g. ["video","receipt","question"]) — how you learn what works.
textYesPost text. ≤280 weighted chars unless the account has long-post access. URLs count as 23.
forceNoOverride soft rules (spacing, bait/mention warnings, ≤10s video). Never overrides media roots, the budget or hard API limits.
threadNoFollow-up posts, each posted as a reply to the previous one (self-thread).
dry_runNoAnalyse and price only; do not upload or post.
idea_idNoIdea from the `ideas` pipeline this post uses; it is marked used.
alt_textNoAlt text applied to each uploaded image/video.
media_pathsNoAbsolute local paths under an allowed media root: up to 4 images, or exactly 1 video (mp4/mov/webm) or 1 gif. Do not mix video with images.
community_idNoPost into an X Community you are a member of.
made_with_aiNoDisclose AI-generated media.
reply_settingsNoWho can reply. Omit for everyone.
long_post_limitNoCharacter limit to validate against if the account has long posts (e.g. 25000). Default 280.
share_with_followersNoWith community_id: also show to followers.
Behavior4/5

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

The description discloses important behavioral traits beyond the annotations: it runs algorithm rules first, enforces monthly budget, and records posts for tracking. It also notes that quote posts are Enterprise-only, which is a critical constraining detail not in annotations. However, it doesn't detail the exact effects of posting (e.g., irreversibility) beyond the budget, though annotations already indicate it's non-read-only and non-destructive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured, starting with a clear verb and purpose, then detailing key rules, budget, and alternative tools in a compact paragraph. It is front-loaded with the main action and alternatives, and every sentence adds value without redundancy.

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?

Given the tool's complexity (14 parameters, nested objects, algorithm rules, and budget), the description effectively communicates the major constraints and side effects. It covers the algorithm checks, media constraints, budget, and tracking, which is comprehensive. However, it doesn't describe the return value (no output schema), which might be a minor gap, but the detailed annotation and schema coverage compensate.

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 93% schema description coverage, the schema already documents most parameters. The description adds context for `thread` (posts as replies, no For You reach) and `dry_run`, and mentions budget impacts for URLs, but it doesn't explain the `long_post_limit` beyond schema. However, given the high coverage, a 4 is justified as it adds clarity on key parameters.

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 the tool's purpose: creating an original post on the authenticated account, with options for a self-thread and media. It distinguishes itself from siblings like `reply` (which posts replies) and `handoff` (for quote posts) by explicitly mentioning those alternatives.

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?

The description provides explicit guidance on when to use this tool vs. alternatives: use `thread` for follow-up replies, and use `handoff(kind="quote")` for quote posts. It also details the dry_run option for planning, making it clear when to use it for previewing.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rthomas24/x-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server