Skip to main content
Glama

photo_svg_to_png

SVG to PNG — Rasterize an SVG vector file to PNG (or JPG/WebP) at a chosen resolution, DPI, and background color. [category: photo]

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dpiNoString, not a number — only '72', '96', '144', '300'; anything else silently becomes '96'.96
fileYesSVG file (max 25MB)
widthNoOutput width in px. 0 (default) = render at the SVG's intrinsic size.
heightNoOutput height in px. 0 = intrinsic.
bg_colorNo'transparent', 'white', or a hex color.transparent
output_formatNojpg cannot hold transparency: without an explicit bg_color the artwork is flattened onto white, never black.png

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / width / x-ui / pair_label
      Added value: +"Size"
    • addedInput schema / properties / width / x-ui / pair_with
      Added value: +"height"
  2. Changed2 schema fields changed
    • addedInput schema / properties / height / x-ui
      Added value: +{
      +  "unit": "px"
      +}
    • addedInput schema / properties / width / x-ui
      Added value: +{
      +  "unit": "px"
      +}
  3. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations only provide readOnlyHint=false, openWorldHint=false, and destructiveHint=false, so the description carries most of the behavioral burden. It explains the core transformation (rasterization) and mentions output format choices, but does not disclose side effects, output return details, or behavior when width/height are zero. The schema covers edge cases like invalid DPI values, so the description adds some but not rich behavioral context.

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

Conciseness5/5

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

The description is a single focused sentence that front-loads the action and output format, then lists the adjustable options. The [category: photo] tag is a useful, compact classification. There is no wasted text.

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 tool with six parameters and no output schema, the description is reasonably complete: it names input type, output formats, and key controls. The schema covers parameter details. It does not mention return behavior or potential side effects, but the core decision-making information for an agent is present.

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 description coverage is 100%, so the parameters are already fully documented. The description restates the concept of resolution, DPI, and background color without adding new meaning beyond what the schema provides. This meets the baseline but does not exceed it.

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?

The description states a specific action ('Rasterize an SVG vector file to PNG') and names the target formats (PNG, JPG, WebP) plus key options (resolution, DPI, background color). It clearly identifies the tool's resource and distinguishes it from general converters like photo_format_converter by specifying SVG as the input.

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?

The description implies the primary use case: converting an SVG vector file into a raster image. It does not explicitly name alternatives or exclusion conditions, but the title and phrasing make the intended context clear enough for an agent to select it over sibling tools.

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