Skip to main content
Glama

Export an icon collection

export_icons

Render an SVG or raster logo into platform-ready icon sets on disk for PWA, favicon, Tauri, Electron, Android, iOS, and extensions, including manifests and icon containers.

Instructions

Render a logo (SVG or raster) into a complete icon collection on disk. 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.

An SVG source is rendered analytically at every size, so a 16px favicon is drawn, not downsampled. Maskable/adaptive icons get the platform safe zone automatically (Android keeps only the centre 66% circle). Also emits the real multi-image favicon.ico / .icns containers and the text assets each platform needs (webmanifest, snippet, Contents.json, adaptive-icon XML).

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

Input Schema

NameRequiredDescriptionDefault
imageYesPath to the logo: an SVG (best — rendered crisply at every size) or a raster image.
sizesNoExtra arbitrary sizes, written to icons/icon-<n>.png.
outDirYesDirectory to write into. Files land in the layout each preset expects (public/, src-tauri/icons/, res/, …).
appNameNoName used in the webmanifest and the logolab-icons.md notes. Default "App".
presetsNoWhich collections to write. Default ["pwa"]. Several may be combined.
startUrlNostart_url in the manifest; the scope is its directory. Default "/".
appearanceNoHow the logo sits in the icon. Defaults keep the source art full-bleed and transparent; the icons that must be opaque take `opaque`.
themeColorNotheme_color in the manifest and <meta name="theme-color">. Default: backgroundColor.
backgroundColorNobackground_color (splash screen) in the manifest. Default: the opaque icons’ fill.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full behavioral burden and does well: it discloses analytic SVG rendering, maskable/adaptive safe zones, forced opaque iOS output, automatic opaque background selection, file layouts, and generated text assets. It does not state whether existing files in outDir are overwritten or merged, nor does it fully describe the return/report semantics, which are important for a disk-writing operation.

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?

The description is front-loaded with purpose and then organized into a readable preset list; its length is justified by the number and complexity of presets. There is some repetition around generated asset types and safe-zone behavior, but little content is wasted.

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?

For a complex 9-parameter tool with nested appearance settings and no output schema, the description covers platform layouts, rendering semantics, and opaque-icon handling well. It still leaves gaps around existing-file behavior and the exact return or report shape, so it is not fully complete.

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 description coverage is 100%, so the baseline is 3, but the description adds substantial preset semantics by explaining each collection's output directory and asset set. It also clarifies appearance defaults and opaque icon behavior, though much individual parameter meaning is already covered by the schema.

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 states a specific verb and resource: render a logo SVG or raster into a complete icon collection on disk, with named presets. It is clear what the tool does, but it does not explicitly distinguish itself from the sibling make_app_icons.

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 preset list implies when each platform-specific collection is appropriate, so usage can be inferred from the target platform. However, there is no explicit when-to-use, when-not-to-use, or alternative guidance such as when to prefer make_app_icons.

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