Skip to main content
Glama

Print anything

print

Send a file, URL, or text to a printer in one call with optional layout, color, and quality settings; track progress through job status after the first page starts.

Instructions

Print a file, URL or text right now. One call is enough; every setting is optional. Handles PDF, images, Word/Excel/PowerPoint, HTML, Markdown, CSV, text, XPS, EPUB, Thai included. Returns after the first page is on its way; check progress with job_status.

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

Input Schema

NameRequiredDescriptionDefault
cssNoExtra CSS for text, markdown or html
dpiNoOverrides the resolution chosen by quality
fontNoBody font for text and markdown. Default handles Thai and English
n_upNoPages per sheet
alignNo
colorNoauto (default) sends pages with no color as gray, saving color ink. black_white is pure 1-bit look
gammaNo1 = unchanged
pagesNoe.g. "1-3,5,last", "-2" (second to last), "10-8" (reversed)
paperNoA4, A5, A6, letter, legal, 4x6, 5x7, photo-l, DL, C5, or custom like "100x150mm", "4x6in". Default: what the printer has loaded.
scaleNofit (default) whole page; shrink only if too big; fill crop to cover; stretch ignore aspect; actual 100%
copiesNo
duplexNoTwo-sided: long = book, short = notepad
footerNoSame format as header, e.g. "|{page}/{pages}|"
formatNoHow to read content. Default auto
headerNoLeft|Center|Right. Tokens: {page} {pages} {date} {time} {name}
invertNo
mirrorNoHorizontal flip, for iron-on transfers
presetNoSaved settings: document, draft, eco, sharp_text, photo, photo_borderless, booklet_2up, handout_4up, poster_vivid, scan_cleanup, or your own
rotateNoExtra clockwise rotation
sourceNoFile path, http(s) URL, or data: URI
backendNoauto (default): direct network, else Windows driver
collateNotrue 1,2,3,1,2,3 (default). false 1,1,2,2,3,3
contentNoLiteral text, markdown or html to print, instead of source
dry_runNoValidate everything and report the plan; print nothing
printerNoName, id, IP or alias, partial match works. Omit: the server picks.
qualityNo
reverseNoPrint last page first
sharpenNo
wait_msNoExtra wait before capturing a web page
contrastNo-100 to 100
darknessNoInk density, -100 lighter to 100 darker
job_nameNo
page_setNo
passwordNoFor protected PDFs
border_mmNoThickness of a printed frame around the content
ink_saverNoPercent lighter overall
margin_mmNoBlank margin on all sides
thresholdNoCutoff for black_white, default 128
watermarkNoText across each sheet
borderlessNoEdge to edge, if the printer supports it
brightnessNo-100 to 100
javascriptNoRun page scripts. Default: on for URLs and html files, off for inline content
paper_typeNoplain, inkjet, photo, glossy, or a printer keyword
saturationNo-100 gray to 100 vivid
line_heightNo
n_up_gap_mmNoGap between pages on a sheet
orientationNo
output_fileNoTarget path for virtual queues such as Microsoft Print to PDF
border_colorNo#rrggbb or a name: black, red, blue, gray...
border_styleNo
font_size_ptNo
line_numbersNoFor text sources
overlay_fontNoFont for header, footer, watermark
paper_sourceNoTray: auto, main, manual, or a name from printer_status
allow_networkNoFetch remote resources. Same defaults as javascript
border_gap_mmNoSpace between frame and content
confirm_largeNoNeeded above the safety limit (50 sheets by default)
margin_top_mmNoTop margin
overlay_colorNo
scale_percentNoExact zoom, overrides scale
cell_border_mmNoFrame around each page in n-up
margin_left_mmNoLeft margin
allow_duplicateNoThe same print within 20 s is treated as an accidental retry unless this is true
margin_right_mmNoRight margin
overlay_size_ptNo
watermark_angleNoDefault -45
watermark_colorNo
margin_bottom_mmNoBottom margin
print_backgroundNoWeb page backgrounds, default true
watermark_opacityNoPercent, default 15
watermark_size_ptNo
wait_for_completionNoBlock until the printer finishes
allow_private_networkNoRequired to print a URL on this LAN or PC (router, intranet, localhost) or a \\server\share path. Off by default so a page or link cannot reach internal systems

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4/5.0
Behavior3/5

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

Adds real value beyond the annotations by disclosing asynchronous return semantics: it returns once the first page is underway rather than on completion, which explains the non-idempotent, open-world nature of the call. However it omits two behaviours the agent only discovers in the schema: duplicate suppression within 20 seconds and the 50-sheet safety limit requiring confirm_large, both of which materially change how an agent should retry or size a job.

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

Conciseness4/5

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

Three short sentences, action first, capabilities second, return semantics last — well front-loaded with no repetition. Minor waste in the ornamental 'Thai included' clause, which reads as marketing rather than decision-relevant guidance for most agents.

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?

For a 73-parameter mutation tool with no output schema, the description covers invocation basics, defaults, and return timing adequately. It leaves out the two things most likely to cause a wrong call: that dry_run exists to validate and report the plan before committing, and the large-job confirmation threshold; the rich schema partly compensates.

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?

With 73 parameters at 79% schema coverage the schema carries most semantic load, so the baseline is 3. The description earns above baseline by mapping its format list (PDF, images, Office, HTML, Markdown, CSV, XPS, EPUB, Thai) onto the source/content/format parameters, signalling that content type is inferred rather than declared.

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?

States a specific verb and resource set ('Print a file, URL or text right now') and enumerates the supported formats so an agent knows what it can feed in. It also names the follow-up sibling 'job_status', which separates it from status/preview tools without needing schema inspection.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'One call is enough; every setting is optional' tells the agent it can invoke with a single source/content argument and skip configuration, and 'check progress with job_status' routes post-submission behavior. It stops short of stating when NOT to use it — e.g. preview to validate first, print_test_page, or print_raw for raw payloads — so the alternative selection is only partly covered.

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