Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OCRLAB_OUTNoThe directory OCR Lab writes to: its cache of read pages.~/.ocrlab
OCRLAB_TESSERACTNoPath to the Tesseract executable. By default OCR Lab finds it on the PATH or in the usual install folders.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
pdf_infoB

A PDF's page count, which pages have a text layer and which need OCR, and where Tesseract is.

read_pageB

One page's text and lines (boxes in PDF points, OCR confidence); with words, every word too.

read_pagesC

Several pages read and cached; each page's source, line count and mean confidence (read_page gives the text).

findC

Every line matching the pattern, with its page, box, confidence and the lines round it.

words_inC

The words inside a box on a page, in reading order: one column of a table read on its own.

read_imageC

An image file read by Tesseract: its lines (boxes in pixels) and their confidence.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3/5.0

Scored across 6 tools

Disambiguation4/5

Each tool has a fairly distinct role: pdf_info for metadata, read_page/read_pages for extraction, find for pattern search, words_in for box-scoped word retrieval, read_image for images. The only real overlap is read_page vs read_pages, but the descriptions explicitly clarify that read_pages returns metadata while read_page gives the actual text.

Naming Consistency3/5

There is a partial read_* convention (read_page, read_pages, read_image) but the remaining tools (pdf_info, find, words_in) break it, mixing noun-phrases and bare verbs. Names are readable and descriptive, but no single predictable pattern holds across the set.

Tool Count5/5

Six tools is a well-scoped set for a PDF/image OCR library, with no redundant or filler entries. Each tool maps to a clear capability without bloat.

Completeness4/5

Coverage spans metadata, single/multi-page reading, image OCR, pattern search, and box-level word extraction, which handles most OCR workflows. Minor gaps exist, such as no explicit export/save output or a tool to force/refresh OCR on a text-less page.

Maintenance

ActivityMaintained
ResponsivenessNo issues