Skip to main content
Glama

Convert PDF to Markdown

pdf_to_markdown
Read-onlyIdempotent

Convert a PDF (base64-encoded bytes) to Markdown, one section per page.

Input Schema

NameRequiredDescriptionDefault
max_pagesNoMaximum pages to extract (default 100).
pdf_base64YesThe PDF file contents, base64-encoded.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare the full safety profile (readOnly, idempotent, non-destructive, closed-world), so the description is not carrying that burden. It does add the useful output shape ('one section per page'), but says nothing about failure modes (encrypted, scanned, or malformed PDFs), rate limits, or size constraints beyond the schema default.

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?

A single sentence, front-loaded with the action and resource, with no filler. It earns its place by also conveying the per-page output structure.

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 two-parameter conversion tool with a full output schema and complete safety annotations, the only real gaps are edge-case behavior (scanned PDFs, encryption) and when to prefer a sibling. Everything strictly needed to invoke it correctly is present.

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. The description only restates the base64 input encoding, adding no format, size, or interaction detail beyond what the schema provides — baseline 3 applies.

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?

States a specific verb (Convert) and resource (PDF to Markdown) plus the output granularity ('one section per page'). Format specificity implicitly separates it from ocr_image, parse_spreadsheet, and url_to_clean_text, though no sibling is named to make the boundary explicit.

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?

No when-to-use guidance, no alternatives, no exclusions given. The most relevant ambiguity for an agent — whether a scanned/image PDF should go here or to ocr_image — is left unaddressed, so routing must be inferred purely from the name.

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