Flask-based web server providing tools for fetching USD exchange rates, weather data, and news headlines
This server exposes three tools via Flask HTTP endpoints, but lacks proper MCP tool registration, structured schemas, and descriptions. Tool definitions are inferred from Flask routes rather than explicitly registered with the MCP protocol. Descriptions exist but are minimal (Russian text, <50 chars). Input schemas are either empty or incomplete: get_usd_rate and get_news have no parameters; get_weather has a city parameter but no type or description visible in the schema. No output schemas documented. Error handling is present in implementation but not surfaced to the LLM. The server is not an MCP server, it's a Flask app that happens to expose HTTP endpoints. No evidence of MCP protocol compliance (no tool registration, no structured responses, no error classification).
Функция для получения новостей за последние 7 дней
Функция для получения курса доллара
Функция для получения погоды
No MCP tool registration. Tools are Flask routes, not MCP-registered tools with schemas and metadata. Tool definitions are inferred from HTTP endpoints, not explicitly declared.
Input schemas missing or incomplete. get_usd_rate and get_news have empty input objects ({}). get_weather has a city parameter but no type annotation or description in the schema.
Descriptions are minimal and non-English. Tool descriptions are Russian text under 50 characters (e.g., 'Функция для получения курса доллара'). LLMs require English, detailed descriptions (50-200 chars) explaining WHAT, WHEN, and WHY.
No output schemas documented. Tools return HTML or JSON, but no structured schema is declared for the LLM to understand response fields and plan downstream calls.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 25 | 2026-07-28+ | v2 |
API keys hardcoded in source code. OpenWeather API key and NewsAPI key are embedded in server.py, violating secret-injection pattern. Credentials must use environment variables or vault.