Skip to main content
Glama

Add page numbers to PDF

add_page_numbers
Idempotent

Add page numbers to every page of a PDF. Files are processed on HuntPDF servers and deleted automatically; the download link is temporary.

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": "add_page_numbers"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNon = "1", n-of-m = "1 of 9", page-n = "Page 1", page-n-of-m = "Page 1 of 9"n
file_urlNoPublic https:// link to the file (preferred, up to 150 MB). Must be directly downloadable.
filenameNoOriginal file name, e.g. report.pdf
positionNobottom-center
start_atNoFirst number, default 1
file_base64NoThe file content as base64 (only for small files, max 10 MB). Use instead of file_url.

Output Schema

NameRequiredDescriptionDefault
pagesNo
file_nameYes
download_urlYesLink to download the result
expires_in_minutesYesThe link stops working after this time (or 3 minutes after the first download)

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 declare readOnlyHint=false, destructiveHint=false and idempotentHint=true, so the safety profile is covered. The description adds information the annotations cannot convey: server-side processing on HuntPDF infrastructure, automatic file deletion, and a temporary download link — all relevant to handling sensitive documents. It stops short of stating size limits or that the result is a new file rather than an in-place edit.

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 sentences with no filler: the operation is front-loaded in sentence one and the data-handling caveat follows. Every clause earns its place.

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 six mostly-optional parameters, 83% schema coverage and an output schema handling return values, the description covers what the schema does not: retention and link lifetime. It could still note that the source file is unchanged and what authentication, if any, the download link needs, but the essentials are present.

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%, with both enums (format, position) fully self-documenting including example renderings, so the schema carries the parameter burden. The description adds no parameter-level meaning beyond that, which is the baseline-3 case when coverage is high.

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?

The description states a specific verb and resource — 'Add page numbers to every page of a PDF' — including the scope ('every page'). No sibling in the catalog (merge_pdf, rotate_pdf, watermark_pdf, etc.) overlaps with this operation, so the agent can select it unambiguously.

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?

There is no when-to-use or when-not-to-use guidance and no mention of alternatives or prerequisites (e.g. whether the PDF must be unprotected or unencrypted). The only conditional choice, file_url vs file_base64, is documented in the schema rather than the description, leaving the description itself with 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