Medical consultation MCP server providing Western medicine and Traditional Chinese Medicine (TCM) diagnostic advice and treatment recommendations
Server has 2 tools with basic schemas and descriptions, but critical quality gaps prevent a higher score. Both tools are medical advisory endpoints with identical parameter signatures. Descriptions are present but generic (Chinese-language descriptions are ~50-60 chars). Schemas ARE visible and properly typed in the tool registration, which is a strength. However, error handling guidance is absent, output schemas are undocumented, parameter descriptions lack LLM-guidance details, and no recovery or confirmation patterns are implemented for a sensitive domain (medical advice). The tools lack any indication of limitations, disclaimers, or when NOT to use them, critical for medical safety. Tool names (western_doctor, tcm_doctor) use noun-only format rather than verb-driven naming (e.g., get_medical_advice_western, consult_tcm_doctor would be clearer). The server proxies to an external API (apusai.com) but does not validate or shape responses, leaving LLMs to parse unstructured 'answer' strings.
提供中国传统中医相关的医疗建议和诊断
提供西医相关的医疗建议和诊断
Tool names lack action verbs. 'western_doctor' and 'tcm_doctor' are noun-based and do not signal what action the tool performs. Verb-driven names (e.g., 'get_western_medical_advice', 'consult_tcm_practitioner') are self-documenting and help LLMs disambiguate intent at selection time.
No output schema documentation. Both tools return a string ('answer' field from the backend API), but the agent does not know the schema, length limits, format (plain text? markdown? HTML?), or what to expect on error. Response shaping is critical to guide LLM parsing and downstream reasoning.
Missing medical safety disclaimers and scope guidance in descriptions. These tools provide medical advice, a high-stakes domain. Descriptions should explicitly state 'This tool provides INFORMATIONAL advice only, not a substitute for professional diagnosis' and when NOT to use it. Current descriptions are purely functional.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 39 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 42 | - | v1 |
Parameter descriptions are minimal (e.g., 'conversation_id: 会话ID,可选'). They lack context for the LLM: What is the format? How should it be generated? Is it required for multi-turn conversations? Does omitting it reset context? These details are essential for proper tool use.
Error handling provides no recovery guidance. The doctor_answer() function catches HTTPStatusError, RequestError, and Exception, returning a generic error string (e.g., 'Doctor API HTTP error occurred: 500'). LLMs cannot reason about what to do next: retry? ask the user? This violates the recovery-guide pattern.
No dry-run or confirmation mechanism. Medical advice is irreversible once returned to the user. A confirmation_request pattern (e.g., 'Preview the advice before sending to user') is missing, preventing the agent from double-checking sensitive outputs.
No API key exposure check in tool parameters, but this is not a parameter issue; it's a server-side secret injection that is correctly implemented via os.environ.get(). However, the server does NOT validate that DOCTOR_API_KEY is present during FastMCP initialization, only during main(). This creates a risk of runtime failures.