Razi Document Tools
Server Details
Document processing over MCP: merge, split and compress PDFs, run OCR, extract document text.
- Status
- Healthy
- Last Tested
- Transport
- Streamable HTTP
- URL
TDQS
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.
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.
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.
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 toolscompress_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.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
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.
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.
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.
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.
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.
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.
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | ISO 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
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.
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.
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.
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.
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.
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.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
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.
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.
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.
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.
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.
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.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
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.
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.
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.
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.
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.
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.
| Name | Required | Description | Default |
|---|---|---|---|
| ranges | Yes | Page 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
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.
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.
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.
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.
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.
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.
5 tool updates
- First observed
compress_pdf - First observed
extract_text_ocr - First observed
merge_pdf - First observed
parse_document - First observed
split_pdf
Frequently Asked Questions
Claiming proves that you control a remote MCP connector. It does not move, proxy, or interrupt the server.
Open the connector listing, choose Claim ownership, and sign in to Glama.
Complete one verification method:
GitHub identity – fastest for official registry listings. For a namespace such as
io.github.alice/server, link the matching GitHub user, then choose Claim with GitHub. An organization namespace such asio.github.acme/serveralso needs that organization to have installed the Glama AI GitHub App and approved its permissions, because GitHub discloses organization membership only to apps it has installed. Use HTTP or DNS when it has not.HTTP challenge – works when you can deploy a public file. Generate a token, publish the exact JSON Glama shows at
/.well-known/glama.jsonon the same origin as the connector, then choose Check HTTP challenge.DNS challenge – works when you control DNS but cannot change the server. Generate a token, create the exact TXT record Glama shows, wait for it to propagate, then choose Check DNS challenge.
After verification, Glama sends a confirmation email and gives you access to listing details, thumbnails, health checks, and analytics. Keep the HTTP file or DNS record in place: Glama periodically checks it and ownership remains verified while the token is discoverable.
The HTTP ownership file has this structure:
{
"$schema": "https://glama.ai/mcp/schemas/connector.json",
"claim": "glama_claim_..."
}Claim tokens are opaque, stable, and bound to the signed-in Glama account. They contain no email address or other personal information. If Glama can no longer discover a verified HTTP or DNS token, it starts a seven-day grace period before removing claim-based access. Restore the same token during that period to keep ownership verified. Never publish an email address, Glama session token, GitHub token, or connector credential as ownership proof.
If verification fails, confirm that you copied the current token exactly. The HTTP file must be public, return valid JSON with a successful HTTP response, and stay on the connector's origin. DNS changes may need more time to propagate. A claim cannot transfer to a different origin or hostname: if the connector target changes, Glama starts the grace period and the new target must be claimed separately after the previous claim is released.
For a connector linked to the official MCP Registry, registry updates continue to replace its name, description, and URL by default. After claiming, open Manage connector and enable Use Glama listing details as the source of truth if edits made on Glama should be preserved. Categories and thumbnails are always managed on Glama; registry linkage and technical connection settings continue to sync.
Control your server's listing on Glama, including description and metadata
Access analytics and receive server usage reports
Get monitoring and health status updates for your server
Feature your server to boost visibility and reach more users
To improve your MCP server's ranking:
Claim ownership of the server listing
Complete the server profile with an accurate description and thumbnail
Provide a test profile so Glama can connect to and evaluate the server
Keep tool definitions clear and complete to earn a high Tool Definition Quality Score (TDQS)
Route real usage through the Glama Gateway; more recorded successful server uses also improve the ranking
For users:
Full audit trail – every tool call is logged with inputs and outputs for compliance and debugging
Granular tool control – enable or disable individual tools per connector to limit what your AI agents can do
Centralized credential management – store and rotate API keys and OAuth tokens in one place
Change alerts – get notified when a connector changes its schema, adds or removes tools, or updates tool definitions, so nothing breaks silently
For server owners:
Proven adoption – public usage metrics on your listing show real-world traction and build trust with prospective users
Tool-level analytics – see which tools are being used most, helping you prioritize development and documentation
Direct user feedback – users can report issues and suggest improvements through the listing, giving you a channel you would not have otherwise
The connector status is unhealthy when Glama is unable to successfully connect to the server. This can happen for several reasons:
The server is experiencing an outage
The URL of the server is wrong
Credentials required to access the server are missing or invalid
If you are the owner of this MCP connector and would like to make modifications to the listing, including providing test credentials for accessing the server, please contact support@glama.ai.
Discussions
No comments yet. Be the first to start the discussion!
Related MCP Connectors
MCP server for the PDFGate API. Generate PDFs, manage documents and handle e-signatures.
Document-to-Markdown MCP server — convert PDF, Office and HTML into LLM-ready Markdown.
Privacy-first PDF tools over MCP: merge, split, rotate, delete, compress, protect, inspect.
Image processing over MCP: compress and split images, generate images and QR codes.
41
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables document conversion and processing through MCP, including Office/PDF/Markdown conversions, OCR, and PDF operations like split, rotate, encrypt, and extract.MIT
- FlicenseAqualityBmaintenanceDocument-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-
- AlicenseAqualityBmaintenanceWrite and read PDF documents via MCP: generate PDFs from HTML, URLs, or templates, and extract text from PDFs with OCR support.296MIT
- AlicenseBqualityDmaintenanceA universal MCP server for document processing, conversion, and automation. Handle PDF, DOCX, HTML, Markdown, and more through a unified API and toolset.1333139MIT