Skip to main content
Glama

optimize_svg

Optimize SVG files with SVGO using custom or default settings. Specify an input file, optionally set output path and plugin configuration, and reduce file size while preserving visual quality.

Instructions

Optimize SVG files using SVGO (SVG Optimizer) with customizable configuration

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputPathYesPath to the input SVG file (required)
outputPathNoPath to the output SVG file (optional - if not provided, overwrites the original file)
svgoConfigNoCustom SVGO configuration (optional - uses default if not provided)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of disclosing behavioral traits, but it only says 'Optimize' and does not mention that the original file may be overwritten when outputPath is omitted, whether the operation is destructive/irreversible, or what the tool returns. The SVGO reference gives some expected behavior but leaves important side effects unstated.

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 a single front-loaded sentence with no filler; 'SVG Optimizer' is slightly redundant but not harmful. It is concise and scannable, though its compactness does omit behavioral context that is scored in other dimensions.

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?

The input schema fully documents all three parameters, including the overwrite behavior of outputPath and defaults for svgoConfig. However, with no annotations and no output schema, the definition lacks explicit guidance about side effects, safe usage, and what a successful call returns, making it adequate but 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 description coverage is 100%, with meaningful descriptions for inputPath, outputPath, and svgoConfig, so the description does not need to repeat parameter details. The phrase 'customizable configuration' lightly reinforces svgoConfig but adds little beyond what the schema already provides.

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 ('Optimize') and resource ('SVG files'), and further identifies the implementation via SVGO. It is clear what the tool operates on, though it does not explicitly differentiate from siblings; the sibling names are unrelated enough that this is not a major gap.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance about when to use optimize_svg versus figma_compare or snapdom_screenshot, nor any mention of prerequisites, exclusions, or common scenarios. The only implied usage is the general 'optimize' verb, which is not sufficient for an agent to make a confident selection decision.

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

Deploy Server

Other Tools