Skip to main content
Glama

PDF Efforts

Add page numbers

add_page_numbers
Idempotent

Add page numbers as real text in a chosen corner with a custom format such as "Page {n} of {total}".

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": {
      "file": "<file>"
    },
    "name": "add_page_numbers"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesThe PDF.
startNoNumber of the first numbered page.
formatNo{n} = page number, {total} = page count. Latin characters only.Page {n} of {total}
positionNob/t = bottom/top, c/r/l = center/right/left.bc
font_sizeNo
skip_first_pageNoDo not number the first page (cover).

Output Schema

NameRequiredDescriptionDefault
infoNoFacts about the PDF (get_pdf_info) or the result (e.g. target_met for compress_pdf).
noteNoAnything the user should know about the result.
textNoExtracted text (pdf_to_text, ocr_pdf).
filesYesResult files. Download them before expires_at; pass file_id to another tool to chain.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already cover the safety profile (destructiveHint=false, idempotentHint=true, openWorldHint=true). The description adds one genuinely useful behavioral fact — the numbers are embedded as real, searchable text rather than an image overlay — but says nothing about whether the source PDF is preserved, how the result is returned, or the 60-minute file_id reuse lifetime.

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?

A single front-loaded sentence with zero filler; every clause (real text, corner placement, custom format) carries distinct information.

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 and 83% parameter coverage, the description is close to complete for a straightforward transformation tool. The remaining gap is behavioral: it doesn't say whether the input file is modified or a new file is produced.

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 83%, so most parameters are already documented, including the {n}/{total} placeholders and the position enum. The description restates the format example and 'chosen corner' but adds no new semantics, such as whether start interacts with skip_first_page. 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?

A specific verb plus resource: 'Add page numbers as real text in a chosen corner with a custom format.' The 'real text' phrasing implicitly separates it from the sibling add_watermark (which typically overlays an image), but no sibling is named explicitly.

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 operation itself, but there is no explicit when-to-use or when-not guidance and no routing to alternatives such as add_watermark or add_page_numbers vs stamping. An agent must infer selection from the name and description alone.

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