Skip to main content
Glama

parse_pdf_stream

Parse a PDF file into JSON using configurable schemas. Output is delivered as a server-sent events stream for real-time processing.

Instructions

Parse one PDF as SSE stream through /api/v1/pdf/parse-stream.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pagesNo
use_ocrNo
pdf_pathYes
schema_idNo
max_eventsNo
ocr_engineNosurya
schema_jsonNo
schema_nameNo
response_modeNocompact
include_eventsNo
schema_templateNo
event_preview_charsNo
max_estimated_tokens_overrideNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

Description lacks behavioral details such as stream format, error handling, rate limits, or real-time behavior. With no annotations, the burden is on the description, which only states the function without disclosing important traits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is very concise (one sentence), but it sacrifices necessary detail. While it's efficient, it fails to provide adequate information for a tool with many parameters.

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

Completeness1/5

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

Given the tool's complexity (13 parameters, no schema descriptions, no annotations), the description is severely incomplete. It omits what the output stream contains, how to handle events, and how to configure parameters.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, and the description does not mention any parameters. The tool has 13 parameters, but no explanation of pdf_path, pages, use_ocr, etc., leaving the agent with no guidance beyond the schema.

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?

Description clearly states the tool parses one PDF as an SSE stream, specifying the API endpoint. This distinguishes it from siblings like parse_pdf_sync (synchronous) and submit_parse_batch (batch processing).

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 guidance on when to use this tool versus alternatives (e.g., parse_pdf_sync for synchronous needs, submit_parse_batch for batch). No prerequisites or context provided.

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/risha-max/0xpdf-mcp'

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