Claude Code 中文写作工具箱 — 文本分析 · 大纲生成 · GB/T7714引用 · 字频统计
Server has 4 tools with complete input schemas and descriptions. Naming follows verb_noun convention (analyze_text, generate_outline, format_gbt7714, count_frequency). Descriptions are present and contextual (avg ~150 chars), exceeding the 10-char minimum. All parameters have type definitions and descriptions. However, output schemas are not documented, LLMs cannot predict return structure. Error handling is minimal (no recovery guidance, no categorization). No tool annotations (readOnlyHint, destructiveHint). Parameter descriptions lack format constraints (e.g., 'accessDate' should specify ISO 8601). Tools are read-only but this is not declared via annotations.
分析中文/英文混合文本。返回 editorWordCount(与番茄/作家助手对齐的字数)、段落数、平均段长、预估阅读时间。适用于小说章节、论文章节的快速评估。
统计中文文本中汉字出现频率。返回频率最高的 N 个汉字及其出现次数和百分比。
将文献信息格式化为 GB/T 7714-2015 标准引用格式(中文毕业论文通用格式)。支持期刊论文、图书、学位论文、专利、标准、在线资源、会议论文。
根据主题生成结构化大纲。支持三种类型:paper(学术论文)、novel(小说)、business(商业计划书)。支持三级详细程度:brief(仅一级标题)、medium(二级)、detailed(三级)。
Output schemas not documented. LLMs cannot predict return structure (fields, types, nesting). analyze_text returns ~10 fields but no schema is visible in tool definition.
No tool annotations. All 4 tools are read-only but lack readOnlyHint annotation. Agents cannot distinguish safe tools from destructive ones without explicit hints.
Parameter format constraints missing. 'accessDate' in format_gbt7714 lacks ISO 8601 format hint. 'topN' in count_frequency has range (1-500) in description but not in schema minItems/maxItems.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 56 | 2026-07-28+ | v2 |
No error handling guidance. Tools return success or fail silently. No recovery hints (e.g., 'if text is empty, provide non-empty content'). No error categorization (retryable vs user-fixable).
Zod validation present in code but not exposed to LLM. Input validation (e.g., text.min(1)) happens server-side; LLM receives no schema constraints. JSON Schema should include minLength, enum, pattern.