Skip to main content
Glama

export_document

Convert Markdown and DOCX documents to each other's format, preserving structure and comments. Raises clear errors for unsupported conversions.

Instructions

Convert the document to another supported format ('markdown'|'docx').

Conversion goes through the normalized model: markdown->docx builds a fresh Word file (headings, lists, tables, comments); docx->markdown serializes parsed blocks back to Markdown. Unsupported pairs raise a clear export_error listing supported conversions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
titleNo
output_pathNo
target_formatYes
include_commentsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses that conversions go through a normalized model, explains how each direction works ('builds a fresh Word file' vs 'serializes parsed blocks'), and states error behavior ('raise a clear export_error listing supported conversions'). This goes beyond a simple 'convert' statement and gives the agent a realistic expectation of side effects.

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?

The description is two sentences, front-loaded with the core purpose. Every sentence earns its place—the second sentence adds valuable implementation detail. No fluff or redundant phrasing, making it efficient and readable.

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

Completeness3/5

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

An output schema exists, so the return format is presumably covered. However, the description leaves key parameters undefined and does not specify default behaviors (e.g., what happens if output_path is omitted, whether include_comments affects both directions). Given the tool's moderate complexity and the presence of five parameters, these gaps prevent it from being complete.

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?

Schema description coverage is 0%, so the description must compensate. It only references target_format indirectly ('markdown'|'docx'), but does not explain the roles of 'path', 'title', 'output_path', or 'include_comments'. The parameter names might hint at their function, but the description offers no elaboration. This is a significant gap for an agent to call the tool correctly.

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 starts with a clear verb and resource: 'Convert the document to another supported format'. It explicitly names the two supported formats, distinguishing this from all sibling tools which are read, search, or edit operations. The unique purpose is unmistakable.

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?

While the description does not explicitly contrast with alternatives, the sibling list confirms no other tool handles format conversion. The stated purpose makes the usage context evident. It also warns about unsupported pairs, giving an implicit hint that this is the only conversion tool. No explicit when-not guidance, but it's not needed given the clear distinction.

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/xyyyang97/doc-agent-mcp'

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