Skip to main content
Glama
markdown-lint-mcp

markdown-lint-mcp

by dougis-org

fix_markdown

Automatically fixes all possible Markdown lint issues in a file against markdownlint, CommonMark, and GitHub Flavored Markdown standards, returning corrected content and saving it back by default.

Instructions

Automatically fix ALL possible Markdown issues and return the corrected 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": {
      "filePath": "<filePath>"
    },
    "name": "fix_markdown"
  }
}

Input Schema

NameRequiredDescriptionDefault
filePathYesPath to the Markdown file to fix
writeFileNoWhether to write the fixed content back to the file (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.4

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and leaves key traits unstated. Framing the result as 'return the corrected content' understates that the default behavior writes back to the file (writeFile defaults to true), and nothing is said about reversibility, backups, or what 'ALL possible issues' actually covers.

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 front-loaded sentence with no filler, and the core action plus return value come first. It is terse to the point of omitting important context, but there is no wasted wording to trim.

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

Completeness3/5

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

For a two-parameter tool with a fully documented schema and no output schema, the definition covers the essentials but not the risk profile. Given it is a mutating tool with no annotations, the missing disclosure of default file rewriting and the scope of automated fixes is a meaningful gap.

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 description coverage is 100%, so both filePath and writeFile (including its default) are already documented in the schema. The description adds no further meaning about the write flag or path expectations, so the baseline of 3 applies.

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

Purpose4/5

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

States a specific verb (fix) and resource (Markdown issues) plus the outcome (corrected content returned), which is enough to distinguish it from lint_markdown by intent. It stops short of explicitly contrasting itself with the linter sibling, so the differentiation is inferred rather than stated.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can guess this is the tool to run when it wants Markdown corrected rather than merely diagnosed. There is no explicit when-to-use/when-not guidance, no mention of whether lint_markdown should run first, and no warning that this may rewrite the file.

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

Deploy Server

Other Tools