Skip to main content
Glama

PDFWix

Remove pages from a PDF

remove_pages
Idempotent

Delete unwanted pages from a PDF and keep everything else. Accepts selections like "2, 5-7".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileYesA single input file, given as either an HTTPS url or base64 contents.
pagesYesPages to delete, for example "2, 5-7". Page numbers start at 1.
output_filenameNoName for the resulting file.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already carry idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description adds 'keep everything else' and a selection syntax example, but does not disclose output behavior or whether the original file is modified. No contradiction with annotations.

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?

Two short sentences, front-loaded with the core operation and scope; the selection example earns its place and adds useful usage detail without waste.

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 a 3-param tool with no output schema, the description plus rich schema and annotations covers selection syntax, input file, and safety. It could mention that a new PDF is produced, but output_filename in the schema implies it; still complete enough for invocation.

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 coverage is 100% and the schema already documents pages with the same example '2, 5-7'. The description repeats that example without adding new semantics for file or output_filename, so the 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?

States a specific verb ('Delete') and resource ('pages from a PDF'), and clarifies scope with 'keep everything else.' This clearly distinguishes it from siblings like reorder_pdf_pages or split_pdf.

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 description implies use when unwanted pages should be removed, but it never names alternatives or exclusion conditions. With siblings like reorder_pdf_pages and split_pdf, explicit routing would help; as-is, guidance is only implicit.

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