Skip to main content
Glama

Razi Document Tools

Server Details

Document processing over MCP: merge, split and compress PDFs, run OCR, extract document text.

If you are the author of this connector, you can claim ownership with GitHub, an HTTP challenge, or a DNS record. Claimed connector authors can inspect health checks, view analytics, and manage their listing.
Status
Healthy
Last Tested
Transport
Streamable HTTP
URL

TDQS

A4.4/5.0
Disambiguation4/5

compress_pdf, merge_pdf, and split_pdf are clearly distinct PDF operations, and extract_text_ocr vs parse_document are carefully separated by pixel-based vs character-based input. The only mild ambiguity is that both extract text, so an agent might pause before reading the detailed boundary.

Naming Consistency5/5

All five tools follow a consistent lowercase snake_case verb_noun pattern: compress_pdf, extract_text_ocr, merge_pdf, parse_document, split_pdf. parse_document is slightly more generic than the PDF-specific names, but it still fits the same naming convention.

Tool Count5/5

Five tools is a well-scoped size for a focused document-processing server; each tool addresses a distinct operation and none is redundant. The set is compact enough for an agent to evaluate without overload.

Completeness2/5

The set covers PDF compression, merging, splitting, OCR, and plain-text extraction, but misses core document workflows such as extracting text from text-based PDFs, converting PDFs to images, or building PDFs from images. These gaps are highlighted by the descriptions themselves, which reference unavailable tools like pdf_to_images and images_to_pdf, causing common requests to dead-end.

Available Tools

5 tools
compress_pdfAInspect

Shrink a PDF's byte size while keeping it a PDF, for email limits or slow connections. Returns the compressed PDF. Ghostscript on razi.pro's worker downsamples embedded images at a fixed 'ebook' preset — lossy, with no quality knob. Compression is not guaranteed: if the worker is unavailable the fallback only rewrites the file with object streams, which typically saves almost nothing, and when nothing can be saved the original bytes are returned unchanged. This is for PDFs only — use compress_image for images and compress_video for video. Paid compute; 20 calls per hour per IP; a large file can take minutes. There is no upload channel over MCP: pass fileUrl, a URL in razi.pro's own storage (for example the url returned by upload_file); third-party URLs are rejected.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.2/5.0
Behavior4/5

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

The description is highly transparent about lossy compression, no quality knob, non-guaranteed compression, fallback to original bytes, and the lack of an upload channel. It loses a point because the mention of passing 'fileUrl' conflicts with the empty input schema.

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

Conciseness4/5

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

The description is front-loaded with the main purpose and is dense with useful details. It is somewhat long, but each sentence provides relevant operational context, so it remains reasonably concise.

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?

The description covers fallback behavior, limitations, alternatives, rate limits, and processing time, which is strong contextual coverage. It is not fully complete because the input schema is empty while the description implies a required fileUrl argument.

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

Parameters2/5

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

The description references a 'fileUrl' parameter and says 'pass fileUrl', but the input schema declares no properties and no required fields. This is a meaningful mismatch: the description adds parameter information that the schema does not support.

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 clearly states the tool compresses PDFs: 'Shrink a PDF's byte size while keeping it a PDF'. It is distinct from sibling tools like extract_text_ocr, merge_pdf, parse_document, and split_pdf.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives explicit usage guidance: 'This is for PDFs only — use compress_image for images and compress_video for video.' It also notes rate limits, paid compute, and fallback behavior, leaving little ambiguity about when to use it.

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

extract_text_ocrAInspect

Read text off an IMAGE by optical character recognition — photos, screenshots and scans. Returns JSON { text, language, confidence? }. Choose between this and parse_document by what the file contains, not its extension: OCR is for pixels of text and is a best-effort transcription that misreads under blur, skew or low contrast, whereas parse_document reads characters that are already stored as text and is exact. Prefer parse_document for a text-bearing file. Layout is not preserved — no tables, columns or coordinates, just a flat string. Paid compute; 20 calls per hour per IP. There is no upload channel over MCP: pass fileUrl, a URL in razi.pro's own storage (for example the url returned by upload_file); third-party URLs are rejected.

ParametersJSON Schema
NameRequiredDescriptionDefault
languageNoISO 639-2 style code for the language the recogniser should expect: eng English, ara Arabic, chi_sim Simplified Chinese, fra French, deu German, spa Spanish, jpn Japanese, kor Korean. Default eng. One language per call; naming the wrong one badly degrades accuracy.

TDQS

A5/5.0
Behavior5/5

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

No annotations provided, so description carries full burden. It discloses limitations (misreads under blur/skew/low contrast), output format behavior (flat string, layout not preserved), rate limit (20 calls/hour/IP), and access constraints (no upload channel, URL must be in razi.pro storage). Rich behavioral disclosure.

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?

Every sentence adds value. The description is dense but well-organized: purpose, comparison, limitations, and usage constraints. No fluff or redundancy.

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

Completeness5/5

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

Covers purpose, alternatives, input requirements, output shape (JSON with text/language/confidence), and constraints. Despite no output schema, the description gives enough context for correct invocation.

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

Parameters5/5

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

Schema covers 100% of the single parameter with a description, but the tool description adds significant meaning: ISO 639-2 style code, default eng, one language per call, and accuracy impact of wrong language. Goes well beyond the schema basics.

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?

States a specific verb ('read text off an IMAGE'), resource (image), and method (OCR), and explicitly contrasts with parse_document. Clear and distinguishes from siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly tells when to use this tool vs parse_document based on content type (pixels vs text) and even recommends preferring parse_document for text-bearing files. No ambiguity.

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

merge_pdfAInspect

Concatenate two or more PDFs into a single PDF, in the order supplied, and return the merged file. Page content is copied unchanged — it does not compress (use compress_pdf) or select pages (use split_pdf). Fewer than two files is rejected. Inputs must be PDFs; for a mix of images and PDFs use images_to_pdf, which runs in the browser only and is not available over this API. There is no upload channel over MCP: pass fileUrls, an array of URLs in razi.pro's own storage (for example the url returned by upload_file). Third-party URLs are rejected. Over the REST API the files may instead be attached as multipart/form-data. Limited to 20 merges per hour per IP.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A5/5.0
Behavior5/5

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

No annotations are provided, so the description carries the full burden, and it delivers: page content is copied unchanged, fewer than two files are rejected, third-party URLs are rejected, MCP has no upload channel, and there is a rate limit. These are behavioral facts an agent cannot infer from the schema or name.

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 long but every sentence earns its place, and the core behavior is front-loaded. It packs scope, alternatives, input constraints, security restrictions, API differences, and rate limits without redundancy.

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

Completeness5/5

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

Given there is no output schema and no annotations, the description covers all critical operational context: input form, ordering, copy behavior, exclusions, storage URL requirement, API channel difference, and quota. An agent has enough to decide whether and how to invoke this tool, with the only caveat being that the parameter is documented in prose rather than in the schema.

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

Parameters5/5

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

The input schema is empty, so the description is the only source of parameter meaning. It clearly specifies `fileUrls` as an array of URLs in razi.pro's own storage, gives an example source (`url` returned by upload_file), and states that third-party URLs are rejected. This more than compensates for the empty schema, although the schema/description mismatch itself is notable.

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 opens with a sharp verb-object pair: 'Concatenate two or more PDFs into a single PDF, in the order supplied.' It also explicitly distinguishes itself from compress_pdf and split_pdf, so an agent can tell exactly what this tool does and what it does not do.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives explicit when-to-use, when-not-to-use, and alternatives: 'it does not compress (use compress_pdf) or select pages (use split_pdf)' and 'for a mix of images and PDFs use images_to_pdf.' It also states hard rejection conditions, URL requirements, and the 20-merges-per-hour rate limit, giving the agent enough guidance to avoid invalid calls.

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

parse_documentAInspect

Read the text out of a document that already stores it as characters, and return JSON { text, metadata }. Exact, unlike extract_text_ocr, which guesses characters from pixels and should be used only for photos and scans. Support is currently narrow: only .txt works — it is decoded as UTF-8 and returned in full. Every other extension, including .pdf and .docx, is rejected with 400. PDF parsing is not implemented; for a scanned or image-based PDF use extract_text_ocr instead. The file type is decided by the filename extension, not by inspecting the bytes. 10 calls per minute per caller. There is no upload channel over MCP: pass fileUrl, a URL in razi.pro's own storage (for example the url returned by upload_file); third-party URLs are rejected.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and covers key behaviors: accepted file types, rejection with 400 for unsupported extensions, UTF-8 decoding, extension-based type detection rather than content sniffing, and the lack of an upload channel. It also discloses the rate limit and third-party URL rejection.

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

Conciseness4/5

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

The description is somewhat long but each sentence adds distinct, essential information about behavior, limits, or alternatives. There is minor redundancy (e.g., stating .txt-only support and then mentioning PDF parsing is not implemented), but no filler or irrelevant content.

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

Completeness5/5

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

Given the tool's limited scope and sibling context, the description is near-complete: it defines output, error behavior, file-type detection, URL requirements, rate limits, and the relationship to extract_text_ocr. An agent has enough context to select and invoke the tool correctly without additional documentation.

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

Parameters4/5

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

The schema declares no parameters, so the description is the only source of parameter information. It names `fileUrl` and explains its expected format and constraints (razi.pro storage, reject third-party URLs), though it does not formalize whether the parameter is required or list any other potential inputs. This is sufficient for an agent to pass the correct argument.

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 clearly states the tool's function: reading text from character-based documents and returning JSON { text, metadata }. It also explicitly contrasts this with extract_text_ocr, making the tool's niche unmistakable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit when-to-use and when-not-to-use guidance: use for text-based files like .txt, not for scanned/images or PDFs, which should go to extract_text_ocr. It also gives constraints on file URLs and rate limits, leaving no ambiguity about allowed usage.

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

split_pdfAInspect

Extract page ranges from one PDF into new PDFs. One output file is produced per range: a single range returns that PDF directly, several ranges return a ZIP containing one PDF each. Pages are copied verbatim — this does not reduce file size (use compress_pdf) or rasterise pages (use pdf_to_images). There is no upload channel over MCP: pass fileUrl, a URL in razi.pro's own storage (for example the url returned by upload_file); third-party URLs are rejected. Over REST the PDF may be attached as multipart/form-data. Limited to 20 splits per hour per IP.

ParametersJSON Schema
NameRequiredDescriptionDefault
rangesYesPage ranges to extract, 1-based and inclusive, one output file per entry. Use 'first-last' for a span ('1-2', '3-5'), a bare number for one page ('7'), or a comma-separated combination in one entry ('1-3,7'). Spans are clamped to the document length and pages that do not exist are dropped; an entry that selects no page produces no output file.

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden of explaining behavior, and it does so thoroughly. It discloses output multiplicity (one PDF per range vs ZIP for multiple ranges), verbatim copying, storage-URL restrictions, rejection of third-party URLs, REST multipart support, and a rate limit of 20 splits per hour per IP.

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 dense but every sentence earns its place: core purpose, output behavior, distinction from alternatives, transport requirements, and rate limit. It is front-loaded with the main action and avoids redundant restatements of the tool name.

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

Completeness5/5

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

For a tool with no output schema and no annotations, the description is remarkably complete. It explains return behavior (PDF vs ZIP), input requirements via fileUrl, REST alternative, when to use compress_pdf or pdf_to_images, and the rate limit, leaving the agent enough context to invoke the tool correctly.

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 schema already fully documents the `ranges` parameter syntax, clamping, and dropped pages. The description adds context about one output file per range and ZIP behavior, but that is more about output semantics than parameter semantics, so the baseline 3 is appropriate.

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 opens with a specific verb and resource: 'Extract page ranges from one PDF into new PDFs.' It clearly distinguishes the tool from siblings like compress_pdf by stating pages are copied verbatim and 'does not reduce file size (use compress_pdf)', making the purpose unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly tells the agent when not to use this tool and which alternative to pick: 'this does not reduce file size (use compress_pdf) or rasterise pages (use pdf_to_images)'. It also specifies the input requirement over MCP ('pass fileUrl') versus REST, so the agent knows exactly how to invoke it in the correct context.

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 5 tool updates
    • First observedcompress_pdf
    • First observedextract_text_ocr
    • First observedmerge_pdf
    • First observedparse_document
    • First observedsplit_pdf

Frequently Asked Questions

Discussions

No comments yet. Be the first to start the discussion!

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables document conversion and processing through MCP, including Office/PDF/Markdown conversions, OCR, and PDF operations like split, rotate, encrypt, and extract.
    MIT
  • F
    license
    A
    quality
    B
    maintenance
    Document-engineering MCP tool server providing tools for PDF, Office, Images, and Archives extraction and conversion. It never mutates source files and requires local tesseract for OCR.
    12
    -
Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources