Skip to main content
Glama

Print a PDF

print_pdf

Prints an existing PDF from a public https URL or base64 bytes. Physically prints paper on the user’s connected printer. Printers marked needsAttention are skipped by automatic printer selection.

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

Input Schema

NameRequiredDescriptionDefault
urlNoPublic https:// URL of a PDF.
titleNo
copiesNo
pdf_base64NoBase64-encoded PDF bytes (no data: prefix needed).
printer_idNoOne of your printer ids; omit to use your default or only printer.
allow_duplicateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the annotations, it discloses the key behavioral facts: this consumes physical paper on the user's connected printer, and printers flagged needsAttention are silently skipped during automatic selection — a meaningful side effect the annotations cannot convey. It does not explain the duplicate-detection behavior implied by allow_duplicate or what the call returns.

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?

Three tight sentences with no filler; the core action is front-loaded and the input-source and printer-selection details follow in priority order.

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 zero required parameters and no output schema, the definition never states what happens when neither url nor pdf_base64 is supplied, nor whether the two are mutually exclusive, and it gives no hint about what is returned (a print job id? status?) despite a get_print_job_status sibling existing. Adequate for the physical-print side effect but incomplete on invocation contract.

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 50%; the description reinforces url, pdf_base64, and printer_id semantics but says nothing about title, copies, or allow_duplicate. allow_duplicate in particular is a non-obvious control whose meaning is left entirely undocumented, which matters for a non-idempotent print operation.

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 gives a specific verb and resource ('Prints an existing PDF') plus the accepted input forms (public https URL or base64 bytes), and clarifies that this is a physical print rather than a file conversion. It does not explicitly differentiate itself from the sibling print_document, which an agent could plausibly confuse it with.

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?

It implies when to use it (when you have a PDF at a public URL or as base64) and explains that omitting printer_id falls back to the default or only printer, but it offers no explicit exclusions or named alternatives for the closely related print_document sibling.

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