Skip to main content
Glama

ICO to PNG Converter API - extract largest or all embedded icon sizes with transparency

ico_to_png
Read-onlyIdempotent

Convert Windows and favicon .ico files to crisp transparent PNG images. Automatically detects all embedded icon resolutions (16x16, 32x32, 48x48, 64x64, 128x128, 256x256), extracts either the largest sharpest frame or every embedded frame, optionally resizes (16-2048 px) or flattens onto a solid hex background. 0 AI, local Pillow, deterministic, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.002/call via x402 at https://radarbg.com/x402/ico-to-png.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "mode": "largest",
      "fileContent": "AAABAAMAEBAAAAAAIABWAAAANgAAACAgAAAAACAAbgAAAIwAAABAQAAAAAAgANMAAAD6AAAAiVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAHUlEQVR4nGPkW/ryPwMFgIkSzaMGjBowasBgMgAA00cCu/YdJAEAAAAASUVORK5CYIKJUE5HDQoaCgAAAA1JSERSAAAAIAAAACAIBgAAAHN6evQAAAA1SURBVHic7c5BAQAwCMSwYwLm38DEoWLI4JMaaOq+/lnsbM4BAAAAAAAAAAAAAAAAAACSZAASBQLbdxYPJAAAAABJRU5ErkJggolQTkcNChoKAAAADUlIRFIAAABAAAAAQAgGAAAAqmlx3gAAAJpJREFUeJzt0EERwCAAwDBAAP4NIA4VQ0YeaxT0Ove53/ixpQO0BugArQE6QGuADtAaoAO0BugArQE6QGuADtAaoAO0BugArQE6QGuADtAaoAO0BugArQE6QGuADtAaoAO0BugArQE6QGuADtAaoAO0BugArQE6QGuADtAaoAO0BugArQE6QGuADtAaoAO0BugArQE6QGuADtAeuaoDG21znIAAAAAASUVORK5CYII="
    },
    "name": "ico_to_png"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoExtract the largest embedded frame or all embedded icon sizeslargest
sizeNoOptional output width/height in pixels (Lanczos resize)
backgroundNo'transparent' (default) or a hex colour like '#ffffff'transparent
fileContentYesBase64-encoded .ico file (max 10 MB)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and openWorld, so the safety profile is covered. The description adds genuinely useful context beyond that: deterministic local Pillow processing, no AI, nothing stored, a 5 calls/day free tier, and two auth paths (X-API-Key vs x402) with pricing. It stops short of describing error behavior or quota-exceeded responses.

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 verb and resource, then capabilities, then commercial terms in a fixed order; no sentence is wasted. The pricing/URL tail is dense but is genuinely decision-relevant for a paid API.

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?

There is no output schema, so the description carries the burden of explaining what comes back, and it never states the response shape (base64 JSON vs binary) or how multiple frames are returned in 'all' mode. Input handling, limits and auth are well covered, so the gap is confined to the return contract.

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 coverage is 100%, so the schema already documents mode, size range, background format and the 10 MB base64 limit. The description largely restates those values (16-2048 px, hex background) rather than adding new semantics such as what a resize does to already-small frames. Baseline 3 is appropriate.

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 ('Convert Windows and favicon .ico files to ... PNG images') and enumerates exactly what gets extracted (largest frame vs every embedded frame). It is immediately distinguishable from the other format-converter siblings, which handle different source formats.

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 two modes are explained inline, which implies when to pick 'largest' versus 'all', but there is no explicit when-to-use/when-not guidance or prerequisite statement (e.g. what to do with the API key before the first call). Usage context is implied rather than stated.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources