Skip to main content
Glama

diagnose_image_quality

Analyzes local image sharpness, resolution, compression, exposure, and pixel-art traits to determine whether upscaling, deblurring, or nearest-neighbor scaling is needed.

Instructions

Run local sharpness (Laplacian variance), resolution, JPEG compression density, exposure, and pixel-art detection to decide whether upscaling, deblurring, or nearest-neighbor scaling is needed.

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": {
      "imagePath": "<imagePath>"
    },
    "name": "diagnose_image_quality"
  }
}

Input Schema

NameRequiredDescriptionDefault
imagePathYesPath to the local image file.
targetUseCaseNoIntended target use case for resolution threshold checks.hd

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral burden; 'run local' usefully signals an on-device, non-mutating analysis and the named algorithms reveal how the checks are performed. However, it never states what is actually returned (per-metric scores vs. a single recommendation), whether failures like unreadable files are reported, or expected cost on large images.

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?

One front-loaded sentence that starts with the action and packs the metric list and the decision purpose without filler. It is dense but every clause contributes; a brief split into 'what it measures' and 'what it recommends' would read slightly better.

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 two-parameter read-only diagnostic with no annotations and no output schema, the description covers what is measured and why, but omits the shape of the result and any edge-case behavior. That leaves the agent guessing about how to consume the recommendation before acting on it.

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 both 'imagePath' and the 'targetUseCase' enum are already documented in the schema, including that the enum drives resolution threshold checks. The description adds no further meaning to either parameter, so the baseline 3 applies.

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?

Uses a specific verb ('Run') with a clearly enumerated set of diagnostics (Laplacian variance sharpness, resolution, JPEG compression density, exposure, pixel-art detection) and names the downstream decision it feeds. An agent can tell this is an analysis tool, though it does not explicitly differentiate itself from the sibling 'inspect_image', which plausibly overlaps.

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?

The stated goal ('decide whether upscaling, deblurring, or nearest-neighbor scaling is needed') implies this is a pre-processing check to run before 'upscale_pixel_art' or similar, but that sequence is left to inference. There is no explicit when-to-use/when-not-to-use statement and no sibling is named as an alternative.

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