Skip to main content
Glama

Parse PDF

crw_parse_file
Read-onlyIdempotent

Convert a base64-encoded PDF to markdown text. Scanned PDFs without OCR return empty markdown with a warning.

Instructions

Parse a local PDF (base64 in contentBase64) to markdown. No OCR: scanned PDFs return empty markdown with a warning.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
formatsNoOutput formats (default ["markdown"]); json/summary need a server LLM
parsersNoParsers to apply (default ["pdf"])
filenameNoOriginal filename (optional)
maxLengthNoMax chars per content field; 0 = unbounded (default ~15000)
jsonSchemaNoOptional. A JSON Schema (draft 2020-12) describing fields to extract when formats includes "json", e.g. {"type":"object","properties":{"title":{"type":"string"}}}. Free-form object.
contentBase64YesBase64-encoded PDF bytes
Behavior4/5

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

The description adds important behavioral context beyond annotations: that the tool does not perform OCR, and scanned PDFs result in empty markdown with a warning. This is not captured in the read-only or idempotent hints.

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 sentences are perfectly concise. The first sentence states the core function, the second adds a critical limitation. 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?

The description covers the main use case and a key limitation. It doesn't explain all output formats (e.g., json/summary need server LLM), but that detail is in the parameter schema. Given no output schema, it is mostly complete.

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 baseline is 3. The description adds value by explaining the input format (base64 PDF) and the limitation about OCR, which go beyond the schema descriptions.

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 verb 'Parse' and the resource 'local PDF', specifying the input as base64 and output as markdown. It distinguishes itself from sibling tools focused on crawling/scraping.

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?

The description implies usage for text-based PDFs by noting that scanned PDFs return empty markdown. It doesn't explicitly state when not to use or provide alternatives, but the context with sibling tools makes it clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/us/crw'

If you have feedback or need assistance with the MCP directory API, please join our Discord server