Skip to main content
Glama
chupre
by chupre

recognize_pdf

Extract text from PDF documents (single or multi-page) using Yandex Vision OCR with asynchronous recognition. Supports models for page, table, handwritten, and markdown output.

Instructions

Recognize text in a PDF document (single or multi-page) using Yandex Vision OCR via asynchronous recognition (recognizeTextAsync + getRecognition polling). Use this for PDFs and large files. Provide a local file 'path' or 'base64' content, and pick a 'model' (default 'page').

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoAbsolute or relative path to a local file to read and OCR. Provide this OR 'base64'.
base64NoBase64-encoded file content. May be a data URI ('data:<mime>;base64,...'). Provide this OR 'path'.
mimeTypeNoExplicit MIME type override (e.g. 'image/jpeg'). Inferred from the file when omitted.
languagesNoRecognition languages (selectable). Use ['ru'], ['en'], or ['ru','en'] for mixed text. Defaults to ['ru']. This Yandex OCR endpoint does not support auto-detect.
modelNoRecognition model. 'page' (default): single-column printed text. 'page-column-sort': multi-column text. 'handwritten': mixed handwritten + printed (ru/en). 'table': tables (ru/en). 'markdown': printed text with Markdown output. 'math-markdown': math formulas (LaTeX in Markdown).page
formatNoOutput format. 'text' (default) returns recognized plain text. 'markdown' returns the model's Markdown output when available (markdown/math-markdown models), otherwise plain text. 'json' returns the full textAnnotation (blocks/lines/words/tables/markdown).text
Behavior4/5

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

With no annotations, the description transparently discloses the asynchronous recognition process (recognizeTextAsync + getRecognition polling) and language limitations (no auto-detect). This is adequate disclosure for a non-destructive read operation, though rate limits or size constraints are not mentioned.

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 two sentences, front-loading the core purpose and immediately following with usage guidance. Every sentence contributes essential information without redundancy.

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?

Given the tool's complexity (6 parameters, async polling, no output schema), the description covers the key behavioral aspects and parameter choices. It explains the async workflow and language limitations, but could have elaborated on the polling mechanism or return value format. Still, it is largely complete for an AI agent.

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 minor value by summarizing model purposes (e.g., 'page-column-sort' for multi-column text) and the choice between path and base64, but these details are already present in the schema. No significant new information is provided.

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 explicitly states it recognizes text in a PDF document using Yandex Vision OCR, with details on async processing. This clearly distinguishes it from the sibling 'recognize_text' tool, which likely handles non-PDF formats.

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 indicates use for PDFs and large files, providing context on when to apply it. While it doesn't explicitly list when not to use it or contrast with alternatives, the guidance is clear and sufficient for the intended use case.

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/chupre/yandex-vision-ocr-mcp'

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