Skip to main content
Glama

convert_to_discord

Idempotent

Format Markdown for Discord compatibility, converting headers to bold/underline syntax that renders correctly. Preserves code blocks, tables, and math expressions. Returns formatted text or writes to file.

Instructions

Convert Markdown to Discord-compatible format. Transforms headers to styled bold/underline text that renders correctly in Discord messages. Code blocks and basic formatting are preserved.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
markdownYesThe raw Markdown source text to convert. Supports GitHub-Flavored Markdown (tables, task lists, strikethrough) and KaTeX math expressions. Pass the full document content as a string, not a file path.
output_pathNoOptional. Absolute or relative file path (e.g. './output.txt') where the result will be saved. Parent directories are created automatically. If omitted, the converted text content is returned directly in the response as a string. If provided, the file is written to disk and a JSON summary with { success, file_path, file_size_bytes, format } is returned instead.
Behavior4/5

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

Annotations declare idempotent/non-destructive, but description adds valuable behavioral specifics: headers become bold/underline, code blocks are preserved, and basic formatting is maintained. This disclosure of specific transformation logic is exactly the context annotations cannot provide. No contradictions 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?

Three sentences with zero waste: purpose statement, specific transformation detail, preservation guarantee. Every sentence earns its place. Well front-loaded with the core action in sentence one.

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?

Appropriate for a format-conversion tool with 2 parameters and no output schema. Covers input expectations and transformation behavior. Missing only documentation of the return value duality (file vs. string) which is a significant behavioral gap given the output_path parameter exists.

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?

With 100% schema coverage, baseline is 3. Description implicitly reinforces the 'markdown' parameter by mentioning GFM features (tables, headers) but does not explicitly walk through parameters or add syntax guidance beyond the schema. Notably omits mention of the output_path parameter's dual-behavior (file write vs. string return).

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?

Clearly states the verb (Convert), source (Markdown), and target format (Discord-compatible). The mention of 'headers to styled bold/underline' specifically signals Discord's limitations, distinguishing it from siblings like convert_to_html or convert_to_slack. Could be 5 if it explicitly contrasted with the many other conversion tools available.

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?

Provides implicit usage guidance by specifying 'renders correctly in Discord messages,' which signals when to select this over other converters. However, lacks explicit when-not-to-use guidance or sibling comparisons despite having 20+ conversion alternatives. Does not clarify when to use output_path vs. receiving direct string output.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/XJTLUmedia/MCP_Markdown_Formatter'

If you have feedback or need assistance with the MCP directory API, please join our Discord server