Skip to main content
Glama

docs

Pdf Merge

pdf_merge
Idempotent

Merge 2-10 PDFs into one, in order. Deterministic, $0.003.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlsYesList of absolute PDF URLs, in order (2-10)
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.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYesJSON body of the underlying call (see /samples/{product} for each product's shape)
statusYesHTTP status of the underlying call (200 result, 402 payment terms, 4xx input error)
how_to_payNo
receipt_idNoset on paid results; free re-fetch via get_receipt
payment_requiredNotrue when status is 402: body holds x402 payment terms, not a result. Pay and call again with x_payment

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=true, openWorldHint=true). The description adds two facts those annotations do not: the operation is deterministic and it costs $0.003, which is genuinely useful for a paid tool. It still says nothing about failure behavior or turnaround, hence not a 5.

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?

Two short fragments, front-loaded with the operation and its cardinality limit, and each clause carries information: ordering, bound, determinism, price. There is no filler.

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?

With an output schema present, return values need not be explained, and the payment mechanics are documented in the x_payment parameter. The description signals that the call is paid ($0.003), covering the main non-schema concern; only error/latency expectations are absent.

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 100% and the two parameters are fully documented there, including the ordering constraint and the x_payment flow, so the baseline of 3 applies. "In order" echoes the schema's own wording rather than adding syntax or format detail.

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 names a specific verb and resource ("Merge 2-10 PDFs into one, in order"), which is unambiguous and inherently distinguishes it from the read-oriented siblings pdf_info and pdf_pages. It stops short of explicitly contrasting itself with any sibling, so it lands at clear-but-undifferentiated.

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 by the constraint (combine 2-10 PDFs) plus the cost note, but there is no explicit when-to-use, when-not-to-use, or pointer to an alternative such as pdf_pages or document_pipeline. The price signal gives a decision-relevant cue but no routing guidance.

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