Skip to main content
Glama
cups-sane-mcp

cups-sane-mcp

by ispb88

scan

Capture documents from a networked scanner, choose feeder or flatbed, and return a saved file plus preview images; optionally upload the full-quality file for a temporary download link.

Instructions

Scan a document. Returns the saved file name and watermarked, low-quality preview images.

source is REQUIRED; ask the user where the pages are if you don't know. Use one of these
names, or a source name exactly as list_scan_sources shows it (also for mode):
  adf        pages stacked in the document feeder: scans every page in it.
  adf_duplex feeder, both sides of each page (if the scanner supports it).
  flatbed    ONE page lying on the glass under the lid.
Some scanners take paper from the feeder whenever it holds any, even if flatbed is
chosen, so whenever pages are in the feeder use adf.

upload=True also uploads the full-quality file and returns a download link valid
for 5 minutes (only ask for it when the actual file is needed, e.g. to save or send it).

The saved file can be reprinted with print_scan.
name: optional file name stem, e.g. "lease-signed".
Tool names: source adf|flatbed|adf_duplex, mode color|gray|bw.

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": {
      "source": "<source>"
    },
    "name": "scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNogray
nameNo
paperNoletter
formatNopdf
sourceYes
uploadNo
resolutionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden, and it does disclose the return shape (file name + watermarked low-quality previews) and the upload side effect (full-quality file plus a download link valid for 5 minutes). It falls short on permissions/auth requirements, error behavior when the feeder is empty, and any cost/side effects of scanning, so it is strong but not complete.

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 purpose and return values, then a well-formatted per-source list that is easy to scan. There is redundancy: the trailing "Tool names: source adf|flatbed|adf_duplex, mode color|gray|bw" restates the source values already enumerated and repeats mode, which was already implied in the body.

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 7-parameter tool with no annotations and no output schema, the description covers the required parameter and two optional ones well and even describes the return payload. But paper, format, and resolution are left entirely unexplained, which matters because those directly determine the output the agent is promising the user.

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?

Schema description coverage is 0%, so the description must compensate. It handles source thoroughly, explains upload in detail, gives an example for name ("lease-signed"), and lists mode values, but says nothing about paper (letter/legal/a4), format (pdf/png/jpeg), or resolution (150/200/300/600) — three of seven parameters remain undocumented anywhere.

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?

Opens with a specific verb+resource ("Scan a document") and immediately states what comes back: the saved file name plus watermarked, low-quality preview images. It is clearly distinguishable from siblings such as get_scan, list_scans, and print_scan, which the description implicitly separates by contrasting low-quality previews with the full-quality file obtained via upload=True.

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?

Explicit when-to-use guidance for every source: adf for stacked pages, adf_duplex for both sides, flatbed for a single page on the glass. It also gives a genuine caveat (some scanners pull from the feeder even when flatbed is chosen, so use adf whenever pages are loaded) and gates upload=True on whether the actual file is needed, naming the alternative (print_scan) for reprinting.

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