x-agent-kit
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| X_API_KEY | Yes | X (Twitter) API key from your app's Keys and tokens. | |
| X_DRY_RUN | No | Dry run mode. Dry run is on by default in the plugin, guides and examples. | true |
| X_API_SECRET | Yes | X (Twitter) API key secret. | |
| X_ACCESS_TOKEN | Yes | X (Twitter) access token, generated after setting permissions to Read and write. | |
| X_ACCOUNT_TIER | No | Your X account tier (e.g. "basic" or "premium"). Premium enables long posts up to 25,000 characters; basic uses 280-character posts and threads. | basic |
| X_BANNED_WORDS | No | Brand-safety banned words for the MCP server; the validator blocks posts containing them. | |
| X_ACCESS_SECRET | Yes | X (Twitter) access token secret. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| x_format_postA | Shape text into a ready-to-post X format for the account tier (basic: 280 per post, threads; premium: long posts up to 25,000) and check it against what X's ranking rewards (hook, question, link placement, hashtags, bait, skimmability). Does not post. |
| x_whoamiB | Return the authenticated X account. |
| x_countA | Count a draft's weighted length the way X does (URLs=23, emoji=2) against the account tier's limit (basic 280, premium 25,000). |
| x_preview_threadA | Split long text into thread posts WITHOUT posting. Use '---' on its own line to force a break. Always show this preview to the user before x_post_thread. |
| x_postA | Publish a single post to X. Only call after the user approved the exact text. Note: X only allows API replies (reply_to) to posts whose author mentioned or quoted you; for anyone else, give the user a draft to paste. |
| x_post_threadB | Publish a thread. Pass either |
| x_deleteC | Delete one of your posts by ID. |
| x_search_recentB | Search posts from the last 7 days (X API search syntax, e.g. '"my-repo" -is:retweet'). |
| x_mentionsB | Fetch recent mentions of the authenticated account (for drafting replies; never auto-reply). |
| x_metricsB | Get public metrics (likes, reposts, replies, impressions where available) for post IDs. |
| x_queue_addB | Schedule a post in the git-friendly queue file (x-queue.yaml). The GitHub Action publishes due items. |
| x_queue_listA | List scheduled posts in x-queue.yaml. |
| x_release_postA | Draft an announcement post from GitHub release notes (does not post). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| x_viral_post | A fully formatted, algorithm-aware X post package about a topic, for a basic or Premium account. |
| x_thread | Turn a README, blog post, changelog or notes into a thread (basic) or a long post (Premium). |
| x_premium_long_post | A skimmable long-form X post (Premium) whose first 280 characters hook on their own. |
| x_rewrite | Rewrite a draft for reach: stronger hook, reply-worthy ending, correct length for the tier. |
| x_repurpose_linkedin | Turn a LinkedIn post into a native X post or thread: shorter, punchier, no corporate tone. |
| x_quote | A quote post that adds your own insight to someone else's post (posted from the app if your API access can't quote). |
| x_dm_cta | A closing line that invites interested readers to DM you, plus reply drafts for the DMs that come in (never sent automatically). |
| x_reply | A short, specific reply that keeps a conversation going (for posts that mention you). |
| x_system_prompt | The full playbook as a system prompt for any model: hooks, algorithm signals, basic vs Premium formats, post package output. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| playbook | How to write posts X's ranking rewards, for basic and Premium accounts |
| skill-x-algorithm-optimizer | Score and rewrite X posts against the signals X's open-sourced ranking algorithm rewards (replies, author replies, profile clicks, dwell) and penalizes (mutes, reports, "not interested"). Use when the user asks how to get more reach, go viral, beat the algorithm, or optimize a draft. |
| skill-x-analytics-review | Review how the user's recent X posts performed and recommend what to post more or less of. Use when the user asks "how did my posts do", "what's working on X", or wants a weekly X report. |
| skill-x-content-calendar | Plan and schedule a week or month of build-in-public X posts for an open-source project or indie product. Use when the user asks for a content plan, posting schedule, or "help me post consistently on X". |
| skill-x-dm-funnel | Turn interested readers into conversations. Writes a low-pressure call-to-action that invites a DM, plus reply drafts for incoming DMs that the user sends by hand. Use when the user wants leads, beta testers, clients or community members from their X posts. |
| skill-x-niche-research | Research what works in the user's niche on X (hook patterns, formats, lengths, links, question endings) from search results, their own posts, or posts they paste, and turn it into a posting plan. Use when the user asks "what should I post", "what works in my niche", or wants to study successful accounts. |
| skill-x-post-formatter | Turn any idea, draft or source into a fully formatted, ready-to-paste X post package for the user's account tier (basic 280 or Premium 25,000), with hook options, first reply, media and timing. Use whenever the user wants a finished post, asks "format this for X", or mentions X Premium. |
| skill-x-premium-longform | Write long-form X posts for Premium accounts (up to 25,000 characters) that hook in the first 280 characters and stay skimmable to the end. Use when the user has X Premium and wants a deep dive, tutorial, story, launch write-up or "one long post instead of a thread". |
| skill-x-profile-optimizer | Audit and rewrite an X profile (bio, name, header, pinned post, link) so profile visitors become followers and project users. Use when the user asks to improve their X profile, bio or pinned tweet, or wonders why profile visits don't convert. |
| skill-x-release-announcer | Announce a new version of an open-source project on X from its GitHub release notes or CHANGELOG. Use when the user ships a release, tags a version, or asks to "announce v1.2". |
| skill-x-reply-assistant | Triage X (Twitter) mentions of the user's account or project and draft replies for approval. Use when the user asks to check mentions, handle feedback on X, or "reply to people talking about my repo". |
| skill-x-repurpose | Repurpose existing developer content (GitHub commits, PRs, issues, READMEs, blog posts, talks, YouTube transcripts, LinkedIn posts) into a batch of native X posts. Use when the user has content and wants posts from it, or asks "turn this into tweets". |
| skill-x-thread-writer | Turn a blog post, README, changelog, or rough notes into a high-signal X (Twitter) thread. Use when the user asks for a thread, tweetstorm, or "post this on X". |
| skill-x-viral-hooks | Write scroll-stopping first lines for X posts and threads using proven hook patterns adapted for developers and open source. Use when the user wants a better hook, opener, first tweet, or asks to make a post "more viral". |
TDQS
Scored across 13 tools
The posting tools are well separated: x_post vs x_post_thread vs x_queue_add are clearly distinguished by single/thread/scheduled, and x_search_recent vs x_mentions target different data. The main overlap is between x_format_post and x_count (both assess length/format) plus x_preview_thread, which all sit in the 'draft-prep, no posting' space, but descriptions resolve the confusion.
Consistent 'x_' prefix and mostly a verb_noun pattern (format_post, preview_thread, post_thread, search_recent, queue_add, queue_list, release_post). A few are noun-like or bare (whoami, count, mentions, metrics), a minor deviation but still uniformly readable.
13 tools is squarely in the well-scoped range for a Twitter/X engagement kit. Each tool covers a distinct operation—identity, prep, publish, delete, search, mentions, metrics, queue—so none feel redundant or filler.
The lifecycle is largely covered: whoami, draft/format, publish, delete, search, mentions, metrics, and a scheduled queue. Gaps remain around queue management (x_queue_list exists but no queue removal or cancel) and no thread-specific delete or own-timeline retrieval, but agents can work around these via x_delete on individual IDs.