Content hierarchy
content_hierarchy_checkCheck inverted-pyramid structure and heading usefulness. Give text (markdown-style # headings or 'h2:' prefixes), optionally keyTerms (what the reader must see early) and firstWords (default 40). Reports where each key term first appears and flags any after the first N words (if no key terms are given, the most repeated words are used and said so); lists the headings alone as the scan test; flags generic headings (Overview, Details), one-word or very long headings, skipped levels, duplicate headings, headings whose words never appear in their text, sections over 160 words, long first paragraphs and sentences, and openings that start with preamble. Position and pattern checks; it cannot judge whether the opening is the right content.
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": {
"text": "<text>"
},
"name": "content_hierarchy_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The content, with # headings | |
| keyTerms | No | Terms the reader must meet early | |
| firstWords | No | How many opening words count as early, 10 to 200. Default 40 |