Skip to main content
Glama

convert_file

Convert files to Markdown format using Microsoft's MarkItDown library, supporting PDFs, Office documents, audio, and other formats for AI processing.

Instructions

Convert a file to Markdown using MarkItDown

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathNoPath to the file to convert
file_contentNoBase64 encoded file content (alternative to file_path)
filenameNoOriginal filename when using file_content
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool converts files to Markdown but doesn't reveal critical traits: whether it's read-only or destructive, authentication needs, rate limits, error handling, or output format details. For a tool with no annotation coverage, this is a significant gap in transparency.

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 a single, efficient sentence: 'Convert a file to Markdown using MarkItDown'. It's front-loaded with the core action and resource, with zero wasted words. Every part of the sentence contributes essential information (tool, action, target, method).

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

Completeness2/5

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

Given the tool's complexity (file conversion with alternative input methods), lack of annotations, and no output schema, the description is incomplete. It doesn't cover behavioral aspects like safety, performance, or output format, nor does it reference sibling tools for context. For a tool with these gaps, more detail is needed to be fully helpful.

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?

The input schema has 100% description coverage, clearly documenting all three parameters and their constraints (e.g., file_path vs. file_content/filename alternatives). The description adds no additional parameter semantics beyond what the schema provides, such as format support or conversion options. With high schema coverage, the baseline is 3.

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?

The description clearly states the tool's purpose: 'Convert a file to Markdown using MarkItDown'. It specifies the verb ('convert'), resource ('a file'), and target format ('Markdown'), distinguishing it from sibling tools like 'convert_directory' (which handles directories) and 'list_supported_formats' (which lists formats). However, it doesn't explicitly differentiate from 'convert_directory' in terms of scope, keeping it at 4 rather than 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention sibling tools like 'convert_directory' for batch processing or 'list_supported_formats' to check compatibility, nor does it specify prerequisites or exclusions (e.g., file size limits, supported formats). This lack of contextual direction leaves the agent to infer usage.

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/trsdn/markitdown-mcp'

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