Skip to main content
Glama

clean_scan

Straighten skewed scans or photos, convert them to black and white, save the result as a new PNG, and return the removed angle.

Instructions

Straighten a scan or photo and make it black and white. Saves a new PNG and returns the angle that was removed.

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": {
      "path": "<path>"
    },
    "name": "clean_scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
outputNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.3/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 usefully discloses two behaviors: a new PNG is written (so it is a write operation) and the removed angle is returned. It does not say whether the source file is preserved or overwritten, what happens when the image is already straight, or where the file lands when no output is given.

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?

Two tightly written sentences with zero filler: the transformation first, then the persisted result and return value. Nothing needs trimming.

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 simple two-parameter tool with no output schema, the description covers the purpose and return value but leaves a real gap: the tool writes a file, and neither the description nor the schema explains the destination or the default-output behavior. That is information an agent needs to call it safely.

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

Parameters2/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 explain both parameters. It describes the path implicitly ('a scan or photo') and the PNG output, but the second parameter 'output' — including its empty-string default and what that default means — is never explained.

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?

The description names specific verbs and resource: 'Straighten a scan or photo and make it black and white', plus the side effect of saving a PNG. It is concrete enough to distinguish from the PDF-oriented siblings, though it never mentions the closest visual sibling (shrink_photo).

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

Usage Guidelines3/5

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

Usage is only implied by 'a scan or photo' that needs straightening and desaturation. There is no explicit when-to-use statement, no preconditions (supported image formats, whether the file must be a photo vs. a scanned document), and no comparison to alternatives such as shrink_photo.

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