analyze_and_suggest
Analyzes Markdown documents for heading hierarchy, format errors, content issues, and Chinese punctuation problems, then generates a structured report with line-specific suggestions.
Instructions
Analyze a Markdown document and generate modification suggestions.
Performs semantic analysis across six categories:
Heading hierarchy — skipped levels, missing/multiple H1, long titles
Required 公文 sections — expected elements in Chinese government docs
Format issues — broken image references, HTML table problems
Content issues — empty sections, placeholder text, duplicates, long paragraphs
Numbered list continuity — gaps and restarts in ordered lists
Chinese punctuation — half-width marks, missing sentence endings
Generates a structured report at <input_dir>/-修改建议.md with findings organized by category, each showing line numbers, severity, and specific suggestions.
Args: input_path: Absolute path to the input Markdown file.
Returns: Summary string with input path, suggestions file path, and issue count.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"input_path": "<input_path>"
},
"name": "analyze_and_suggest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |