Explainable AI system for clinical decision support with SHAP/LIME explanations, guideline validation, and audit logging
Medical XAI server has 7 tools with mixed quality. Three tools (health, model/info, compliance) lack parameter descriptions entirely. The predict tool has a well-structured input schema with proper constraints (age 0-120, enums for categorical features), but most tools lack output schema documentation. Descriptions are present but generic (e.g., 'liveness check', 'compliance summary'). No tool annotations (readOnlyHint, destructiveHint) despite all being read-only. Error handling is minimal, no recovery guidance or actionable error messages visible in code. Tool naming follows verb_noun pattern adequately but lacks clarity on when to use similar tools (e.g., audit vs compliance).
recent audit log entries
compliance summary
Return the ordered feature list and their acceptable ranges
liveness check
current model metadata
API connectivity check
run prediction + explanation with SHAP, LIME, clinical validation, and audit logging
Output schemas undocumented for 5 of 7 tools (model/info, compliance, ping, features, audit). LLMs cannot plan downstream calls or extract required fields without knowing response structure.
Parameter descriptions missing for health, model/info, compliance, ping. LLMs cannot infer parameter meaning from names alone. E.g., audit's 'limit' param has a description, but health/model/info have no params documented at all.
Tool descriptions are generic and under 50 characters (health: 'liveness check', compliance: 'compliance summary').
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 44 | <=2025-11-25 | v2 |
No tool annotations (readOnlyHint, destructiveHint, idempotentHint) despite all 7 tools being read-only. Agents cannot infer safety properties without explicit hints.
Error handling in code (api/app.py) returns generic HTTP status codes (400, 200) with minimal context. No recovery guidance (e.g., 'Invalid features. Call /features first to see acceptable ranges'). Agents cannot self-correct.