prepare_article
Checks Markdown for Medium compatibility, cleans supported formatting, flags unfixable issues, and returns word count and reading time for paste-ready drafts.
Instructions
Check Markdown against what Medium supports and return a cleaned version.
Converts tables to aligned text, demotes extra/deep headings, turns checklists into emoji, and reports anything it can't fix (nested lists, footnotes, raw HTML, missing alt text, title length, tags). Also returns word count and reading time.
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": {
"markdown": "<markdown>"
},
"name": "prepare_article"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Up to 5 tags. | |
| title | No | Story title. Defaults to the first '# ' heading. | |
| markdown | Yes | The article body in Markdown. | |
| subtitle | No | One-line subtitle shown under the title. | |
| canonical_url | No | Original URL if this was first published elsewhere (protects SEO). |