Skip to main content
Glama

PDF Page Numbers API - add page numbers to a PDF

pdf_page_numbers
Read-onlyIdempotent

Stamp page numbers on every page: position (6 places), style (1 / Page 1 / Page 1 of N / - 1 -), first number, text size, optional no number on the cover page. Runs on our server, files are deleted right after the call, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.005/call via x402 at https://radarbg.com/x402/pdf-page-numbers.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "format": "of",
      "fileName": "sample.pdf",
      "fileContent": "JVBERi0xLjMKJeLjz9MKMSAwIG9iago8PAovUHJvZHVjZXIgKHB5cGRmKQo+PgplbmRvYmoKMiAwIG9iago8PAovVHlwZSAvUGFnZXMKL0NvdW50IDEKL0tpZHMgWyA0IDAgUiBdCj4+CmVuZG9iagozIDAgb2JqCjw8Ci9UeXBlIC9DYXRhbG9nCi9QYWdlcyAyIDAgUgo+PgplbmRvYmoKNCAwIG9iago8PAovVHlwZSAvUGFnZQovUmVzb3VyY2VzIDw8Cj4+Ci9NZWRpYUJveCBbIDAuMCAwLjAgNTk1IDg0MiBdCi9QYXJlbnQgMiAwIFIKPj4KZW5kb2JqCnhyZWYKMCA1CjAwMDAwMDAwMDAgNjU1MzUgZiAKMDAwMDAwMDAxNSAwMDAwMCBuIAowMDAwMDAwMDU0IDAwMDAwIG4gCjAwMDAwMDAxMTMgMDAwMDAgbiAKMDAwMDAwMDE2MiAwMDAwMCBuIAp0cmFpbGVyCjw8Ci9TaXplIDUKL1Jvb3QgMyAwIFIKL0luZm8gMSAwIFIKPj4Kc3RhcnR4cmVmCjI1NgolJUVPRgo="
    },
    "name": "pdf_page_numbers"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeNoText size in points, default 10
filesNoOr several files: [{fileName, fileContent (base64)}] (up to 60 files, 20 MB total)
startNoFirst page number, default 1
formatNon = 1, page = Page 1, of = Page 1 of N, dash = - 1 -n
fileNameNoFile name with extension, e.g. report.pdf
positionNobc bottom center, br, bl, tc top center, tr, tlbc
skipFirstNoNo number on the first page (cover)
fileContentNoThe file as base64 (a data: URI is fine; 20 MB total decoded limit per call)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / fileContent / description
      Previous value: -"The file as base64 (a data: URI is fine)"New value: +"The file as base64 (a data: URI is fine; 20 MB total decoded limit per call)"
    • changedInput schema / properties / files / description
      Previous value: -"Or several files: [{fileName, fileContent (base64)}]"New value: +"Or several files: [{fileName, fileContent (base64)}] (up to 60 files, 20 MB total)"
    • addedInput schema / properties / files / maxItems
      Added value: +60
  2. Changed2 schema fields changed
    • addedInput schema / properties / size / minimum
      Added value: +0
    • addedInput schema / properties / start / minimum
      Added value: +0
  3. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Goes well past the annotations by disclosing execution location ("runs on our server"), data retention ("files are deleted right after the call, nothing stored"), rate limits (5 calls/day per IP), and both authentication mechanisms with a link. These are exactly the operational facts an agent needs before sending a document, and the readOnlyHint=true annotation is consistent with a transform that returns a new file rather than mutating stored state.

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?

Front-loaded with the capability, then a compact clause covering each option, then operational facts. The pricing paragraph is denser than strictly necessary for tool selection (monthly price, URL anchor) but each clause carries usable information, and there is no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter document-processing tool with no output schema, the description never states what comes back — a stamped PDF as base64, a URL, or a file reference — nor how the multi-file path behaves. Auth, limits, and retention are well covered, but an agent cannot predict the response shape before invoking.

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%, so the schema already documents every parameter including enums and defaults. The description restates position count, the four format renderings, first number, and text size, which slightly aids readability but adds no meaning beyond the schema, and it omits the multi-file `files` array, `fileName`, and `fileContent` entirely.

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

Purpose5/5

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

Opens with a specific verb+resource: "Stamp page numbers on every page," then immediately enumerates the configurable dimensions (position, style, first number, size, cover exemption). An agent can tell at a glance that this is a numbering/stamping tool and not a conversion tool like pdf_compress or pdf_to_text.

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?

Usage context is clear for a single-purpose tool: it names the four style formats and the cover-page exemption case (skipFirst), and it states the access paths (free daily quota, paid API key via X-API-Key, or x402 per call). There is no explicit "when not to use" routing, but the sibling set is conversion-oriented and no genuine alternative exists to disambiguate against.

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