Skip to main content
Glama

imazeo_extract_pdf_pages

Extracts specified pages from a local PDF by uploading it to Imazeo, then saves the resulting PDF locally. May spend credits.

Instructions

Upload a local PDF to Imazeo to extract specified pages. May spend credits. Saves a PDF locally.

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": {
      "input": "<input>",
      "output": "<output>",
      "selection": "<selection>",
      "quoteId": "<quoteId>",
      "idempotencyKey": "<idempotencyKey>",
      "confirm": "<confirm>"
    },
    "name": "imazeo_extract_pdf_pages"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesFile path relative to IMAZEO_INPUT_DIR. Use forward slashes.
outputYesNew filename, including the media extension, under IMAZEO_OUTPUT_DIR.
confirmYesSet only after the user authorizes this action and the associated data transfer.
quoteIdYesUnexpired quote for the same operation, units and remote setting.
selectionYes
idempotencyKeyYesCaller-generated UUID v4. Retain it for recovery of this exact request.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, openWorldHint=true, and idempotentHint=false; the description adds genuinely new facts by warning it may spend credits and that a PDF is saved locally. However, it omits the user-authorization gate implied by the confirm parameter and says nothing about how the retained idempotencyKey enables recovery.

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?

Three short, front-loaded sentences with no padding, and the cost warning appears early where it matters most. The final clause about saving a PDF locally slightly duplicates the output parameter description but is cheap.

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?

This is a six-parameter, fully-required mutation with a credit quote, a mandatory user-authorization flag, and an idempotency key, yet the description never explains that flow. With no output schema and no mention of the quote-then-confirm contract, an agent calling this cold is likely to fail validation.

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 description coverage is 83%, so the schema already documents input, output, confirm, quoteId, selection, and idempotencyKey in detail. The description's 'specified pages' maps loosely onto the selection object but adds no format, range, or mode guidance beyond it; baseline 3 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?

States a specific verb and resource ('extract specified pages' from a local PDF) and names the remote service it uploads to, so the core action is unambiguous. It does not distinguish itself from adjacent PDF tools such as imazeo_inspect_pdf, imazeo_render_pdf, or imazeo_merge_pdfs, so an agent cannot rule those out from the text alone.

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?

'May spend credits' signals a cost gate, but there is no when-to-use guidance, no exclusion of sibling PDF tools, and no mention of the prerequisite quote/authorization sequence despite quoteId and confirm being required. The agent must infer the entire selection procedure from the schema.

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