Skip to main content
Glama

Benchline

Split a PDF

split_pdf
Read-onlyIdempotent

Extract a page range into one PDF, or split into single pages or chunks of N. Send base64 or a public URL. Private addresses are refused. Returns PDF base64 and a ZIP when there are several files.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoPublic URL of a PDF. Private and local addresses are refused. Provide data or url.
dataNoPDF bytes as base64 or a data URI. Decoded size is capped at 10 MB. Provide data or url.
modeNoextract
nameNodocument.pdf
everyNoUsed when mode is chunks.
rangeNoPages to keep, such as 1-3,5. Blank keeps every page.
filenameNo
mimeTypeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
zipYesZIP of the PDFs when there is more than one, otherwise null.
filesYes
pageCountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint, so the description only needs to add operational context — and it does: private/local addresses are refused (SSRF guard) and the response is PDF base64, with a ZIP when multiple files are produced. The 10 MB size cap lives in the schema rather than the description, but the behavioral picture is largely complete.

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?

Four short sentences, each carrying a distinct fact — capability, input format, security constraint, output shape — with the primary capability front-loaded. No filler or restated title text.

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?

For an 8-parameter transformation tool with an output schema, the description covers what matters: the three modes, both input channels, the address restriction, and the return shape (even though the output schema already documents it). Only the range syntax and the third-tier naming parameters are left entirely to the schema.

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?

With 50% schema coverage, the description must carry the unexplained parameters, and it does: it clarifies that 'every' governs chunk size, that 'range' is what gets kept, and that input is either base64 data or a public URL. It adds nothing for 'name', 'filename', and 'mimeType', but the goal-relevant parameters are all covered.

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?

Specific verb (extract/split) plus resource (PDF) plus the three operating modes named up front: page range, single pages, chunks of N. An agent can distinguish this from merge_pdf, compress_pdf, and organize_pdf without opening a schema.

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

Usage Guidelines3/5

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

The mode semantics ('extract a page range', 'single pages', 'chunks of N') imply which option to pick for a given goal, but there is no explicit when-to-use-vs-alternatives guidance. Nothing points the agent to merge_pdf or organize_pdf, nor states when this tool is the wrong choice.

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