Skip to main content
Glama
Image and PDF OCR MCP Server

Image and PDF OCR MCP Server

OCR images and PDFs

ocr_images_and_pdfs
Read-onlyIdempotent

Extract text from images and scanned PDF pages by URL with open source OCR; returns per-page text, word and line counts, and confidence, and reads existing PDF text layers directly.

Instructions

Read text from images and scanned PDF pages by web address with open source OCR. Returns one row per image or page with the text, word and line counts, and a confidence score. PDF pages that already hold text are read from that text.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ocr_images_and_pdfs"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlsNoWeb addresses of PNG, JPEG, GIF, WebP, BMP, or TIFF images, or PDF files, up to 30 MB each. The address must answer without a login. In Clay, put the column in a one item list.
languageNoLanguage of the text: eng (default), deu, fra, spa, nld, ita, or por. One language per run; run files in another language as a separate run.
max_filesNoFiles to read in this run, up to 1,000. Default 100.
page_layoutNoauto (default) finds columns and blocks, which suits letters, articles, and scans. block reads the page as one block of text. sparse finds scattered text, which suits receipts, forms, signs, and screenshots.
max_charge_usdNoOptional. The run stops before a charge that would pass this amount. Summary rows are always returned.
max_pages_per_fileNoPages to read per PDF, from page 1, up to 100. Default 10. This caps the charge per file.
use_pdf_text_layerNoyes (default): a PDF page that already holds text is read from that text, charged as page-text, which is cheaper and exact. no: every page is read by OCR and charged as page-ocr.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

The annotations already declare this is a read-only, idempotent, non-destructive open-world operation. The description adds useful behavior beyond that: it returns one row per image or page with text, word and line counts, and a confidence score, and it explains that PDF pages with an existing text layer are read from that text rather than OCRed.

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 three tight sentences with no wasted wording. It is front-loaded with the core purpose, followed by return behavior and a special PDF text-layer detail.

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?

With seven parameters, full schema coverage, and no output schema, the description does a good job of explaining the return shape and the PDF text-layer behavior. It does not mention cost-related behavior despite the presence of charge and page-limit parameters, but those are covered in the schema.

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 all seven parameters are already documented in the schema. The description does not add parameter-specific syntax, format, or constraints beyond what the schema provides, which is the baseline expectation when the schema is fully covered.

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?

The description states a specific verb and resource: read text from images and scanned PDF pages by web address using open source OCR. It is clear what the tool does, though there are no sibling tools to distinguish it from.

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?

Usage is implied by the purpose: it handles images and scanned PDF pages supplied as URLs. There are no explicit when-to-use or when-not-to-use guidelines, and no alternatives are named, but with no sibling tools the context is reasonably clear.

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

Deploy Server

Other Tools