Skip to main content
Glama
cups-sane-mcp

cups-sane-mcp

by ispb88

print_file

Prints a file uploaded via get_upload_link using its ID, with optional copies, duplex, page ranges, paper, scaling, and printer settings; deletes the upload after printing unless kept.

Instructions

Print a file uploaded with get_upload_link, by its id. The upload is deleted after printing unless keep=True (e.g. to print it again with different settings). Prints PDF, PostScript, PNG, JPEG, TIFF or plain text. 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": {
      "id": "<id>"
    },
    "name": "print_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
ppiNo
keepNo
paperNo
copiesNo
duplexNo
optionsNo
printerNo
qualityNo
scalingNo
page_rangesNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does the most important thing: it discloses that the upload is deleted after printing unless keep=True, which is the critical irreversible side effect for this tool. It also enumerates accepted formats. It omits permissions/auth requirements and queueing behavior, keeping it just short of a 5.

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?

Front-loads the two things an agent must know (the id source and the delete-after-print side effect) before the option list. The semicolon-separated option block is dense but every clause adds meaning for an 11-parameter tool; nothing is padding.

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?

For a high-parameter mutation tool with zero annotation and zero schema-description coverage, this is close to sufficient: identity, destructive side effect, formats, and the ambiguous parameters are all covered, and an output schema exists so return values need not be described. The remaining gap is that a handful of trivially named parameters and any auth/permission constraints go unmentioned.

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 coverage is 0%, so this description must explain all 11 parameters, and it largely does: it defines each scaling mode (auto/fit/fill/none) with practical recommendations, shows the page_ranges format ('1-3,5'), explains ppi as a resolution override, and gives a concrete options example with a pointer to printer_options. copies, duplex, paper, and quality are left to be inferred from their names and enum values.

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 concrete verb and resource ('Print a file') and pins the scope precisely: the file must have been uploaded via get_upload_link and is addressed by its id. That scoping distinguishes it from siblings like print_text and print_file_data without needing to name them.

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 real when-to-use guidance: it names the prerequisite tool (get_upload_link), explains the keep=True case for reprinting with different settings, and recommends 'fit for photos and screenshots, unset for documents.' It never explicitly says when to prefer print_text or print_file_data instead, so it stops short of full alternative routing.

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