Model Context Protocol server for the Twitter API (twitterapi.io). Dynamically parses endpoint documentation and registers MCP tools for accessing Twitter API endpoints with proper schema validation and error handling.
This server has a critical architectural flaw: it exposes a SINGLE tool named 'dynamic_twitter_api_tools' with dynamically generated inputs. The tool definition itself is visible in src/server.js, but the actual endpoint tools are generated at runtime from markdown documentation files that are not provided in the source code excerpt. This means: (1) we cannot verify the actual tool names, descriptions, or schemas for any of the Twitter API endpoints, (2) the input schema is declared as 'dynamic' rather than a proper JSON Schema, (3) the tool lacks actionable descriptions for each generated endpoint. Per the hard scoring rules, tools whose definitions are inferred rather than directly visible are capped at 50. Since we can only see one wrapper tool that generates others at runtime, and that wrapper has no specific endpoint documentation visible, the definition quality score is severely depressed. The visible code shows proper use of zod for schema building and annotations (readOnlyHint, destructiveHint), but without access to the actual markdown endpoint docs, we cannot evaluate the quality of the individual generated tools. The architecture violates the principle that tool definitions should be explicit and verifiable at registration time.
Dynamically generated tool for Twitter API endpoints. Tool names follow the convention twitter_{resource}_{action} where resource and action are extracted from the endpoint route. Each tool corresponds to a parsed OpenAPI endpoint definition from the documentation files.
Tool definition is dynamic and inferred at runtime from undocumented markdown files. The actual endpoint tool names, descriptions, and input schemas are not visible in the source code provided. Per hard scoring rules, inferred tools are capped at 50; this tool scores lower because the wrapper itself provides no concrete schema.
Input schema declared as 'dynamic' type rather than a proper JSON Schema object with explicit type, properties, required fields, and descriptions. LLMs cannot parse 'dynamic' to understand what parameters are accepted.
Tool naming 'dynamic_twitter_api_tools' is generic and does not follow verb_noun convention. It does not start with an action verb (get_, search_, create_, etc.), making it unclear what the tool does. Generic names like 'tools' confuse LLMs about tool selection.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 12 | 2025-06-18+ | v2 |
| 2026-03-09 | F | 13 | - | v1 |
Tool description is 230+ characters but is generic and does not explain what specific Twitter endpoints are available, when to use this tool vs others, or what the response structure is. Description lacks actionable guidance for LLM tool selection.
Input schema documentation refers to 'dynamically generated' parameters without specifying: which parameters exist, their types, constraints, required vs optional status, or format. Descriptions are theoretical rather than concrete.
No output schema documented. LLMs have no way to predict the response structure of Twitter API calls, making it impossible to chain results into downstream tools.
The markdown docs/ directory referenced in code is not included in the source excerpt, so the actual endpoint definitions, parameter schemas, and descriptions cannot be evaluated. This violates verifiability.
No evidence of parameter-level validation or type checking visible in the dynamic tool definition. The api-client.js validateRequiredParams() function checks presence but not type, format, or enum constraints.
Error responses use formatErrorResponse() which returns text blobs rather than structured, actionable errors with recovery guidance. Errors like 'Invalid status: must be one of X, Y, Z' are absent, LLMs get generic error objects.