Skip to main content
Glama
pdf4me
by pdf4me

delete_blank_pages_from_pdf

Remove blank pages from PDF files by specifying criteria: no text, no images, or both. Clean up documents automatically and save the result to disk.

Instructions

Delete blank pages from a PDF via PDF4me DeleteBlankPages (/api/v2/DeleteBlankPages). Provide pdf_file_path and delete_page_option (NoTextNoImages, NoText, NoImages). Saves cleaned PDF to disk.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
output_dirNo
pdf_file_pathYes
output_file_nameNo
request_doc_nameNo
delete_page_optionNoNoTextNoImages
Behavior2/5

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

No annotations are provided, so the description must carry the full burden of behavioral disclosure. It does mention 'Saves cleaned PDF to disk,' which indicates a side effect, but it does not clarify whether the original file is overwritten or a new file is created, nor does it mention permissions, rate limits, or other operational considerations. For a delete-like tool, more transparency is needed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences and 22 words, front-loaded with the primary action. It is concise and every sentence contributes useful information (what it does, parameter hints, and output behavior). No wasted words, though it could be improved by adding a structured list of parameters.

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

Completeness2/5

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

Given the tool has 5 parameters, no annotations, and no output schema, the description is incomplete. It fails to explain the output_dir, output_file_name, and request_doc_name parameters, and does not specify return values or behaviors like file naming, overwriting, or error handling. The description covers only the core purpose but leaves significant gaps for a tool of this complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has no descriptions (0% coverage), so the description must explain the parameters. It covers two of five parameters: pdf_file_path (the source PDF) and delete_page_option (with its enum values). However, it completely omits output_dir, output_file_name, and request_doc_name, leaving three parameters unexplained. This partial compensation is insufficient given the complete lack of schema descriptions.

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 clearly states the action ('Delete blank pages from a PDF') with a specific verb and resource, and importantly distinguishes this from sibling tools like delete_pdf_pages (which deletes specific pages, not blank ones). It also provides the API endpoint and relevant parameters.

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

Usage Guidelines2/5

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

The description explains what parameters to provide (pdf_file_path and delete_page_option) but gives no explicit guidance on when to use this tool versus alternatives. With sibling tools like delete_pdf_pages, it would be helpful to mention 'use this for blank-page removal, not for deleting specific pages.' The usage context is implied but not stated.

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/pdf4me/pdf4me-mcp'

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