Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PDF_TRIAGE_ROOTSNoDirectories the server may read. Corresponds to the --root option (repeatable). Separate multiple directories with the platform PATH delimiter (`:` on macOS/Linux, `;` on Windows). If not set, defaults to the current working directory.
PDF_TRIAGE_LOG_LEVELNoLogging level. Corresponds to --log-level. One of debug|info|warn|error|silent. Default: info.
PDF_TRIAGE_MAX_CHARSNoMaximum truncation ceiling for extracted text. Corresponds to --max-chars. Default: 40000. Max: 200000.
PDF_TRIAGE_MAX_FILE_BYTESNoLargest PDF file size in bytes to read. Corresponds to --max-file-bytes. Default: 104857600 (100 MB).

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
pdf_classifyA

Triage a local PDF without extracting its text (typically 10-50ms). Returns whether the document is text-based, scanned, image-based or mixed, a confidence score, and the exact 1-indexed pages that need OCR. ALWAYS call this before pdf_extract on an unfamiliar or large document: it is cheap, and it tells you whether local extraction is worth attempting at all. If it reports scanned, image_based, or encoding issues, do not extract — route the document to an OCR service instead.

pdf_extractA

Extract a local PDF to Markdown, preserving headings, lists and tables. Output is TRUNCATED by default to protect your context window — to read a long document, call repeatedly with the pages parameter rather than raising maxChars. Call pdf_classify first on unfamiliar documents. If the response carries a critical warning (encoding issues, no text layer, right-to-left script), the text is unreliable and must not be quoted as fact.

pdf_searchA

Find text inside a local PDF and return matching pages with surrounding context. Much cheaper than pdf_extract when you only need to locate something — use this first on long documents, then pdf_extract with the pages it reports.

pdf_tablesA

Return only the tables from a local PDF as Markdown, skipping prose. Useful for invoices, financial statements and reports where the numbers are the point. Tables are detected from the PDF's own drawing operations and text alignment — the cell values are read directly from the document, not guessed by a model or OCR.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/vishalmeena2211/pdf-triage-mcp'

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