Skip to main content
Glama

FreeDailyPro PDF Tools

pdf_extract_pages

Read-onlyIdempotent

Extract specific pages from a PDF into a new PDF

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "fileBase64": "<fileBase64>",
      "pages": "<pages>"
    },
    "name": "pdf_extract_pages"
  }
}

Input Schema

NameRequiredDescriptionDefault
pagesYesComma-separated pages/ranges, e.g. '1,3-5,8'
fileBase64YesThe input file as a base64 string, without a data: prefix.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / fileBase64 / description
      Added value: +"The input file as a base64 string, without a data: prefix."
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already communicate read-only, non-destructive, idempotent, closed-world behavior, and the description adds that extraction produces a new PDF. It does not clarify the new PDF's return encoding, handling of invalid or out-of-range pages, or behavior for unusual page selections.

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 single short sentence front-loads the operation and output with no filler. It is appropriately sized for a simple two-parameter tool, although its brevity leaves room for additional selection guidance elsewhere in the definition.

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 simple two-parameter local transformation, fully documented inputs, safety annotations, and the stated new-PDF result are nearly enough to select and invoke it. Missing output representation and error or edge-case behavior prevent full completeness, especially because no output schema is present.

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%: pages documents comma-separated pages and ranges with an example, while fileBase64 specifies base64 input without a data: prefix. The description's “specific pages” adds no parameter syntax or constraints beyond the schema, so the baseline score applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb (“Extract”), resource (“pages from a PDF”), and result (“a new PDF”). It clearly conveys the operation, but does not explicitly differentiate it from related PDF tools.

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 wording implies use when only selected pages are needed rather than a whole-document operation. It provides no explicit when/when-not guidance or alternatives, leaving selection against siblings such as pdf_split or pdf_organize to inference.

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