Two tools with clear, action-oriented names (query_holiday, list_holidays) and reasonable descriptions (80 - 120 chars). Input schemas are present with proper JSON Schema structure and type declarations. However, parameter descriptions are minimal (10 - 20 chars), lacking guidance on format constraints, valid ranges, or error recovery. Output schemas are not documented, LLMs cannot predict response structure. Error handling exists but is generic ('参数错误') without actionable recovery hints. No tool annotations (readOnlyHint, idempotentHint) despite both tools being read-only and idempotent.
列出某一年(或全部已收录年份)的法定节假日安排,包括放假区间、天数与调休上班日。
查询某一天(YYYY-MM-DD)是法定节假日、调休上班日还是普通工作日。返回节假日名称、放假区间和该区间内的调休上班日。
Parameter descriptions are too brief (10 - 20 chars). 'date' param lacks format validation guidance; 'year' param lacks explanation of what happens when omitted. LLMs cannot infer constraints from names alone.
Output schemas are not documented. Callers cannot predict response structure (text field, isError flag, nested content array). LLMs must infer from examples, risking parsing errors.
Error messages are generic ('参数错误') without actionable recovery guidance. When date validation fails, the response should suggest the correct format or offer alternatives.
Tool annotations missing. Both tools are read-only and idempotent, these hints should be declared via readOnlyHint and idempotentHint to guide agent planning and retry logic.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 56 | 2026-07-28+ | v2 |
No pagination or result limits documented. list_holidays returns all years by default, if data grows, response could bloat. Should cap results and offer year-based filtering.