Skip to main content
Glama
pdf4me
by pdf4me

sign_pdf

Add a signature image to a PDF with options for page range, alignment, size, margins, and opacity. Places a JPG/PNG signature onto chosen pages and saves the signed PDF.

Instructions

Add a signature image to a PDF using the PDF4me SignPdf API. Provide paths to the PDF and signature image (e.g. JPG/PNG). Supports page ranges, alignment, size, margins, opacity, and async 202 polling. Optional output directory and file name; saves the signed PDF to disk.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pagesNoPage spec (e.g. "1", "1,3,5", "2-5", "1-3").1-3
align_xNoHorizontal alignment (e.g. Left, Center, Right — API may accept any casing).right
align_yNoVertical alignment (e.g. Top, Middle, Bottom).bottom
opacityNoOpacity 0–100 as a string.100
file_pathYesLocal path to the PDF to sign.
output_dirNo
margin_x_mmNo20
margin_x_pxNo57
margin_y_mmNo20
margin_y_pxNo57
width_in_mmNo50
width_in_pxNo142
height_in_mmNo25
height_in_pxNo71
is_backgroundNoMaps to isBackground.
output_file_nameNo
show_only_in_printNoMaps to showOnlyInPrint.
signature_file_pathYesLocal path to the signature image file.
Behavior3/5

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

With no annotations, the description must carry the burden; it discloses async 202 polling, saving to disk, and support for page ranges, alignment, size, margins, and opacity. However, it does not explain return values, error behavior, or whether the operation creates a new file or modifies the original in place.

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?

The description is three sentences, front-loaded with the primary action, then options, then output behavior. It contains no filler and every sentence contributes meaningful information.

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?

Given 18 parameters, no output schema, and no annotations, the description covers the core purpose and output location but omits return value details, async polling specifics, and parameter units. It is adequate for a quick overview but leaves notable gaps for a complex API wrapper.

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 only 44%, and the description adds semantic grouping for page ranges, alignment, size, margins, opacity, and output directory/file name. Yet it does not clarify units (mm vs px), boolean flag effects, or the relationship between paired margin/width/height parameters, so compensation is partial.

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 clearly states a specific verb ('Add') and resource ('signature image to a PDF'), and names the underlying PDF4me SignPdf API. This distinguishes it from sibling tools like add_image_stamp_to_pdf or add_text_stamp_to_pdf by focusing specifically on signing with an image.

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?

The description implies the use case (signing a PDF with an image) and gives input requirements, but it does not explicitly state when to use this tool over alternatives or mention exclusions. There is no when-not or alternative guidance, so usage is only implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pdf4me/pdf4me-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server