Skip to main content
Glama

pdf_add_page_numbers

Read-onlyIdempotent

Add page numbers to a PDF

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "fileBase64": "<fileBase64>",
      "position": "<position>"
    },
    "name": "pdf_add_page_numbers"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNoFormat: one of plain, page-of-total, prefixed.
prefixNoText before the number when format is prefixed, for example Page .
startAtNoNumber to print on the first page, default 1.
fontSizeNoFont size in points, for example 10.
positionYesPosition: one of bottom-center, bottom-right, bottom-left, top-center, top-right, top-left.
pageRangeNoComma-separated pages/ranges to number, e.g. '1,3-5' -- if omitted, numbers every page
fileBase64YesThe input file as a base64 string, without a data: prefix.
skipFirstPageNotrue or false: skip first page. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / fileBase64 / description
      Added value: +"The input file as a base64 string, without a data: prefix."
    • addedInput schema / properties / fontSize / description
      Added value: +"Font size in points, for example 10."
    • addedInput schema / properties / format / description
      Added value: +"Format: one of plain, page-of-total, prefixed."
    • addedInput schema / properties / position / description
      Added value: +"Position: one of bottom-center, bottom-right, bottom-left, top-center, top-right, top-left."
    • addedInput schema / properties / prefix / description
      Added value: +"Text before the number when format is prefixed, for example Page ."
    • addedInput schema / properties / skipFirstPage / description
      Added value: +"true or false: skip first page. Default false."
    • addedInput schema / properties / startAt / description
      Added value: +"Number to print on the first page, default 1."
  2. First observed

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description adds nothing beyond that — notably it does not explain how a pagination operation is read-only (presumably a new PDF is returned rather than the input mutated), which is the one piece of context an agent would actually need here, nor does it mention re-running behavior or output handling.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One clause with zero filler, which is efficient, but the brevity is under-specification rather than disciplined concision for an 8-parameter tool. There is no structure to front-load because there is nothing beyond the headline sentence.

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?

With eight parameters, no output schema, and a read-only annotation that is counterintuitive for a page-stamping operation, the description should say more about what comes back and whether the source file is affected. The rich schema covers input semantics, but behavioral and output context are missing.

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 every parameter, including both enums and defaults, is documented in the schema itself. The description therefore adds no parameter meaning, and the baseline 3 applies.

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 ("Add page numbers to a PDF"), so an agent can identify the operation immediately. It does not differentiate from neighbors such as pptx_slide_numbers or pdf_watermark, and it never says whether the result is a new file returned in the response or an in-place edit.

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 guidance, no prerequisites (e.g., that fileBase64 must be an un-prefixed base64 payload), and no mention of alternatives for stamping content onto pages. The agent must infer usage entirely from the name.

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