Skip to main content
Glama

Markdown To Text

markdown_to_text
Read-onlyIdempotent

Convert Markdown to readable plain text (keyless, offline): strips headings, emphasis, code fences, and turns links/images into their text/alt. Ideal for de-formatting Markdown.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
markdownYesThe Markdown text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "markdown": "# Hello World\n\nThis is **bold** and *italic* text.\n\n[Visit Example](https://example.com)\n\n```code block```"
      +  },
      +  {
      +    "markdown": "## Section\n\nSome paragraph with a [link](https://example.org) and ![alt text](image.png)."
      +  }
      +]
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint, idempotentHint, destructiveHint). The description adds useful behavioral context beyond annotations: 'keyless, offline' discloses privacy/access requirements, and 'turns links/images into their text/alt' specifies transformation behavior. No contradiction with annotations.

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?

The description is two sentences, front-loaded with the main purpose, and every phrase adds value: the parenthetical 'keyless, offline' is a key differentiator, and the specific items stripped are concise and informative. No filler or redundancy.

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

Completeness4/5

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

For a simple single-parameter tool with safe annotations, the description covers the main transformation behaviors and output ('readable plain text'). It could specify edge-case handling (e.g., lists, blockquotes) but given the low complexity and existing structure, it is sufficiently complete.

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% and the parameter 'markdown' is already described as 'The Markdown text.' The description does not add parameter-specific details (e.g., format limitations) beyond what the schema provides, so the baseline of 3 is appropriate.

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 uses a specific verb ('Convert') and resource ('Markdown to readable plain text'), and enumerates exactly what it strips ('headings, emphasis, code fences') and how it handles links/images ('text/alt'). This clearly differentiates it from sibling extraction tools like extract_headings and extract_links.

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 phrase 'Ideal for de-formatting Markdown' gives a clear use-case context, implying when to choose this tool. However, it does not explicitly mention alternatives or exclusions, so it falls just short of a 5.

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.