x-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
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 |
|---|---|
| account_pulseA | The morning-briefing tool. Refreshes your identity + follower delta, pulls your recent posts with metrics (owned reads, $0.001 each) and computes per-post velocity and algorithm milestones (first favorite → out-of-network corpus, <1000 views → cold-start still live, 24h/48h windows), lists new mentions/replies you have not answered (API-replyable because they summoned you), shows the human handoff queue and pending approvals, and the month-to-date spend. Call this first in every session. Note: |
| post_performanceB | Pull current metrics for your posts (owned reads $0.001; set include_private_metrics for impressions/url clicks/profile clicks via the posts endpoint at $0.005/post, own posts ≤30 days only), append to the local snapshot history, and return velocity + milestones: whether the post has entered the out-of-network corpus (≥1 like within 24h), whether the cold-start lift is still possible (<1000 views, <24h, you ≤1k followers), the next power-of-two like milestone that triggers a re-index, and when it ages out (48h). |
| inboxA | Owned read ($0.001/item). Lists posts that @mention you or reply to you, newest first, with the author's follower band and connection status. Every item here summoned you, so the reply tool is allowed to answer it via the API. Prioritises: replies on your originals (each answered reply keeps the conversation alive — reply weight is the biggest realistic head), then mutuals, then large accounts. Lists unanswered items by default; each mention also updates the relationship ledger (people tool). Note: |
| conversationA | Fetch a post and the replies in its conversation (recent search |
| scoutA | Search recent posts (7-day window) with X operators, then rank the results as opportunities: author follower band (≤1k peers follow back; ≤60k replies are not LLM-scored; >60k they are), freshness, whether it ends in a question, engagement so far, and whether you already replied. Cold replies to these are NOT possible via the API on pay-per-use (X rejects un-summoned replies) — each result carries a one-tap intent link and you can push the best ones to the human with handoff(kind="cold_reply"). Public reads $0.005/post; hard-capped at 100 per call and deduplicated per UTC day. Default filters add |
| whoA | User lookup ($0.01). Returns follower band (peer ≤1k / mid ≤60k / large), connection status (following + followed_by = mutual → +15 reply weight on your originals for them), verified type, bio, and optionally their last few original posts ($0.005 each, capped at 10). Note: |
| publishA | 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 |
| replyA | Reply via the API. X's self-serve rule (since 2026-02-23): a programmatic reply is only accepted when the target post's author @mentioned you or replied to you — i.e. replies to your mentions and to replies on your own posts. Cold replies into strangers' threads are rejected by X; when that happens this tool files a handoff(kind="cold_reply") with a one-tap intent link instead. Enforces: one reply per interaction, copypasta similarity guard (COPYPASTA_SPAM), ≤12 replies/hour, budget ($0.01 summoned reply; $0.2 if it contains a URL). force=true skips the local checks but always routes through human approval (X_MCP_REQUIRE_APPROVAL or not). X's automation rules require prior approval for AI reply bots — keep X_MCP_REQUIRE_APPROVAL=true unless you have it. |
| repostA | Repost another post to your followers. Allowed on pay-per-use for informational sharing (no bulk). Reposts never travel out-of-network in For You and are ×0.75 in-network — use sparingly, mainly to amplify people who engaged with you. Throttled to 10/day. Cost $0.015. |
| delete_postA | Delete a post you authored (only posts this server knows as yours, unless force=true). Irreversible; in approval mode it is queued for the human. Cost $0.01. Deleting any version of an edited post deletes the whole edit chain. |
| dmA | Send a DM. X automation rules forbid unsolicited/bulk automated DMs: this tool only sends when the recipient has DM'd you first (checked via your DM events, $0.01/event read). force=true bypasses that check but always routes through human approval. Cost $0.015. Throttled to 5/hour. |
| handoffA | Manage the queue of actions only a human can do on a pay-per-use account (X removed follows, likes and quote-posts from self-serve on 2026-04-20 and rejects un-summoned replies since 2026-02-23).
|
| draft_checkA | Run the algorithm rules engine on a draft: weighted length (URLs=23), @-mention count vs the 2-mention spam trigger, URL cost ($0.2 vs $0.015), engagement-bait patterns (SPAM_HIGH_RECALL, no exemption), hashtag abuse, which ranking heads the text plausibly targets (copy-link 20 / reply 5→20 / quote 5 / follow 4 / like 0.5), and concrete suggestions. Iterate until score ≥ 80 with no warnings, then publish. Costs nothing. |
| spendA | What the account has spent on the X API this billing month according to the local ledger (mirrors X pay-per-use prices, with 24h-UTC read dedup), the remaining budget, the last 24h, and the price table. X does not expose a balance API; reconcile against console.x.com occasionally. |
| doctorA | Shows the stored OAuth token state, identity, granted scopes, effective config (secrets redacted), the rate-limit snapshot from this process, and the pay-per-use API boundary the tools enforce (what is API-doable vs human-handoff). Run when something fails. |
| approvalsA | Writes park here when approval mode is on (the default) or when |
| peopleA | Local, free. Every mention/reply you receive and every reply you send updates a per-person record (counts, follower band, mutual status, first/last seen, tags, notes). Actions:
|
| scheduleA | Queue publish calls for later. |
| insightsA | Free, local. Aggregates your own posts + metric snapshots (refresh them with post_performance) into the numbers a business would watch: originals/replies/threads, the share of originals that got a first like within 24h (the out-of-network door), median engagement and replies at 24h, reply rate on inbound, engagement by post kind and by experiment tag, best posting hours, top posts, follower deltas, handoff completion, spend per engagement, goal progress, and concrete advice. The more you tag posts (publish tags=[...]) and snapshot, the sharper it gets. |
| brandA | Free, local. The account's operating constraints that every session/agent should share: topical lane (the ranker keys on a consistent author identity + content neighbourhood), voice rules, banned words/phrases (draft_check and publish flag them), and goals (followers by date, originals per week) that insights/report track. Actions: get · set (merge) · check (a draft against the book). |
| ideasC | Free, local. Park post ideas with a source link, intended format and tags; list what is open; publish(idea_id=…) marks one used so the next session does not repeat it. Actions: add · list · drop. |
| agendaA | No network. Looks at unanswered inbound, due scheduled posts, whether the spacing window is open and how close the next best hour is, open ideas, people worth following back, stale metric snapshots, the human queue, and goal pace — and returns a prioritised list of concrete next calls. Call it whenever you finish a step. |
| reportA | Free, local. A markdown report for the human who owns the account — paste it into a DM/email/Notion or return it as the agent's weekly summary. Built from insights + people + handoff + goals. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| operate | The working loop for an agent running this account. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| playbook | How the X For You algorithm ranks and filters, condensed from the open-sourced code, as operating rules. |
| boundary | What the tools can do via the API vs what needs the human. |
| handoff | Pending human actions with one-tap intent links. |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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