Skip to main content
Glama

FMF Tools Doc Tools

pdf_merge

PDF merge ($0.005 per call, paid via MPP on Tempo). Merge 2-20 PDFs (JSON {urls:[...]} or {files:[{data}]}, or multipart files) into one PDF in the given order. Returns application/pdf, or JSON with base64 when format=json. Up to 20 MB each, 30 MB total. HTTP POST https://mpp-docs.fmf-x402.workers.dev/mpp/pdf/merge. 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_merge"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlsNoPDF URLs in merge order
filesNo
formatNopdf

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does it well: it discloses pricing ($0.005/call via MPP on Tempo), that the MCP wrapper does not settle payment by itself and requires a Payment Authorization header, the concrete endpoint URL, and per-file (20 MB) and total (30 MB) size limits. Gaps remain around failure behavior and whether fetched URLs must be publicly accessible without authentication.

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?

Dense but front-loaded: the operation, the input shapes, the return format, the limits, and the payment requirement each appear in a short ordered sentence. The endpoint URL and payment plumbing are verbose but operationally necessary given the lack of annotations.

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-parameter tool with no output schema and no annotations, the description covers return values, transport, pricing, and size constraints, which is most of what an agent needs to invoke it. The unresolved file-count inconsistency and the absence of any error or auth-failure guidance keep it short of 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 only 33%, and the description partially compensates by explaining that urls are merged in the given order and that format=json yields base64 JSON instead of application/pdf. But it never explains the files[].filename field, never says when to prefer urls vs files vs multipart, and its '2-20 PDFs' range conflicts with the schema's maxItems of 10 for urls, which risks a malformed call.

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 ('Merge 2-20 PDFs ... into one PDF in the given order'), so an agent knows exactly what operation it performs and what the output artifact is. It does not explicitly contrast itself with siblings such as pdf_split or pdf_info, but the merge semantics are unambiguous on their own.

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?

Usage is implied rather than prescribed: the accepted input shapes ({urls}, {files}, multipart), the 2-20 file range, and the size caps effectively define when the tool is applicable. However, there is no explicit when-not guidance and no named alternative (e.g., splitting or converting), so the agent must infer boundaries.

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