MCP server for fetching university exam results from CHARUSAT
The server defines a single tool 'fetch_result' with minimal quality. The tool has a description (68 chars) and one input parameter with a type and description. However, critical issues undermine production readiness: (1) The tool description is vague and lacks context about when/why to use it, 'Fetch exam results from CHARUSAT university by enrollment number' does not explain what data structure is returned, what happens on error, or prerequisites. (2) The input schema is trivial (single string parameter) with minimal validation, no format, length, or pattern constraints. (3) No output schema is documented; the function returns either a BeautifulSoup table object or a string error message, both unstructured and impossible for an LLM to parse. (4) Error handling is ad-hoc: the function returns raw HTML table objects or manual error strings without structure, guidance on recovery, or actionable next steps. (5) The tool hardcodes parameters (institute_value='21', degree_value='134', semester_value='5', exam_value='7148') that should be exposed as configurable parameters, reducing flexibility and reusability. (6) No pagination, no field documentation, no type hints on return values. The function signature uses `-> str` but actually returns mixed types (HTML table or string). (7) The implementation is tightly coupled to a specific university and exam configuration, not generalizable.
Fetch exam results from CHARUSAT university by enrollment number
No output schema documented. Function returns BeautifulSoup table object or string error, both unstructured. LLMs cannot parse the response or chain it to downstream tools.
Input parameter lacks constraints. 'enrollment_no' is a bare string with no length, format, or validation rules. No description of expected format (e.g., '7-digit alphanumeric').
Error handling is unstructured and non-actionable. Errors return bare strings like '❌ Result not found.' without guidance on recovery, retryability, or next steps.
Tool description is vague (68 chars) and lacks context. Does not explain return structure, error conditions, prerequisites, or when/why to call it. Baseline for A+ tools is 50-200 chars with WHAT/WHEN/WHY clarity.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 7 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 32 | - | v1 |
Hardcoded parameters (institute_value, degree_value, semester_value, exam_value) should be tool parameters to support different universities, degrees, and exams. Current design is not reusable.
Type hint mismatch: function signature declares '-> str' but returns mixed types (BeautifulSoup table object or string). This breaks type safety and LLM parsing.
No timeout or error handling for external HTTP calls. The requests.Session.get/post calls have no explicit timeout, which can leave the LLM hanging indefinitely.