Skip to main content
Glama

WritersLogic verifiable AI agents

markdown-syntax-shaper

Normalize sloppy model-generated Markdown to one house style, leaving code untouched — Rewrites Markdown from a language model into a consistent style and reports each edit by line: restores the space in '##Title', converts '*', '+' and '•' bullets to your chosen marker, strips trailing whitespace (keeping two-space hard breaks), collapses runs of blank lines, puts blank lines around headings and fenced blocks, closes a fence left open at the end, and ends the file with one newline.

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": "markdown-syntax-shaper"
  }
}

Input Schema

NameRequiredDescriptionDefault
bulletNoMarker for unordered lists. Default '-'.
markdownYesMarkdown to normalize.
finalNewlineNoEnd with exactly one newline. Default true.
fixHeadingSpaceNoRestore the space in '##Title'. A lowercase '#tag' at level 1 is treated as a hashtag and left alone. Default true.
closeUnclosedFenceNoAppend the closing fence when the document ends inside one. Default true.
collapseBlankLinesNoCollapse runs of blank lines and drop leading and trailing blanks. Default true.
blankLinesAroundBlocksNoInsert a blank line around headings and top-level fenced blocks. Default true.
stripTrailingWhitespaceNoDefault true; a two-space hard break before more paragraph text is kept.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources