Medical consultation assistant providing Western medicine and Traditional Chinese Medicine (TCM) advice and diagnosis
Two tools with identical parameter schemas and minimal descriptions. Both tools lack output schema documentation, error recovery guidance, and parameter constraints. Naming is acceptable (verb_noun pattern) but descriptions are generic and under 100 chars. No input validation, no enum constraints, no pagination support. Parameters lack detailed descriptions explaining format/constraints. Tool descriptions do not explain WHEN to use each tool (western vs TCM distinction is unclear to an LLM). No error handling guidance for API failures beyond raw exception strings.
提供中国传统中医相关的医疗建议和诊断
提供西医相关的医疗建议和诊断
Output schema not documented. Tools return raw string responses with no structure. LLMs cannot parse or validate results, and cannot extract IDs for chaining.
Parameter descriptions are missing or trivial. 'query' has no format guidance; 'conversation_id' and 'user_id' lack explanation of purpose or format. LLMs cannot determine when/how to populate optional params.
Tool descriptions (both ~60 chars) are too generic and do not differentiate use cases. 'Provides western medicine advice' vs 'Provides TCM advice' gives no guidance on WHEN to call each. LLMs will struggle to select the right tool.
No error handling guidance. Exceptions are caught and returned as raw strings ('Doctor API HTTP error occurred: 500 - ...'). LLMs receive no actionable recovery path, should specify retryable vs fatal errors.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 43 | <=2025-11-25 | v2 |
API key exposed in environment variable without server-side secret injection pattern. While not a parameter, the pattern is fragile and lacks audit logging for tool invocations.