Skip to main content
Glama

Inspect an image before tracing

inspect_icon

Report an image's size, format and transparency plus the trace settings it would use, without tracing. Sanity-check a source or explain a mode choice before overriding it.

Instructions

Report what an image is (size, format, transparency) and what the tracer WOULD do with it — colour vs mono, gradients on or off, the mono cut, the resolution it would trace at — without tracing. Fast. Use it to sanity-check a source, or to explain a choice before overriding it.

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": {
      "image": "<image>"
    },
    "name": "inspect_icon"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoauto (default) counts the inks: one ink on paper traces mono, which is far cleaner for line art; anything else traces colour.
imageYesPath to a PNG, JPEG, WebP, GIF, BMP or SVG file. Relative paths resolve against the working directory.
detailNohigh lifts the flat-art raster cap 2048 → 4096: crisper, ~4x the work.
strokesNoTrace LINE ART as centreline strokes with a measured stroke-width (open and closed stroked paths you can re-weight), instead of filled outlines of each line. Ink no stroke explains (a dot, a note head) still becomes a fill. In colour mode each stroke is painted in the ink it runs through. Default off.
fidelityNoShape-beautification tolerance in px; 0 disables snapping to circles/lines.
layeringNoColour mode. stacked (default): a shape paints under the shapes in front of it — fewer nodes, no hairline seams between colours, shapes stay whole in a design tool. tiled: shapes fit edge to edge, with a hole wherever another sits inside. Same edges either way; mono ignores it.
despeckleNo0 keeps every speck, 100 is aggressive. Default 25.
gradientsNoauto (default) probes for real colour ramps. flat forces solid fills (right for most icons). rich forces gradient fitting.
smoothingNo0 = crisp and node-dense, 100 = smooth and sparse. Default 50.
flattenOntoNoComposite a TRANSPARENT source onto this colour before tracing, e.g. "#ffffff". Omit to keep the alpha. (Not the card colour — that is appearance.background.)
strokesOnlyNoWith `strokes`: NO filled paths at all — the ink no stroke explains (a dot, a note head, a solid shape) is drawn as round-capped strokes too, along its own middle and as wide as it is there; a dot is a round-capped point. Nothing is dropped, but a shape that is not a line is approximated (a square comes back with round ends). For plotters and stroke-only icon sets. Default off.
removeBackgroundNoDrop the detected background layer so the SVG comes back transparent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations supplied, the description must carry the behavioral load; 'without tracing' and 'Fast' do convey a non-mutating, cheap preview. It never explicitly confirms nothing is written to disk, nor does it describe the response shape or any limits, so the disclosure is suggestive rather than 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?

Three sentences, front-loaded with the return contents before the guidance, and 'Fast' is a deliberate one-word selling point rather than filler. The em-dash list is dense but readable; nothing is clearly redundant.

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?

Twelve parameters with no output schema means the description must at minimum convey what comes back, and it does enumerate the report contents, plus the non-destructive framing. It doesn't map every parameter to its predicted output (layering, strokesOnly, flattenOnto go unmentioned), which leaves a small gap for a 12-param tool.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, and the description earns a step above by tying settings to outcomes: 'colour vs mono' to mode, 'the mono cut', 'gradients on or off', and 'the resolution it would trace at' to detail. It signals that the supplied settings are echoed back as predicted behavior without re-explaining each enum.

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 (report on an image) plus an explicit dry-run scope: what the tracer 'WOULD do ... without tracing.' The enumerated outputs (size, format, transparency, colour vs mono, gradients, mono cut, resolution) make the tool unmistakable next to trace_icon.

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 two concrete use cases — sanity-checking a source and explaining a choice before overriding it — which positions it as the pre-flight step ahead of tracing. It stops short of naming a sibling or stating when not to bother (e.g. for already-validated files).

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

This server cannot be deployed

Other Tools