Skip to main content
Glama

Razi Document Tools

split_pdf

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. Over MCP you receive a link to the stored output rather than its bytes, and that link keeps working for roughly a day. Pages are copied verbatim — this does not reduce file size (use compress_pdf) and it cannot rasterise pages into images, which is a browser-only feature of razi.pro. Every output stays a PDF. There is no upload channel over MCP: pass fileUrl, a URL in razi.pro's own storage; third-party URLs are rejected. Obtain one by uploading the PDF over the REST API first, where it may instead be attached as multipart/form-data. Limited to 20 splits per hour per IP.

Input Schema

TableJSON 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.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.9/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 behavioral disclosure. It covers output format (single PDF vs ZIP), link-based delivery with roughly one-day expiry, verbatim page copying, no size reduction, no rasterization, upload restrictions, and rate limits. This is exceptionally transparent for a tool with zero annotation coverage.

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 carries distinct, non-redundant information. It front-loads the core purpose, then efficiently covers output format, delivery mechanism, behavioral limitations, upload constraints, and rate limiting. No sentence is wasted.

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?

Despite having no output schema, the description fully explains what the agent will receive (link vs bytes, ZIP vs PDF, expiry). It also covers prerequisites (REST API upload, fileUrl format) and constraints (third-party URLs rejected, rate limit). For a single-parameter tool, nothing needed for correct invocation is missing.

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 already describes the ranges parameter in full detail (100% coverage), so the baseline is 3. The description adds meaningful context beyond the schema by explaining that multiple ranges produce a ZIP and that a single range returns that PDF directly, clarifying how the parameter's cardinality affects the result.

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 states the tool's core function and distinguishes it from siblings by explicitly noting that it does not reduce file size (compress_pdf) and cannot rasterize pages (a browser-only feature).

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 and when-not-to-use guidance: use compress_pdf for size reduction, and rasterization is browser-only. It also specifies the required input source ('fileUrl' in razi.pro storage, obtained via REST API) and notes the 20-splits-per-hour rate limit, so an agent knows exactly what to prepare and expect.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources