Skip to main content
Glama

Markdown Logic Express

convert_markdown

Read-only

Convert the complete supplied Markdown into PDF, DOCX, HTML or EPUB anonymously. No URL fetch, project access, account or OAuth grant. Limits: 128 KiB UTF-8 Markdown, 512 KiB request, 2 MiB file. Returns an embedded base64 file, not a hosted download. Existing renderer formatting/image limits apply; DOCX uses image placeholders.

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": {
      "markdown": "<markdown>",
      "format": "<format>"
    },
    "name": "convert_markdown"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatYes
imagesNoOptional relative-path keys and embedded PNG/JPEG/GIF data URLs. No remote URLs. Existing decode/pixel budgets may replace an image with its alt text.
optionsNo
filenameNo
markdownYesFull source, at most 131072 UTF-8 bytes. Never truncate to meet limits.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / options / properties / pageSize / enum
      Previous value: -[
      -  "A4",
      -  "Letter",
      -  "Legal"
      -]New value: +[
      +  "A3",
      +  "A4",
      +  "A5",
      +  "Letter",
      +  "Legal"
      +]
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the readOnly/non-destructive annotations by disclosing hard limits (128 KiB Markdown, 512 KiB request, 2 MiB file), the return shape (embedded base64, not a hosted download), and renderer caveats such as DOCX image placeholders and alt-text substitution. These are exactly the behaviors an agent needs before committing a large payload.

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?

Four tight sentences with zero filler; purpose and format list come first, then anonymity/constraints, then the return shape and limits. Every sentence carries distinct information.

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 stateless converter with no output schema, the description covers return format, size ceilings, and rendering caveats well. The one gap is the rich `options` object, whose dozen styling parameters get no explanatory treatment anywhere.

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 only 40%, so the description has to help — and it does clarify markdown size semantics and the images constraint (no remote URLs, possible alt-text fallback). However, the large nested `options` object (font, theme, margins, pageSize, watermark, TOC, etc.) and `filename` are never mentioned, leaving roughly half the surface undocumented outside the bare enum values.

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 (convert) and resource (supplied Markdown) plus the exact target formats (PDF, DOCX, HTML, EPUB). It also distinguishes itself from URL-fetching converters by saying 'No URL fetch', so an agent knows this only handles inline content.

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?

Gives clear context for when this applies: anonymous operation, no account, no OAuth grant, no project access, no URL fetch. There is no explicit routing to an alternative tool, but the exclusions effectively tell the agent when this tool is the wrong choice.

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