Skip to main content
Glama
Jambozx

OnlineCyberTools MCP (280+ filterable tools)

webdev_svg_optimizer

Read-onlyIdempotent

Minify and optimize SVG markup by removing XML declarations, comments, DOCTYPE, empty elements, default attributes, redundant groups, and whitespace. Get optimized output, size savings, and a data-URL preview.

Instructions

SVG Optimizer and Minifier. Minify and optimize an SVG markup string by stripping the XML declaration, comments, DOCTYPE, empty elements, default attributes, redundant groups, and whitespace, plus shortening colors and rounding coordinate precision. Pass the raw SVG text in the svg field; the file is never uploaded. Use webdev_css_minifier or webdev_html_minifier for CSS/HTML, or webdev_data_uri_generator and webdev_base64_image_encoder to embed the result. Runs locally: read-only, non-destructive, contacts no external service, and is rate-limited (60 requests/minute for anonymous callers). Returns the optimized markup, before/after byte sizes, compression ratio, the list of optimizations applied, and a base64 data-URL preview.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
svgYesRaw SVG markup to optimize. Must contain a valid svg root element or the request is rejected.
optionsNoOptional toggles; each optimization defaults to enabled unless explicitly set to false.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
optimizedSvgNoThe optimized SVG markup string.
originalSizeNoCharacter length of the input SVG.
optimizedSizeNoCharacter length of the optimized SVG.
compressionRatioNoPercent size reduction relative to the original.
bytesSavedNoCharacters removed (original minus optimized).
optimizationsAppliedNoHuman-readable labels for each optimization performed.
previewDataUrlNoBase64 data URL of the optimized SVG for preview.
Behavior5/5

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

Annotations already mark readOnlyHint=true and destructiveHint=false. The description adds valuable context: runs locally, contacts no external service, rate-limited (60 req/min), and details the return fields (optimized markup, sizes, ratio, optimizations list, base64 preview). No contradiction.

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 compact and well-structured. It starts with the core purpose, lists operations, provides usage instructions, compares with siblings, mentions behavioral traits, then return values. Every sentence adds value without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 2 parameters (one nested), the description covers purpose, input format, alternatives, behavioral traits (local, rate-limited), and output fields. With an output schema implied, the description is sufficiently complete for effective use.

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 baseline is 3. The description adds minimal value beyond the schema, merely reiterating that the svg field receives raw SVG text and that options have defaults. The return value details are helpful but not parameter-specific.

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 clearly states the tool's purpose: optimize/minify SVG strings. It specifies operations (strip XML declaration, comments, DOCTYPE, etc.) and distinguishes from siblings by naming related tools for CSS/HTML and data URI generation.

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

Usage Guidelines5/5

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

Explicitly states when to use this tool (for SVG optimization) and when to use alternatives (webdev_css_minifier for CSS, webdev_html_minifier for HTML, webdev_data_uri_generator or webdev_base64_image_encoder for embedding). Also clarifies that it runs locally and is read-only, guiding appropriate use.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Jambozx/onlinecybertools-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server