Skip to main content
Glama

pdf-splitter

Extract pages into a new PDF

pdf_pages

Call this tool to pull selected pages into one new PDF, in the order written: "2,4-6" gives four pages. Asking for a page twice copies it twice. The input is never modified. Free tier: files up to 30 pages.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesName of an uploaded PDF (pdf_upload), or one this server wrote earlier
pagesYes1-based pages and ranges to keep, in output order, e.g. "2,4-6" or "5,1,1"
out_pathYesName for the extracted PDF; it comes back as a download link valid for one hour
overwriteNoReplace out_path if it exists. Default false

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

The annotations only provide generic hints, so the description adds meaningful behavioral context: the input is never modified, repeated page references are copied twice, and the free tier is capped at 30 pages. These details go well beyond the annotation flags and help an agent predict side effects and limits.

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?

Three compact sentences with no filler. The core instruction is front-loaded, and the example plus caveats are high-signal and directly useful for invocation.

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 the operation, page-selection rules, input safety, and a usage limit, while the schema documents all parameters and the download-link behavior. Naming sibling tools for routing would improve it further, but the current guidance is sufficient for correct usage.

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?

Schema coverage is 100%, so the baseline is 3. The description adds value by explicitly clarifying page ordering and duplicate-copy behavior for the 'pages' parameter, which complements the schema's examples rather than merely repeating them.

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 (pull/extract) and resource (selected pages into one new PDF), making the tool's function unmistakable. It is clearly distinct from sibling tools like pdf_merge, pdf_split, and pdf_reorder because it focuses on selecting existing pages into a single output PDF.

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

Usage Guidelines4/5

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

The opening phrase 'Call this tool to pull selected pages into one new PDF' gives an unambiguous use case. It does not explicitly name sibling alternatives or exclusion conditions, but the intended scenario is clear enough for an agent to select it correctly.

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.