Skip to main content
Glama

Server Details

Convert PDF, DOCX, HTML, and URLs to clean, LLM-ready markdown with tables preserved

Ownership verified
Status
Healthy
Uptime
100.0% over 22 days
Last Tested
Transport
Streamable HTTP · MCP 2025-11-25
URL
Repository
djrobson5/agentmd-mcp
GitHub Stars
0
Server Listing
agentmd-mcp

TDQS

A4.4/5.0

Scored across 2 tools

Disambiguation4/5

The two tools are clearly differentiated by input source: one accepts base64 file contents and the other fetches from a URL. Both produce markdown, but the names and descriptions make the distinction straightforward.

Naming Consistency5/5

Both tool names follow the exact same pattern: convert_<source>_to_markdown. This is highly predictable and consistent.

Tool Count3/5

With only two tools, the set feels minimal, but the narrow purpose of converting inputs to markdown justifies the small size. It is still borderline per the calibration scale.

Completeness4/5

The two primary input modes—local file contents and remote URLs—are covered, with support for partial reading and multiple formats. Minor gaps like direct raw text input or batch conversion are not needed for the apparent scope.

Available Tools

2 tools
convert_document_to_markdownConvert document to markdownAInspect

Convert a document you already have (PDF, DOCX, HTML, plain text) to clean, LLM-ready markdown. Pass the file contents as base64. Supports reading only part of a large document: PDF page ranges, a heading outline, a single section, or a token cap.

ParametersJSON Schema
NameRequiredDescriptionDefault
modeNo"full" (default) returns the document body. "outline" returns just the heading tree — each line is `- [#3] Heading text (~120 tokens)`. For a long document, call with mode: 'outline' first, then fetch only what you need with section: '#3' or a heading title.
pagesNoPDFs only: 1-indexed, inclusive page ranges to convert, e.g. "1-3,5,8-" (an open-ended range runs to the last page). Ignored with a warning for non-PDF formats.
base64YesBase64-encoded file contents
sectionNoReturn only one section: either "#<n>" using the index from a mode: 'outline' call (e.g. '#3'), or the heading text itself (case-insensitive; exact match wins, then prefix, then substring). Ignored when mode is 'outline'.
filenameNoOriginal filename, e.g. report.pdf — helps format detection
maxTokensNoCap the returned markdown at roughly this many tokens, cutting at a paragraph boundary. When the output is cut, the result starts with a `> Truncated: ~X of ~Y tokens` line — narrow with pages or section rather than raising this.

TDQS

A4.6/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses several behavioral traits: supports reading only part of a large document, PDF page ranges, heading outline, single section, token cap; pages are ignored with a warning for non-PDF formats; section matching is case-insensitive with exact/prefix/substring precedence; truncated output starts with a '> Truncated: ~X of ~Y tokens' line. This is rich behavioral disclosure. It doesn't mention error handling for invalid base64 or unsupported formats, but the disclosed behaviors are substantial.

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 two sentences, front-loaded with the core purpose and input method, then a compact list of partial-read capabilities. Every sentence earns its place. The schema's parameter descriptions carry the detailed semantics, keeping the main description lean. No fluff or repetition.

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?

For a 6-parameter tool with no output schema and no annotations, the description plus schema covers the key usage workflow, partial-read modes, and truncation behavior. The main gap is that the description doesn't state what the output looks like for a successful full conversion (e.g., does it return just markdown or a wrapper object?), and there's no mention of error cases like invalid base64 or unsupported file types. However, the schema's mode description gives a concrete example of the outline output format, and the truncation line is documented. This is nearly complete for an agent to call the tool 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?

Schema description coverage is 100%, so the baseline is 3. The description adds value beyond the schema by explaining the overall workflow (outline first, then section fetch) and by clarifying the truncation behavior and the 'narrow with pages or section' guidance. The schema already documents each parameter well, including the outline format and section matching precedence. The description's added value is moderate but meaningful, so a 4 is appropriate.

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 states a specific verb ('Convert'), the resource ('a document you already have'), the input formats (PDF, DOCX, HTML, plain text), and the output ('clean, LLM-ready markdown'). It also distinguishes itself from the sibling convert_url_to_markdown by emphasizing 'you already have' (local file contents passed as base64) rather than a URL. This is a clear, specific purpose statement.

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?

The description explicitly says to pass file contents as base64 and gives concrete usage guidance for large documents: call with mode 'outline' first, then fetch only what you need with section '#3' or a heading title. The schema's mode parameter description reinforces this workflow. It also tells users to narrow with pages or section rather than raising maxTokens. This is explicit when-to-use guidance with a clear strategy.

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

convert_url_to_markdownConvert URL to markdownAInspect

Fetch a URL (web page, PDF, DOCX, etc.) and convert it to clean, LLM-ready markdown. Extracts the main article content from web pages and preserves tables. Supports reading only part of a large document: PDF page ranges, a heading outline, a single section, or a token cap.

ParametersJSON Schema
NameRequiredDescriptionDefault
urlYesThe http(s) URL of the document or page to convert
modeNo"full" (default) returns the document body. "outline" returns just the heading tree — each line is `- [#3] Heading text (~120 tokens)`. For a long document, call with mode: 'outline' first, then fetch only what you need with section: '#3' or a heading title.
pagesNoPDFs only: 1-indexed, inclusive page ranges to convert, e.g. "1-3,5,8-" (an open-ended range runs to the last page). Ignored with a warning for non-PDF formats.
sectionNoReturn only one section: either "#<n>" using the index from a mode: 'outline' call (e.g. '#3'), or the heading text itself (case-insensitive; exact match wins, then prefix, then substring). Ignored when mode is 'outline'.
maxTokensNoCap the returned markdown at roughly this many tokens, cutting at a paragraph boundary. When the output is cut, the result starts with a `> Truncated: ~X of ~Y tokens` line — narrow with pages or section rather than raising this.

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses that web pages are stripped to main content, tables are preserved, page ranges are ignored for non-PDFs, section is ignored in outline mode, and truncation adds a marker line. These are specific behavioral traits beyond the schema, though error handling or invalid-URL behavior is not covered.

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 three sentences, each adding distinct value: core function, extraction behavior, and partial-reading options. It is front-loaded and contains no filler words or redundant phrasing.

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?

For a tool with 5 parameters and no output schema, the description explains the main behaviors and partial-reading workflow comprehensively. It does not cover error handling or edge cases like unreachable URLs, but the essential usage and behavior are clear enough for an agent to call it 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 schema already provides 100% parameter descriptions, including mode enum, page range format, section matching rules, and maxTokens truncation behavior. The tool description adds a valuable workflow suggestion (outline-first pattern) that supplements the parameter semantics and guides effective usage.

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 action (fetch a URL and convert to markdown) and resource (URL) with a specific output format. It distinguishes from the sibling by emphasizing URL-based fetching, and adds detail about content extraction and table preservation, making the purpose unambiguous.

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?

It provides concrete guidance on handling large documents (call with mode 'outline' first, then use section) and advises narrowing with pages or section instead of raising maxTokens. It does not explicitly mention the sibling tool as an alternative, but the URL focus strongly implies the tool's domain.

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 2 tool updates
    • Changedconvert_document_to_markdown4 fields changed
      • addedInput schema / properties / maxTokens
        Added value: +{
        +  "description": "Cap the returned markdown at roughly this many tokens, cutting at a paragraph boundary. When the output is cut, the result starts with a `> Truncated: ~X of ~Y tokens` line — narrow with pages or section rather than raising this.",
        +  "exclusiveMinimum": 0,
        +  "maximum": 9007199254740991,
        +  "type": "integer"
        +}
      • addedInput schema / properties / mode
        Added value: +{
        +  "description": "\"full\" (default) returns the document body. \"outline\" returns just the heading tree — each line is `- [#3] Heading text (~120 tokens)`. For a long document, call with mode: 'outline' first, then fetch only what you need with section: '#3' or a heading title.",
        +  "enum": [
        +    "full",
        +    "outline"
        +  ],
        +  "type": "string"
        +}
      • addedInput schema / properties / pages
        Added value: +{
        +  "description": "PDFs only: 1-indexed, inclusive page ranges to convert, e.g. \"1-3,5,8-\" (an open-ended range runs to the last page). Ignored with a warning for non-PDF formats.",
        +  "type": "string"
        +}
      • addedInput schema / properties / section
        Added value: +{
        +  "description": "Return only one section: either \"#<n>\" using the index from a mode: 'outline' call (e.g. '#3'), or the heading text itself (case-insensitive; exact match wins, then prefix, then substring). Ignored when mode is 'outline'.",
        +  "type": "string"
        +}
    • Changedconvert_url_to_markdown4 fields changed
      • addedInput schema / properties / maxTokens
        Added value: +{
        +  "description": "Cap the returned markdown at roughly this many tokens, cutting at a paragraph boundary. When the output is cut, the result starts with a `> Truncated: ~X of ~Y tokens` line — narrow with pages or section rather than raising this.",
        +  "exclusiveMinimum": 0,
        +  "maximum": 9007199254740991,
        +  "type": "integer"
        +}
      • addedInput schema / properties / mode
        Added value: +{
        +  "description": "\"full\" (default) returns the document body. \"outline\" returns just the heading tree — each line is `- [#3] Heading text (~120 tokens)`. For a long document, call with mode: 'outline' first, then fetch only what you need with section: '#3' or a heading title.",
        +  "enum": [
        +    "full",
        +    "outline"
        +  ],
        +  "type": "string"
        +}
      • addedInput schema / properties / pages
        Added value: +{
        +  "description": "PDFs only: 1-indexed, inclusive page ranges to convert, e.g. \"1-3,5,8-\" (an open-ended range runs to the last page). Ignored with a warning for non-PDF formats.",
        +  "type": "string"
        +}
      • addedInput schema / properties / section
        Added value: +{
        +  "description": "Return only one section: either \"#<n>\" using the index from a mode: 'outline' call (e.g. '#3'), or the heading text itself (case-insensitive; exact match wins, then prefix, then substring). Ignored when mode is 'outline'.",
        +  "type": "string"
        +}
  2. 2 tool updates
    • First observedconvert_document_to_markdown
    • First observedconvert_url_to_markdown

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    B
    maintenance
    Convert PDFs, Word documents, Excel/CSV files, and YouTube videos into clean, structured Markdown for AI agents, LLMs, and knowledge tools.
    -
  • A
    license
    Not graded
    quality
    A
    maintenance
    Converts documents (PDF, DOCX, XLSX, EPUB, etc.) to clean, structured Markdown, and retrieves document info, for use with AI agents.
    MIT
Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.