Skip to main content
Glama

Convert Markdown and HTML

convert_markdown_html
Read-onlyIdempotent

Convert GitHub-flavored Markdown to HTML, or HTML to Markdown. to is html or markdown. sanitize strips scripts from the text output. The conversion does not fetch a URL.

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": "convert_markdown_html"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNohtml
textNo# Hello
sanitizeNo

Output Schema

NameRequiredDescriptionDefault
outputYes
directionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, closed-world behavior, so the bar is lower. The description still adds real value by disclosing that sanitize strips scripts from the text output and that no network fetch occurs, which matters for security expectations and for choosing this over a fetching tool.

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?

Four short sentences, front-loaded with the core conversion and direction, and each sentence contributes new information (dialect, direction param, sanitize, no-fetch caveat). The phrasing 'to is html or markdown' is telegraphic but not costly.

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?

An output schema exists, so return values need not be described. The description covers direction, dialect, sanitization and the absence of network access, which is nearly everything needed; it stops short of saying whether sanitize also applies on the HTML-to-Markdown path.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry the parameter burden. It explains the `to` enum values and directional meaning, and explains what `sanitize` does to output; only `text` is left unmentioned, which is self-evident from the tool purpose.

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 gives a specific verb and both resources: 'Convert GitHub-flavored Markdown to HTML, or HTML to Markdown', and pins the Markdown dialect (GFM). The closing line 'The conversion does not fetch a URL' actively separates it from the fetch_page_markdown sibling without needing the schema.

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 implied rather than stated: because it 'does not fetch a URL', an agent can infer it should be used on text already in hand, and 'to is html or markdown' indicates the direction switch. There is no explicit when-to-use or when-not-to-use sentence naming the alternative for URL fetching.

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.