A server to create drafts of X(twitter) posts, threads using LLMs and post directly from the chat.
This server presents a modest Twitter/X draft management interface with 5 tools. Tool definitions are present with schemas and descriptions, but there are multiple quality gaps limiting production readiness. All tools are explicitly registered in list_tools() with JSON Schema input definitions (src/x_mcp/server.py lines 49-112). However, descriptions are minimal (10-30 chars), parameter descriptions are sparse or missing, output schemas are undocumented, and error handling is basic. No tool annotations (readOnlyHint, destructiveHint, idempotentHint) exist despite clear risk levels (IRREVERSIBLE, DESTRUCTIVE). The naming is acceptable (verb_noun pattern) but lacks the context richness expected in production tools. Parameter validation is present in handlers but error messages are generic. Overall, the server is functional but underdeveloped for agent use.
Create a draft tweet thread
Create a draft tweet
Delete a draft tweet or thread
List all draft tweets and threads
Publish a draft tweet or thread
All tool descriptions are extremely brief (10-30 chars), below the 34-char baseline for p10 of production tools. Descriptions like 'Create a draft tweet' do not explain when to use this vs create_draft_thread, what the return value is, or what prerequisites exist.
Output schemas are completely undocumented. Tools return TextContent with type='text' and a string message, but there is no specification of what fields the LLM should expect in the response. For example, list_drafts should document the structure of the drafts list (fields per item, id format, timestamp format).
No tool annotations. publish_draft and delete_draft have IRREVERSIBLE and DESTRUCTIVE risk levels (stated in metadata) but are not marked with toolAnnotations like destructiveHint=true or idempotentHint. Agents cannot distinguish safe tools from risky ones at the protocol level.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 45 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 34 | - | v1 |
Error handling is generic and does not guide recovery. Handlers raise ValueError and RuntimeError with basic messages like 'Invalid arguments for create_draft_tweet' or 'Error creating draft tweet: {str(e)}'. According to pattern:recovery-guide, errors should tell the LLM what to do next and classify as retryable/user-fixable/fatal.
No confirmation/dry-run mechanism for irreversible operations. publish_draft and delete_draft can permanently modify or destroy data. According to pattern:confirmation-request, these should support a preview or confirmation step before execution.
The publish_draft tool accepts a draft_id parameter but has no validation that the draft exists before attempting to publish. If the ID is invalid, the error message will be opaque to the LLM. Error response should be 'Draft not found. Call list_drafts() to see available drafts.'
No pagination or result limits documented for list_drafts. If a user has thousands of drafts, the tool will load them all into memory and return them in a single TextContent response, potentially exhausting the context window. According to pattern:paginated-result, tools returning lists should support limit and offset/cursor.
Drafts are stored as local JSON files (drafts/ directory) rather than in a persistent backend. This makes the server stateful and non-portable. In a distributed or serverless environment, drafts created in one invocation may not be visible in the next.