MCP server that provides tools for creating posts on X (Twitter) via the Twitter API v2, designed to be used with AI agents
Single tool 'createPost' has minimal definition quality. The tool is registered with a name and description, but the description is extremely generic and lacks critical context. The schema only defines one parameter with minimal guidance. No output schema is documented, no error handling guidance, no security considerations, and no idempotency guarantees are stated. The implementation shows plaintext tweet content acceptance without validation or injection protection, and credentials are managed via environment variables which is correct, but no per-tool security declarations or permission gates are present.
Create a post on X formally known as Twitter
Description is too generic and lacks context. 'Create a post on X formally known as Twitter' (40 chars) does not explain WHEN to use this tool, what the prerequisites are, whether it modifies state irreversibly, or what it returns. The description is below the baseline of 194 chars and provides no actionable guidance for LLM tool selection.
Parameter 'status' lacks a detailed description. The schema lists only 'type: string' with a minimal description 'The text content of the post to create'. No guidance on length limits, character restrictions, required format, or examples of valid/invalid inputs. This forces the LLM to guess about constraints.
No output schema is documented. The implementation returns a hardcoded text response 'Tweeted: {status}' but the LLM has no visibility into the structure of the return value. A documented schema (e.g., type, fields, example) is required so agents can parse and chain results.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 53 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 40 | - | v1 |
No error handling or recovery guidance. If the Twitter API call fails (authentication error, rate limit, network timeout, invalid tweet content), the error is unhandled and will not provide actionable guidance to the LLM about whether to retry, ask the user, or give up. See pattern:recovery-guide.
Irreversible write operation lacks confirmation or dry-run support. Creating a post on Twitter is destructive and persistent. The tool offers no confirmation step, dry-run preview, or safeguard against accidental posting of wrong content. Agents make mistakes, this pattern should support user confirmation.
No input validation or injection protection visible in the tool definition. The 'status' parameter accepts arbitrary strings with no apparent sanitization, length limits, or validation. Twitter has tweet length limits (~280 chars); if exceeded, the API will reject it silently without self-correction guidance for the LLM.
Tool name 'createPost' is clear but uses legacy Twitter terminology. The description says 'X formally known as Twitter' but the tool name uses 'Post' (Twitter term) not 'Tweet' (X term) or 'X' (new platform name). This inconsistency may confuse LLMs when reasoning about the tool's modern context.
No permission gates or scope declarations. The tool does not declare what permissions are required (e.g., 'write:tweets', 'post:social') or verify that the calling agent/user has authority to post. Nor does it document which scope the underlying Twitter API token must have.
No idempotency or retry safety documented. Twitter posts are created immediately and cannot be duplicated safely by retrying. If the LLM receives an ambiguous error and retries, a duplicate post could be created. The tool should either return a unique post ID for deduplication or document why it is not idempotent.