A Twitter/X posting MCP server that enables AI agents to create and post tweets via the Twitter API v2
X Agent is a minimal Twitter integration with 2 tools that lack essential production-quality attributes. Tool descriptions are present but extremely sparse (10-50 characters). Parameter descriptions are entirely missing (null values visible in schema). No input validation, error handling guidance, or output schema documentation. The server exposes Twitter credentials via environment variables (correct pattern), but the tools themselves lack the descriptive richness and parameter documentation required for reliable LLM usage. This is a proof-of-concept, not production-grade.
Add two numbers
Create a post on X formally known as Twitter
All parameter descriptions are null/missing. LLMs cannot infer parameter semantics from names alone. For 'a' and 'b' in addTwoNumbers, the LLM has no guidance on valid ranges, precision, or units. For 'status' in createPost, no hint on character limits (280 chars for Twitter), required format, or content restrictions.
Tool descriptions are too short (10-50 chars) and lack WHEN/WHY context. 'Add two numbers' does not explain when to use this vs other arithmetic tools, what precision is returned, or error conditions. 'Create a post on X formally known as Twitter' lacks guidance on character limits, hashtag handling, or what constitutes a valid status.
No output schema documentation. LLMs cannot plan downstream operations if they don't know what fields are returned. Does createPost return a tweet_id, timestamp, URL, or just a success message? The response in mcp.tool.js shows {content: [{type: 'text', text: ...}]} but this structure is not declared in the tool schema.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 33 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 30 | - | v1 |
No input validation or error recovery guidance. If createPost receives a 300-character status, Twitter will reject it. If the API call fails, there is no error message telling the LLM whether to retry, ask the user for credentials, or abort. Pattern: recovery-guide.
Tool 'addTwoNumbers' naming is generic and lacks action verb clarity. Verb-noun pattern (e.g., 'add_numbers' or 'sum_numbers') would be clearer. Current name 'addTwoNumbers' is camelCase instead of snake_case convention and offers minimal semantic value over just 'add'.
No parameter constraints (min/max for numbers, length limits for strings, enums for restricted values). The 'a' and 'b' parameters have no minimum/maximum. The 'status' parameter has no character limit constraint, despite Twitter's 280-char limit.
createPost is a destructive operation (state-changing) but its tool description does not explicitly say so. LLMs need to know which tools are safe to retry and which have irreversible consequences. The risk is marked DESTRUCTIVE, but the description never mentions this.
No dry-run, confirmation, or idempotency support for createPost. Agents make mistakes, calling this tool without a safety gate could auto-post offensive or confidential content to a live Twitter account.