Skip to main content
Glama

Image → traced SVG → icon set

make_app_icons

Trace an AI-generated icon into a clean SVG, then export ready-to-use icon sets for PWA, favicon, Tauri, Electron, Android, iOS, and extensions.

Instructions

The whole pipeline in one call: trace the image to a clean SVG, then render that SVG into the icon collections asked for. This is the tool to use on an AI-generated icon. Presets: pwa public/ — favicon PNGs + favicon.ico, apple-touch-icon, 192/512 PWA icons, maskable pair, manifest.webmanifest and a snippet. favicon public/ — the 16/32/48 PNGs, a real multi-size favicon.ico, apple-touch-icon and the snippet. web public/ — the full catalogue: every favicon, apple, Android, maskable and Windows tile size the app offers. tauri src-tauri/icons — the exact set tauri icon generates: PNGs, icon.ico, icon.icns and the Windows Store logos. electron build/ — icon.icns (mac), icon.ico (win) and build/icons/.png (linux), the layout electron-builder picks up by default. android res/mipmap- — ic_launcher, ic_launcher_round and the adaptive ic_launcher_foreground at every density, plus the v26 XML and the 512 Play listing icon. ios AppIcon.appiconset — every iPhone/iPad size plus the 1024 marketing icon, with Contents.json. Forced opaque: iOS rejects alpha. extension icons/icon-16..128.png for a Chrome/Firefox MV3 extension, with the manifest fragment to paste in.

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>",
      "outDir": "<outDir>"
    },
    "name": "make_app_icons"
  }
}

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 the generated or drawn icon image.
sizesNoExtra arbitrary PNG sizes.
detailNohigh lifts the flat-art raster cap 2048 → 4096: crisper, ~4x the work.
outDirYesDirectory to write the icon set into.
searchNoCheck the automatic choices instead of trusting them: trace the choices left on auto (mono vs colour, gradients on vs off) each way, score every candidate against the image (mean ΔE), and keep the automatic pick unless another candidate is clearly closer. A forced mode or gradients is kept. About 2.5x slower (one full trace per candidate). The plan reports every candidate’s score. Default on; false keeps the automatic pick untested.
appNameNoName used in the webmanifest and the logolab-icons.md notes.
keepSvgNoAlso write the traced SVG here (a copy is placed inside the collection anyway).
presetsNoCollections to write. Default ["pwa"].
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.
startUrlNostart_url in the manifest; the scope is its directory. Default "/".
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.
appearanceNoHow the logo sits in the icon. Default: full-bleed, transparent; the icons that must be opaque take `opaque`.
themeColorNotheme_color in the manifest and <meta name="theme-color">. Default: backgroundColor.
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.
backgroundColorNobackground_color (splash screen) in the manifest. Default: the opaque icons’ fill.
removeBackgroundNoDrop the detected background layer so the SVG comes back transparent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose real behavior embedded in parameter text (iOS rejects alpha so icons are forced opaque, detail=high is ~4x the work, search is ~2.5x slower, maskable targets raise the padding floor), which is useful. But it never states that the tool writes files into outDir, whether existing files are overwritten, what permissions are needed, or what the call returns — significant gaps for a filesystem-mutating tool with zero annotation coverage.

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 pipeline summary and the 'which input' rule before the dense preset glossary, which is the right order for a 22-parameter tool. The definition-list layout for presets is scannable and each line carries a concrete path plus contents. It is long, but for this much surface area almost every line earns its place.

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?

With 22 parameters, a nested appearance/opaque object, no output schema and no annotations, the description should close more gaps than it does. It explains the pipeline and presets well, but the agent still cannot tell what gets returned (a plan? file list? logolab-icons.md?), whether a rerun clobbers an existing set, or how failures surface. Adequate, not complete, for a tool of this complexity.

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; this clears it because the per-preset meaning (pwa = favicon + PWA + manifest, tauri = src-tauri/icons, electron = build/, etc.) exists only in the description, not in the schema's bare enum list. That is genuine semantic value the agent cannot get from the structured fields, though mode/layering/strokes nuance remains mostly schema-borne.

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 first sentence gives a precise verb chain plus resource: trace the image to a clean SVG, then render it into icon collections. 'The whole pipeline in one call' implicitly separates it from a pure trace or a pure export step, and 'This is the tool to use on an AI-generated icon' narrows the input domain. It never names trace_icon or export_icons, so the differentiation is inferential rather than explicit.

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?

It states a clear positive use case ('use on an AI-generated icon') and the eight preset entries effectively tell the agent which output layout to pick for pwa vs tauri vs ios vs extension. What is missing is any exclusion: nothing says when to prefer trace_icon alone or export_icons instead, nor what to do for non-AI-source artwork.

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