Skip to main content
Glama

image_tools_svg_to_png

Rasterize an SVG to crisp PNG or WebP at any set of sizes, with optional background and padding. For favicons, app icons, social images and engines that do not read SVG. Price: $0.01 USDC via x402, charged only on success. Part of Image tools: Everyday image work for sites and apps: convert and compress to WebP/AVIF/JPEG/PNG, responsive srcset sets with ready markup, colour palettes, pixel diffs for visual regression, SVG to PNG, QR codes, blur placeholders, and an inspection that says what to fix before shipping an image..

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "image_tools_svg_to_png"
  }
}

Input Schema

NameRequiredDescriptionDefault
svgNoSVG markup as text.
sizesNoOutput widths in pixels; height follows the SVG's aspect ratio.
formatNopng
svgUrlNo
paddingNoEmpty margin as a share of the output size (0.1 = 10% on every side).
backgroundNoFill behind the drawing; transparent when omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does add genuinely useful behavior beyond structured fields: the $0.01 USDC x402 charge and that billing occurs only on success. However, it never says what the tool returns (image bytes, URLs, an array when multiple sizes are requested) or how failures surface, which is a real gap for a paid, non-annotated tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first three sentences are front-loaded and earn their place: purpose, use cases, price. The trailing "Part of Image tools: ..." sentence is roughly sixty words of catalog boilerplate listing sibling capabilities and duplicates information an agent can get elsewhere; removing it would improve the definition.

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 six-parameter paid tool with no annotations and no output schema, the description covers purpose, use case and cost but leaves two important things unstated: which of svg/svgUrl to supply when neither is required, and what the caller receives back (especially for multi-size requests). Minimum viable, not complete.

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 67%, with svg, sizes, padding and background documented in the schema already; the description only restates those at a high level. It adds nothing about the two undocumented inputs, and critically never explains the relationship between svg and svgUrl (mutually exclusive? either-or?) despite neither being required — but the format enum and size semantics of the schema do most of the work, so baseline 3 holds.

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 names a specific verb and resource: rasterize an SVG to PNG or WebP at chosen sizes. That is concrete enough to distinguish it from generic siblings like image_tools_convert, though it never explicitly states the boundary between the two, so it falls short of a 5.

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?

"For favicons, app icons, social images and engines that do not read SVG" gives a clear context for choosing this tool. There is no when-not guidance and no named alternative (e.g. when to use image_tools_convert instead), which keeps it below a 5.

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