Skip to main content
Glama
cups-sane-mcp

cups-sane-mcp

by ispb88

print_text

Prints plain text notes, lists, or short letters in a monospaced font via CUPS, with optional controls for copies, duplex, page ranges, paper, quality, scaling, and printer.

Instructions

Print plain text you write (notes, lists, a short letter). CUPS lays it out in a monospaced font. For anything formatted (headings, tables, images), make a PDF and print it with get_upload_link + print_file. 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": {
      "text": "<text>"
    },
    "name": "print_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
ppiNo
textYes
paperNo
titleNoText
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.6/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full disclosure burden and does meaningful work: it tells the agent the output is laid out by CUPS in a monospaced font, and it explains what each scaling mode actually does to the content (shrink only, fit with proportions, crop overflow, actual size). What it does not cover is job-level behavior — whether the call blocks until printing completes, what happens when the named printer is unavailable or the job fails, and that printer_options should be consulted before passing exotic options is only implied. Strong, but not complete for a mutation with zero annotation coverage.

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 purpose and the sibling routing in the first two sentences, then a compact options block. The scaling explanation is slightly sprawling across multiple lines but every clause carries distinct information; nothing is filler.

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?

An output schema exists, so return values need not be explained, and the description covers routing, layout behavior, and 10 of 11 parameters in depth. The remaining gap is the 'title' parameter, plus the absence of any note on default printer selection, which matters given list_printers is a sibling.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description is the only source of meaning, and it covers essentially every parameter: copies, duplex, page_ranges with a concrete syntax example ("1-3,5"), paper, quality, printer, ppi, and options with a literal JSON example plus a pointer to printer_options. The scaling enum is expanded value-by-value, including the counterintuitive semantics of 'auto' vs 'fit' vs 'fill' that the schema's bare enum names would not convey. Only 'title' goes unmentioned.

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 ('Print plain text you write') and immediately bounds the input with examples (notes, lists, a short letter). It explicitly distinguishes itself from the formatted-document path by naming print_file and get_upload_link, so an agent can route correctly without opening either schema.

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

Usage Guidelines5/5

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

Gives both when-to-use and when-not-to-use: plain text goes here, anything with headings, tables or images should become a PDF and go through get_upload_link + print_file. It also adds a per-case recommendation for scaling ('usually fit for photos and screenshots, left unset for documents'), which is actionable guidance rather than description.

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