Skip to main content
Glama

Print a test page

print_test_page

Prints a calibration sheet with millimetre rulers, frames, color and gray ramps, and Thai/English text to test selected print settings before a real job.

Instructions

One calibration sheet: millimetre rulers, frames, color and gray ramps, Thai and English text at several sizes. Accepts the normal print settings to test them.

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

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}|"
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
backendNoauto (default): direct network, else Windows driver
collateNotrue 1,2,3,1,2,3 (default). false 1,1,2,2,3,3
dry_runNo
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
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
margin_top_mmNoTop margin
overlay_colorNo
scale_percentNoExact zoom, overrides scale
cell_border_mmNoFrame around each page in n-up
margin_left_mmNoLeft margin
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
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

B3.4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It helpfully discloses the exact content of the calibration sheet and that it exercises normal print settings, but it omits key operational behavior such as paper/ink consumption, printer selection fallback, permissions, and what is returned.

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 two tight sentences with no filler. It front-loads the calibration-sheet contents and then briefly states how settings are exercised.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 66 parameters, zero annotations, and no output schema, the definition is thin. It describes the sheet's appearance but not what actually happens when invoked, such as physical printing, printer fallback behavior, failure modes, or return values.

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?

The schema documents most of the 66 parameters at 76% coverage, so the schema does most of the work. The description adds only the general notion that these are 'normal print settings,' without explaining any individual parameter or compensating for the undocumented remainder.

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 identifies the resource as a calibration sheet containing millimetre rulers, frames, color and gray ramps, and Thai/English text at multiple sizes, which is specific enough to understand what it produces. It does not use a clear action verb such as 'prints' or explicitly contrast itself with print/preview, so sibling differentiation is left implicit.

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 phrase 'Accepts the normal print settings to test them' implies the tool is for validating print settings, which is useful implied guidance. However, it does not explicitly say when to choose this over print or preview, when not to use it, or what prerequisites apply.

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