MCP server for Nikola NewsAPI Test API with HTTP 402 payment protocol support
The server provides 3 tools with reasonable structure, but has significant gaps in parameter documentation, output schema specification, and error handling guidance. Tool names are clear and follow verb_noun patterns (search_everything, get_top_headlines, get_sources). Descriptions are present and adequate (100-150 chars), but parameters lack complete descriptions in the visible schema. Output schemas are not documented anywhere in the provided source. The payment integration (D402) is sophisticated but adds complexity without clear error recovery patterns. No evidence of input validation, constraint documentation, or error classification (retryable vs. fatal). The incomplete source code shows decorators and comments indicating implementation was partial, which masks full assessment.
Get the subset of news publishers that top headlines are available from
Get live top and breaking headlines for a country, category, or query
Search through millions of articles from over 80,000 sources with advanced filtering options
Output schemas completely undocumented. Tools return newsapi.org responses but no field descriptions provided. LLMs cannot infer what fields to expect (e.g., does search_everything return 'articles' array with 'title', 'url', 'publishedAt' fields?). This forces agents to guess field names and waste tokens on trial-and-error.
Parameter descriptions are incomplete or missing constraint information. 'page_size' lacks minimum/maximum bounds (max 100 mentioned in description but not in schema constraints). 'language' lists codes (ar, de, en...) in description but not as enum constraint. 'sort_by' has three options in description but no enum validation. Free-form strings invite hallucinated values.
No error handling guidance documented. What happens if the NewsAPI key is invalid? If rate limits are hit? If a query has no results? The code snippet shows @require_payment_for_tool decorator but no error messages explaining payment failures or retry guidance. Agents will receive 4xx/5xx responses with no actionable recovery steps.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 56 | <=2025-11-25 | v2 |
| 2026-03-09 | D | 51 | - | v1 |
Payment decorator integration adds complexity but lacks clear failure modes. @require_payment_for_tool raises questions: What does the LLM see on HTTP 402? Is the error response structured? Can the agent understand why a call failed due to insufficient payment vs. invalid input? No error schema or guidance provided.
Parameter naming ambiguity in search_everything. 'from' and 'to' shadow Python builtins and conflict with keyword argument syntax. While technically valid in modern Python, they are poor UX. Should be 'start_date' and 'end_date' to avoid confusion and improve readability.
No pagination guidance documented. Tools accept 'page' and 'page_size' parameters but no output specification of 'total_results' or 'has_next_page'. Without knowing if more results exist, agents cannot plan multi-page queries or know when to stop iterating.