Skip to main content
Glama

Scan a document

scan

Capture pages from a flatbed glass or document feeder, save them as PDF or JPEG, and return the saved files plus a first-page image for reading.

Instructions

Scan from the glass or document feeder of a scanner or multifunction printer and save it, by default as PDF in /root/Documents/Scans. Ask the user to place the page first. Returns the saved files and an image of the first page so you can read it. Network scanners (AirScan, eSCL, Mopria) and USB scanners through Windows both work.

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": "scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
dpiNoDefault 300; 200 is enough for text, 600 for photos
colorNoDefault color
formatNoDefault pdf
sourceNoauto (default): feeder when it holds pages, else glass
scannerNoPrinter or scanner name, id or IP. Omit: the server picks.
show_imageNoReturn the first page as an image. Default true
output_fileNoWhere to save. Extra feeder pages get -2, -3 added

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description does the heavy lifting: it discloses the default save location and format, that extra feeder pages get suffixed filenames (in the schema), and that the result includes the saved files plus a first-page image so the agent can verify content. It does not cover overwrite behavior on an existing output_file, required permissions, or timeout/failure modes for an unresponsive scanner.

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 action and destination, then prerequisites, then return shape, then compatibility notes. Four sentences with little waste; the compatibility sentence is the only one that could arguably be trimmed.

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?

All seven parameters are optional with defaults, and with no output schema the description correctly explains what comes back (saved files plus a first-page image). For a no-annotation mutation-ish tool it covers the essentials; only failure/overwrite semantics are absent.

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 100%, so every parameter including defaults and enum meanings is already documented. The description reinforces the PDF default and the glass/feeder distinction but adds no syntax, units, or constraints beyond the schema — baseline 3 applies.

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 ('Scan from the glass or document feeder... and save it'), names the default artifact (PDF in /root/Documents/Scans), and the scope (scanner or multifunction printer). This clearly separates it from the print/printer-management siblings without ambiguity.

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 an explicit operational prerequisite — 'Ask the user to place the page first' — which is real when-to-use guidance an agent would otherwise miss. It also notes that both network (AirScan/eSCL/Mopria) and Windows USB scanners work, implicitly telling the agent not to pre-emptively refuse. It stops short of naming when-not-to-use or an alternative tool.

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