Skip to main content
Glama
takltc

markdown-new-mcp

by takltc

convert_file_to_markdown

Read-only

Transform local PDF, DOCX, XLSX, or image files into clean Markdown. Provide an absolute file path to process supported formats.

Instructions

Convert a local file to clean Markdown text. The path must be absolute and visible to the server process. Supports PDF, DOCX, XLSX, images, and 20+ formats.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_keyNoOptional markdown.new API key. Leave empty to use MARKDOWN_NEW_API_KEY from the server environment.
file_pathYesAbsolute path to a local file visible to this MCP server process.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.4

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, covering the safety profile. The description usefully adds the constraint that the path must be absolute and visible to the server process, but it never discloses that conversion apparently runs through the markdown.new external API (per the api_key parameter), which is the key behavioral fact implied by openWorldHint.

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?

Two tight sentences with the core purpose and the two most important constraints front-loaded; every clause carries information and there is no filler.

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?

With no output schema, the description does convey the return form ('clean Markdown text') and the supported formats, which is most of what an agent needs. It stops short of noting the external-service dependency or any failure modes for unsupported/oversized files.

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 100%, so both parameters are already documented in the schema. The description's format list (PDF, DOCX, XLSX, images, 20+ formats) is input-relevant context but not parameter-level semantics, so the baseline 3 applies.

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 (local file) plus the output form (clean Markdown text). The word 'local' plus the name clearly distinguishes it from the sibling convert_url_to_markdown and convert_url_to_json tools.

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?

Usage is implied by the 'local file' framing versus the URL-based siblings, but the description never explicitly says when to choose this over convert_url_to_markdown or convert_url_to_json. No prerequisites or exclusions beyond the absolute-path note.

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