Skip to main content
Glama
cups-sane-mcp

cups-sane-mcp

by ispb88

print_scan

Prints a saved scan by filename, letting you create copies or send an existing scanned file to a printer with optional copies, duplex, page ranges, paper, quality, and scaling settings.

Instructions

Print a saved scan by file name (see list_scans), e.g. to make a copy. Print options (all optional): copies, duplex, page_ranges ("1-3,5"), paper, quality, printer; scaling: auto (shrink only if too big), fit (fit the page, keep proportions), fill (fill the page, crop overflow), none (actual size). Usually fit for photos and screenshots, and left unset (printer default) for documents; ppi: override an image's resolution; options: other CUPS options such as {"InputSlot": "Manual", "number-up": "2"}; printer_options lists what the printer accepts.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "filename": "<filename>"
    },
    "name": "print_scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
ppiNo
paperNo
copiesNo
duplexNo
optionsNo
printerNo
qualityNo
scalingNo
filenameYes
page_rangesNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose real behavior for the scaling modes (shrink only, fit keeping proportions, fill cropping overflow, none at actual size) which is genuinely useful. It says nothing about what happens to the job (queued? returns a job id?), how failures or missing files surface, or whether the saved scan is left intact after printing.

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?

Front-loaded with the core action and the filename source, then a labeled enumeration of options with the scaling nuances called out. Dense but every clause is functional; only the wrapping of the scaling parenthetical is slightly awkward to parse.

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

Completeness4/5

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

Ten parameters with no schema descriptions are covered nearly one-for-one, and an output schema exists so return values need not be explained. Remaining gap is job-level behavior (synchronous vs queued printing, error conditions) for what is a side-effecting operation.

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?

Schema description coverage is 0%, so the description has to compensate and largely does: copies, duplex, page_ranges with a format example ("1-3,5"), paper, quality, printer, ppi (overrides an image's resolution) and options with a literal example ({"InputSlot": "Manual", "number-up": "2"}). Scaling's enum values are each defined, though paper/quality/printer values are still only inferable from the schema.

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?

States a specific verb and resource ("Print a saved scan by file name") plus a use example ("to make a copy"), and points to list_scans for discovering the filename. It does not distinguish itself from siblings like print_file or print_file_data, so an agent must infer that this one takes a scan name rather than arbitrary file content.

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?

Gives concrete selection guidance for the trickiest option ("Usually fit for photos and screenshots, and left unset (printer default) for documents") and routes the agent to list_scans for filenames and printer_options for accepted CUPS options. It stops short of saying when to prefer this over print_file for non-scan content.

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