Skip to main content
Glama

split_pdf

Split a PDF by page range or every N pages, returning base64-encoded PDFs.

Instructions

Split a PDF by page range or every N pages. Returns array of base64-encoded split PDFs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_base64YesBase64-encoded PDF file to split
modeYesSplit mode: range (specific pages) or every_n (split every N pages)
pagesNoPage range string when mode is range, e.g. '1-3,5,7-9'
every_nNoSplit every N pages when mode is every_n
Behavior3/5

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

No annotations, so description carries full burden. States return format and splitting modes, but lacks details on error handling, file size limits, or behavior for invalid input.

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?

Single sentence, zero waste, front-loaded with verb and resource.

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

Completeness3/5

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

Adequate for a simple tool, but lacks usage guidelines and behavioral details. No output schema; description covers return type minimally.

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 covers all 4 parameters with descriptions. Description adds no extra semantic value beyond the schema; baseline 3 applies.

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?

Clear verb and resource: 'Split a PDF by page range or every N pages.' Distinct from sibling tools like merge_pdfs or compress_pdf. Mentions return type (array of base64-encoded PDFs).

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?

No explicit guidance on when to use vs alternatives. Implied context: when splitting a PDF. Does not specify prerequisites or limitations.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DrEjazAhmed/publicsofttools-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server