Skip to main content
Glama

Pdf Pages

pdf_pages
Idempotent

Extract pages from a PDF by 1-based ranges (e.g. 1-3,7) into a new PDF. Deterministic, $0.002.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesAbsolute http(s) URL of the input (web page or PDF, per tool)
pagesYes1-based page ranges, e.g. '1-3,7'
x_paymentNoOptional: base64 X-PAYMENT header value (x402 exact scheme, USDC on Base mainnet). Omit it to receive the payment requirements (accepts[] + docs) for this call without being charged.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / pages / description
      Added value: +"1-based page ranges, e.g. '1-3,7'"
    • addedInput schema / properties / url / description
      Added value: +"Absolute http(s) URL of the input (web page or PDF, per tool)"
  2. Added

TDQS

A4/5.0
Behavior4/5

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

The description adds 'Deterministic, $0.002', which is not in annotations, and clarifies that it creates a new PDF (non-destructive). Annotations already include idempotentHint and destructiveHint, so the description adds value by specifying determinism and cost, though it doesn't detail error handling or authentication requirements beyond the schema.

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?

The description is a single concise sentence that front-loads the action and output, followed by a brief note on determinism and cost. There is zero redundancy, and every phrase serves a purpose.

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 relatively simple tool with no output schema, the description adequately indicates the output (a new PDF) and mentions cost/determinism. It does not specify the exact return structure (e.g., URL vs. file) or potential edge cases, but given the tool's simplicity and the presence of schema descriptions, it is sufficiently complete.

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% with descriptions for all three parameters. The tool description reiterates '1-based ranges' but adds no new meaning beyond the schema. The description does not elaborate on 'url' or 'x_payment' beyond what schema provides, so it adds minimal value in parameter semantics.

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 states a specific verb ('Extract'), a resource ('pages from a PDF'), and the output ('a new PDF'). It clearly differentiates from siblings like pdf_merge (merging) and pdf_info (information extraction) by focusing on page-range extraction.

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 usage (extract specific pages) but does not explicitly contrast with alternatives or state when not to use it. It lacks explicit routing guidance such as 'use pdf_merge for combining PDFs' or 'use pdf_info for metadata'. The intended use case is clear, but no explicit when/when-not guidance is provided.

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