Skip to main content
Glama

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

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations supplied, the description carries the full burden and does well: it lists each rewrite (heading space restoration, bullet marker conversion, trailing whitespace stripping with the two-space hard-break exception, blank-line collapsing, fence closure, final newline) and states it reports each edit by line. It does not mention idempotency guarantees or how the edit report is formatted, keeping it below a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single dense sentence front-loads the purpose before the transformation list, and every clause corresponds to a real behavior. It is long and comma-heavy, which slightly hurts scanability, but no sentence is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an eight-parameter text transformer with no output schema and no annotations, the description is complete enough to call correctly: it discloses the mutation scope, the code-block exclusion, and the per-edit line report. An agent knows what changes, what is preserved, and roughly what comes back.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so all eight parameters including the bullet enum and the default-true toggles are fully documented in structured fields. The description restates several of these behaviors (bullet markers, heading space, fences, final newline) but adds little syntax or format detail beyond the schema, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb+resource ('Normalize sloppy model-generated Markdown to one house style') and goes further to enumerate the exact transformations performed. It also carves out an explicit scope boundary ('leaving code untouched') that distinguishes it from a general converter like doc-to-markdown.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description establishes clear usage context: input is model-generated Markdown needing house-style normalization, and fenced code is excluded from rewriting. It does not explicitly name an alternative or say when not to use it, so it falls short of the 5 bar, but the intended situation is unambiguous.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources