MCP server integrated with Google Generative AI (Gemini) that exposes tools and connects to external services like Twitter API
This MCP server has severe definition quality issues across both tools. Tool names lack action verbs and are insufficiently descriptive. Descriptions are present but minimal (under 50 chars each). Parameter descriptions are completely absent, the schema shows type information only (a: number, b: number; status: string) with no guidance on expected format, constraints, or usage context. One tool (createPost) is commented out, indicating incomplete implementation. No output schemas are documented. Error handling is absent from both tools. The server uses Zod for schema validation but does not leverage it to communicate constraints to LLMs (e.g., no enum for status choices, no min/max for numeric inputs, no regex patterns or length limits for strings). Overall, this reads like a minimal proof-of-concept rather than a production-ready tool suite.
Add two numbers
Create a post on X formally known as Twitter
Tool names do not start with action verbs. 'addTwoNumbers' and 'createPost' lack the verb_noun clarity pattern. 'add_two_numbers' (snake_case with explicit verb) and 'create_post' (verb_noun) would be stronger.
No parameter descriptions. Schema declares 'a: number' and 'b: number' but does not explain what these numbers represent, expected range, or constraints. 'status: string' for createPost has no guidance on length, format, character restrictions, or content guidelines. LLMs cannot infer intent from type alone.
Tool descriptions are too brief and lack context. 'Add two numbers' (14 chars) and 'Create a post on X formally known as Twitter' (44 chars) do not explain WHEN to call these tools, WHAT they return, or any prerequisites. Descriptions should be 50-200 chars with clear intent and usage guidance.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 30 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 32 | - | v1 |
No output schema documentation. Response objects hard-coded with 'text' content type but no formal schema describing fields, types, or structure. LLMs cannot plan downstream calls without knowing what data is returned.
No error handling or recovery guidance. Neither tool documents what happens on invalid input (e.g., non-numeric input for addTwoNumbers, oversized status for createPost). No actionable error messages or suggestions for retry.
createPost is commented out in server/index.js (lines show it registered but disabled). This suggests incomplete implementation and untested integration with Twitter API. Only addTwoNumbers is actually live.
No constraints on numeric parameters. 'a' and 'b' in addTwoNumbers have no min/max bounds. Could accept infinity, NaN, or extremely large numbers. Constraints should be explicit in both description and schema.
Twitter API credentials (appKey, appSecret, accessToken, accessSecret) are loaded from environment in mcp.tool.js but not protected by explicit parameter validation or secret injection guards in the tool definition. If createPost were enabled, this would be a security risk.