Skip to main content
Glama

convert_markdown_to_xlsx

Extract all HTML and Markdown pipe tables from a Markdown file and write each to a separate worksheet in an Excel (.xlsx) file, preserving merged cells, bold text, and alignment.

Instructions

Convert Markdown tables to an Excel (.xlsx) file.

Extracts every HTML and Markdown pipe table from the document (in document order) and writes each to its own worksheet. Preserves colspan/rowspan merged cells, inline bold, and text-align alignment.

Styling:

  • Font: 微软雅黑 (11pt body), thin borders on all cells

  • Header cells (HTML or the first row of a pipe table): bold + light gray fill

  • All cells: vertical center, wrap text

  • Column widths and row heights estimated from content

Args: input_path: Absolute path to the input Markdown file. output_path: Output .xlsx path. Defaults to /.xlsx. font_name: Optional font name override (default 微软雅黑). body_size: Optional body font size override (default 11).

Returns: Summary string with input path, output path, file size, and sheet count.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
body_sizeNo
font_nameNo
input_pathYes
output_pathNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

The description thoroughly discloses behavioral traits: it extracts tables in document order, creates separate worksheets, preserves styling (merged cells, bold, alignment), and details font, header, cell formatting, and column width estimation. Since no annotations are provided, this comprehensive disclosure fully covers the tool's behavior beyond what annotations would have provided.

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 exceptionally concise and well-structured: a brief overview sentence, bullet-pointed styling details, and a labeled Args section with clear parameter explanations. Every sentence adds value without redundancy, and the front-loaded overview immediately conveys the tool's core function.

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

Completeness5/5

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

Given the tool has 4 parameters and no annotations, the description is remarkably complete. It explains the conversion process, styling, default behaviors, and return value (summary string). With an output schema present, the description doesn't need to detail return values further, making this fully adequate for an AI agent to use correctly.

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?

The description adds significant meaning beyond the plain input schema: it explains input_path's purpose (absolute path to Markdown file), output_path's default calculation, and the optional overrides for font_name and body_size. With 0% schema description coverage, the description brilliantly compensates by detailing the exact role of each parameter, though it could link parameters to specific parts of the text more explicitly.

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 clearly states the tool converts Markdown tables to an .xlsx file, specifying both content sources (HTML <table> and Markdown pipe tables) and the output format (Excel). It distinguishes itself from siblings like convert_markdown_to_docx by focusing on .xlsx output.

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 description implies when to use this tool (when needing to convert Markdown tables to Excel), but doesn't explicitly state when not to use it or provide alternatives. However, the sibling list includes convert_markdown_to_docx, offering a clear differentiation without explicit when-not language.

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/fengredrum/md2doc'

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