Skip to main content
Glama

FMF Tools Doc Tools

pdf_split

PDF extract pages ($0.003 per call, paid via MPP on Tempo). Extract pages from a PDF into a new PDF. pages="1-3,5,last" (1-based; reverse ranges allowed). Returns application/pdf, or JSON with base64 when format=json. Up to 40 MB. HTTP POST https://mpp-docs.fmf-x402.workers.dev/mpp/pdf/split. This MCP wrapper does not settle payment by itself; call with an MPP Payment Authorization header, or use mppx against the HTTP route.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "pdf_split"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoPublic URL of the file
dataNoBase64 file content (alternative to url)
pagesNo1-based pages/ranges, e.g. "1-3,5,last"
formatNopdf
filenameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full behavioral burden and does so well: it discloses cost ($0.003 per call via MPP/Tempo), the 40 MB size cap, both return shapes (application/pdf or base64 JSON when format=json), and the critical caveat that the MCP wrapper does not settle payment itself. These are exactly the operational facts an agent needs before calling.

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 core action and the pages syntax are front-loaded, and each subsequent sentence carries distinct information (format, size limit, endpoint, payment). The mix of pricing, endpoint, and payment caveats is dense but none of it is filler for an agent that must actually make the call.

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?

There is no output schema, and the description correctly assumes that burden by naming both response types. Combined with size limits, auth requirements, and payment semantics, an agent has enough to invoke it correctly; only the filename parameter and any failure/error behavior are left unaddressed.

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

Parameters4/5

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

Schema coverage is 60%, and the description compensates well for the key parameter by explaining pages syntax (1-based, reverse ranges allowed, example "1-3,5,last") and tying format=json to base64 output. The url/data alternation is already in the schema and the filename parameter remains undocumented in both places, which keeps this below 5.

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 opens with a specific verb and resource: "Extract pages from a PDF into a new PDF," which tells an agent exactly what the tool produces. It does not explicitly contrast itself with siblings like pdf_merge or pdf_markdown, so it falls short of the top score that requires sibling differentiation.

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

Usage Guidelines4/5

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

It gives concrete invocation context: the HTTP route, the requirement to supply an MPP Payment Authorization header, and the alternative of using mppx against the HTTP route. It does not state when to prefer this over pdf_text or pdf_merge, but the usage context it does provide is clear and actionable.

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