Skip to main content
Glama
MCP MDAST Server

MCP MDAST Server

by mako10k

mdast-transform

Applies custom wrap, unwrap, rename, or clone transformations to Markdown AST nodes using CSS-like selectors, with text, file, URL, or MDAST input and configurable text, file, or MDAST output.

Instructions

Apply custom transformation logic. Supports wrap/unwrap/rename/clone operations. Input: text/file/url/mdast, Output: text/file/mdast

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": {
      "transforms": "<transforms>"
    },
    "name": "mdast-transform"
  }
}

Input Schema

NameRequiredDescriptionDefault
outputNoOutput destination specification
markdownNoInput specification
transformsYesList of transformations to apply

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

C2.9/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 burden. It discloses the input and output type options, which is useful, but says nothing about whether the source document is modified or a new tree is returned, how transformations are ordered or applied, or what happens when a selector matches no nodes. For a transformation tool the mutation semantics are the key unknown.

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 short, front-loaded sentences with no filler. The telegraphed 'Input: ... Output: ...' phrasing is dense but scannable and repeats nothing beyond the enum values.

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?

This is a complex tool: four transformation types, nested input/output specs, selectors, and no annotations or output schema to lean on. The description never explains what wrap versus unwrap versus clone actually do or how selectors are matched, leaving the agent to reverse-engineer behavior from the schema.

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% and the nested transform object documents every field, so the baseline is 3. The description only restates the input/output type enums that the schema already defines and adds no meaning about selector syntax, how wrapper/newType/depth interact, or ordering of the transforms array.

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 ('Apply ... transformations') on a specific resource (mdast) and enumerates the four supported operations (wrap/unwrap/rename/clone), which implicitly distinguishes it from the read-only siblings mdast-analyze and mdast-query. It stops short of explicitly contrasting itself with those siblings, so it is clear but not fully differentiated.

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

Usage Guidelines2/5

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

There is no guidance on when to reach for this tool versus mdast-analyze or mdast-query, nor on prerequisites such as whether the input tree is mutated in place. The operation list hints that this is the tool for modifications, but the agent must infer that.

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