Skip to main content
Glama

util_markdown

Read-only

Markdown to HTML — Render Markdown (CommonMark + GitHub tables, task lists, strikethrough, autolinks) to safe HTML offline. Raw HTML is escaped and javascript:/data: links are blocked, so the output is safe to insert into a page. Also returns a table of contents with heading ids and stats (words, reading time, links, images, code blocks, tables). Params: text (Markdown) or url (a .md file; GitHub blob links are converted to raw). Price: $0.001 USDC (Base, via x402).

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": {
      "text": "<text>"
    },
    "name": "util_markdown"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes# Release notes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is partly covered; the description still adds real value by disclosing that raw HTML is escaped, javascript:/data: links are blocked, and that a TOC with heading ids plus stats are returned. The $0.001 USDC x402 pricing note is useful operational context. Minor tension: it calls the tool "offline" while openWorldHint=true and a url fetch are supported.

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?

Front-loaded with the core verb and resource, then safety, then outputs, then params and price — a sensible ordering with little filler. The stats enumeration is slightly listy but each item is informative.

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?

With no output schema, the description correctly compensates by describing the return payload (HTML, TOC with heading ids, word/reading-time/link/image/code-block/table stats) and the sanitization guarantees. The only real completeness gap is the phantom `url` parameter that the schema does not support.

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

Parameters2/5

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

The schema has 100% coverage but only defines a single required `text` property, whereas the description advertises a second input, `url` (a .md file, with GitHub blob links converted to raw), that does not exist in the schema. That mismatch can lead an agent to pass a nonexistent parameter, which outweighs the modest clarification that `text` is Markdown source.

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?

States a specific verb and resource ("Render Markdown ... to safe HTML") plus the dialect supported (CommonMark + GitHub tables, task lists, strikethrough, autolinks) and the offline scope. An agent can distinguish this from web_markdown (page-to-Markdown) without opening a 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?

The "Params: text (Markdown) or url (a .md file; GitHub blob links are converted to raw)" line gives some input-selection guidance, and the safety note implies when the output is appropriate to embed. However, there is no explicit when-to-use/when-not guidance and no named alternative among the many util_* siblings.

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.

Resources