Skip to main content
Glama

convert_document

Convert a document to Markdown synchronously (the fast lane).

Decode content_base64 (the raw file bytes, base64-encoded) and run markitdown over it, returning {markdown, meta} where markdown is the converted text and meta carries the source filename and the output length in characters. Best for small office/HTML/text files; for large or complex documents (or OCR-heavy PDFs) use submit_conversion_job instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filenameYes
content_base64Yes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

No annotations provided, so description carries full burden. It discloses the synchronous behavior, the conversion process (decode base64, run markitdown), and the exact return format {markdown, meta}. It does not cover failure modes or auth needs, but the described behavior is adequate for a converter tool.

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 concise paragraphs with clear front-loading. The first sentence states the core purpose, and the rest adds necessary detail. No wasted words.

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?

Given an output schema exists (so return structure is documented elsewhere), the description provides key context: synchronous execution, base64 decoding, markitdown usage, and sibling differentiation. It lacks detail on error handling or supported formats, but it's largely sufficient for a simple converter.

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?

Schema description coverage is 0%, so description must compensate. It explains content_base64 as 'the raw file bytes, base64-encoded' and filename as the source (appearing in meta). This adds meaning beyond the bare schema, though it could be more explicit about file format or size constraints.

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 'Convert a document to Markdown synchronously' and specifies it as the 'fast lane'. It distinguishes itself from sibling tools by naming the alternative for large/complex documents.

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

Usage Guidelines5/5

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

Explicit guidance: 'Best for small office/HTML/text files; for large or complex documents (or OCR-heavy PDFs) use submit_conversion_job instead'. This directly tells the agent when to use this tool versus the sibling.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A4.4/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: synchronous conversion, async job submission, and status polling. No ambiguity.

Naming Consistency5/5

All tools follow a consistent verb_noun snake_case pattern (convert_document, get_conversion_job, submit_conversion_job).

Tool Count4/5

3 tools is appropriate for a conversion service, covering the core workflow without being overly sparse.

Completeness4/5

Covers sync and async conversion with status checking; missing job listing or cancellation but sufficient for basic needs.