Skip to main content
Glama
MCP MDAST Server

MCP MDAST Server

by mako10k

mdast-analyze

Analyze Markdown from text, files, URLs, or MDAST to retrieve structure statistics, links, headings, and table-of-contents data for document review and validation.

Instructions

Analyze document structure and retrieve statistics. Supports structure/stats/links/headings/toc analysis. Input: text/file/url/mdast

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "mdast-analyze"
  }
}

Input Schema

NameRequiredDescriptionDefault
analysisNoList of analysis types to perform
markdownNoInput specification

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

B3.3/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 behavioral burden. "Analyze" and "retrieve statistics" implicitly signal a non-destructive read operation, which is valuable, but it says nothing about error handling, size limits, whether network fetches for the url source are constrained, or what each mode returns.

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?

Three compact sentences/fragments, front-loaded with purpose and analysis modes. The final "Input: ..." fragment is largely redundant with the schema, which is the only wasted element.

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

Completeness2/5

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

There is no output schema, so the description is the only place that could explain what each of the five analysis modes returns. It says "retrieve statistics" but gives no clue about the shape of structure, links, headings, or toc results, leaving a significant gap for a multi-mode tool.

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 both the analysis array and the nested input object are already documented in the schema. The trailing "Input: text/file/url/mdast" merely restates the source enum values rather than adding format, precedence, or default guidance beyond them.

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+resource combination ("Analyze document structure and retrieve statistics") and enumerates the five supported analysis modes, so an agent knows what it produces. It does not explicitly differentiate itself from siblings mdast-query and mdast-transform, leaving that distinction to the verb alone.

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?

The list of supported analyses implies when the tool is useful (structure, stats, links, headings, toc), but there is no explicit statement of when to prefer it over mdast-query or mdast-transform, and no exclusions or prerequisites. Usage is inferable rather than stated.

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