Skip to main content
Glama

FMF Tools Doc Tools

pdf_markdown

PDF to Markdown ($0.005 per call, paid via MPP on Tempo). Convert a PDF to clean LLM-ready Markdown with a layout-aware engine: correct word spacing (incl. LaTeX/arXiv papers), headings from font size/bold/section numbers, bullet and numbered lists, column-aligned tables, de-hyphenation, page markers. Optional pages="1-5". Up to 40 MB / 500 pages. HTTP POST https://mpp-docs.fmf-x402.workers.dev/mpp/pdf/markdown. This MCP wrapper does not settle payment by itself; call with an MPP Payment Authorization header, or use mppx against the HTTP route.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "pdf_markdown"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoPublic URL of the file
dataNoBase64 file content (alternative to url)
pagesNooptional 1-based pages, e.g. "1-5,8"
engineNolayout
filenameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it discloses the per-call price ($0.005), the payment mechanism, that the MCP wrapper does not settle payment itself, the required auth header, size/page caps, and the default engine. It stops short of covering failure modes, whether the URL must be publicly reachable (only stated in the schema), or rate limits.

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?

Front-loads price and purpose, then the capability list, then limits and endpoint, then payment caveat — a sensible priority order. The feature enumeration (spacing, headings, lists, tables, de-hyphenation, page markers) is long but each item is concrete and earns its place.

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 paid, remote-endpoint conversion tool with five parameters and no output schema, the description supplies pricing, auth, limits, engine default, and a proxy for the return format. The remaining gap is that one parameter (filename) and the non-layout engine mode go undocumented anywhere.

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 coverage is 60%, so the baseline is 3. The description reinforces the pages syntax ('1-5') and describes what the layout engine yields, giving some meaning to the engine enum, but it never explains the 'basic' engine or the 'filename' parameter, leaving real gaps in both structured and unstructured documentation.

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+resource ('Convert a PDF to clean LLM-ready Markdown') and immediately differentiates itself from siblings like pdf_text or pdf_images by naming the layout-aware engine and its output traits (headings, tables, de-hyphenation). An agent can tell what this produces without opening the schema.

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?

Gives operational context — optional page ranges, 40 MB / 500 page limits, and the engine choice — plus payment routing guidance (use an MPP Payment Authorization header or call the HTTP route with mppx). It does not explicitly say when to prefer this over pdf_text or doc_markdown-style siblings, so the routing signal is implied by 'LLM-ready Markdown' rather than stated as an alternative.

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.

Resources