Skip to main content
Glama

pdf_add_image

Add a PNG or JPG image to a specific page at defined coordinates, with options to scale by width or height while preserving aspect ratio and set opacity.

Instructions

Add an image (PNG/JPG) at a position on a page. Aspect ratio is preserved when only width or height is given.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xYesX from left edge (points)
yYesY from bottom edge (points)
pageYesPage number (1-indexed)
widthNoWidth in points (scales proportionally if height omitted)
heightNoHeight in points (scales proportionally if width omitted)
opacityNoOpacity 0-1 (default: 1)
filePathYesPDF file path
imagePathYesImage file (PNG or JPG)
outputPathYesOutput path
Behavior3/5

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

Discloses aspect ratio preservation, but lacks details on file overwrite behavior, image size limits, transparency support, or whether the image is embedded/linked. Annotations absent, so description carries full burden.

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 sentences with no fluff. Front-loaded with action, efficient and clear.

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?

Covers main action and one key behavior, but misses behavioral context like file overwriting (outputPath implies new file but not explicit), stacking order, and image size constraints. Adequate but not comprehensive for a 9-param tool with no output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Adds meaning beyond schema by stating aspect ratio preservation and acceptable image formats (PNG/JPG). Schema coverage is 100%, so baseline is 3; description adds further clarity.

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?

Description clearly states verb ('Add'), resource ('image (PNG/JPG)'), and context ('at a position on a page'). It distinguishes from sibling tools like pdf_add_text or pdf_highlight.

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 for adding an image, but no explicit guidance on when to use this tool vs. alternatives like pdf_stamp or pdf_watermark, and no conditions or exclusions.

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/beepboop2025/pdf-suite-mcp'

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