Skip to main content
Glama

lint_markdown

Lints local Markdown files for broken relative links, heading hierarchy, empty links, and README issues, without fetching external URLs.

Instructions

Lint a Markdown file for broken relative links, heading hierarchy, empty links, and common README issues. Local files only. Relative links are checked on disk; external http(s) links are not fetched.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filePathYesPath to a .md file.
readmeChecksNoEnable README-specific heuristics (default true for README* names).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose meaningful behavior: relative links are resolved on disk and external http(s) links are never fetched, which signals a purely local, network-free operation. It stops short of stating read-only nature, output/exit semantics, or failure behavior for an unreadable path.

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

Conciseness5/5

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

Three short sentences, front-loaded with the core purpose and checks, then the scope caveat. Every sentence earns its place with zero filler.

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?

The description covers what is checked and what is not fetched, which is the key scope question. But with no annotations and no output schema, it leaves the result shape and failure behavior unspecified, making it only minimally adequate for correct invocation.

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 parameters (filePath, readmeChecks) are already documented, including the README default heuristic. The description adds no parameter-level detail beyond what the schema provides, so the baseline 3 is appropriate.

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 (lint) and resource (Markdown file) plus the concrete checks performed: broken relative links, heading hierarchy, empty links, README issues. The single-file scope is clear, though it never explicitly distinguishes itself from the sibling lint_markdown_tree beyond the singular 'file' framing.

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?

'Local files only' and the note that external http(s) links are not fetched implicitly bound when the tool applies. However, there is no explicit contrast with lint_markdown_tree (whole tree/directory), so the agent must infer which tool to pick when both could apply.

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