Skip to main content
Glama

crw_parse_file

Parse a PDF document uploaded as base64-encoded bytes and return its content as markdown. Handles text-based PDFs but not scanned/image-only PDFs without OCR.

Instructions

Parse an uploaded document (PDF) and return its content as markdown. Pass the file bytes base64-encoded in contentBase64. Use this for local PDFs that have no URL. Scanned/image-only PDFs have no text layer (no OCR) and return a warning with empty markdown.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentBase64YesBase64-encoded bytes of the PDF file
filenameNoOriginal filename (optional; echoed in metadata.sourceFilename)
formatsNoOutput formats (default: ["markdown"]). json/summary require a server LLM.
jsonSchemaNoJSON schema for LLM-based structured extraction (when formats includes json)
parsersNoDocument parsers to apply (default: ["pdf"])
Behavior3/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 scanned/image-only PDFs return a warning with empty markdown, which is useful. However, it does not cover other behavioral aspects like file size limits, processing time, or error handling.

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 concise at three sentences, front-loaded with the main purpose, and contains no filler. Every sentence provides value, making it highly efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has 5 parameters with nested objects and no output schema, the description adequately covers the primary use case and a key limitation. However, it lacks details on output format structure and other format options (e.g., json, summary), leaving some gaps for agents.

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 the baseline is 3. The description adds minimal extra meaning beyond the schema, such as confirming that contentBase64 must be base64-encoded local file bytes. This is adequate but not exceptional.

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's purpose: parsing a PDF document and returning markdown content. It specifies the input format (base64 bytes) and distinguishes itself from sibling scraping/crawling tools by focusing on local file parsing.

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

Usage Guidelines3/5

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

The description gives some usage guidance by stating 'Use this for local PDFs that have no URL,' which helps agents decide when to invoke it. However, it does not explicitly exclude URL-accessible PDFs or mention alternative tools, limiting the guidance.

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