MCP server for Electronic Health Record (EHR) integration providing patient demographics, vitals, medications, and medical history access with password-based security
EHR-Gateway has 5 tools with basic verb-noun naming (list_patients, get_patient_info, get_vitals, get_medications, get_history). All tools have short descriptions (10-50 chars) that lack depth, they state WHAT but not WHEN or WHY to use them. Input schemas are present with type definitions and parameter descriptions, but descriptions are minimal (e.g., 'The patient identifier' for patient_id). No output schemas documented. No error handling guidance. All tools are READ_ONLY, which is good for safety, but the server lacks composition guidance, pagination documentation, and field-level response documentation. Descriptions average ~35 chars (below the 194-char baseline for A+ tools). Parameter descriptions average ~25 chars (well below the 72-char baseline).
Problem / social / surgical history (limit=5)
Active medications
Get core demographics
Latest vitals (limit=3)
List all patient IDs
Descriptions are too brief (10-50 chars vs. 194-char baseline). They lack context for LLM tool selection. E.g., 'List all patient IDs' does not explain when to call this vs. get_patient_info, or what the response structure is.
Output schemas are not documented. LLMs cannot infer what fields to expect from list_patients (array of strings vs. objects?), get_patient_info (which fields?), or get_vitals (field names and types?). This forces agents to guess or make extra discovery calls.
Parameter descriptions are minimal (e.g., 'The patient identifier' for patient_id). They do not explain format, constraints, or whether IDs are opaque system IDs or human-readable names. LLMs cannot determine if they should pass 'P12345' or 'John Doe'.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 47 | 2026-07-28+ | v2 |
No error handling guidance. If get_patient_info receives an invalid patient_id, the code returns an empty dict {}. LLMs cannot distinguish between 'patient not found' and 'query succeeded but returned no data'. No recovery hints provided.
Pagination is mentioned in descriptions (e.g., 'limit=3', 'limit=5') but not formally documented. No total_count, next_cursor, or guidance on what happens if results exceed the limit. Large result sets could blow context windows.