Skip to main content
Glama

asset_save_inline_svg

Saves an inline SVG as a complete asset bundle including master.svg, favicons, PWA icons, and app icon sets for multiple platforms, with validation against the original svg_brief.

Instructions

Round-trip endpoint for inline_svg mode. After you (the LLM) emit the in chat, immediately call this tool with that SVG text so the server writes a complete asset bundle to disk: master.svg + (for favicon) icon.svg + icon-dark.svg + favicon-{16,32,48}.png + favicon.ico + apple-touch-icon.png (opaque) + pwa-192.png + pwa-512.png + pwa-512-maskable.png + manifest.webmanifest + head-snippet.html + (for app_icon) the full iOS AppIconSet + Android adaptive (foreground+background+monochrome) + PWA maskable + visionOS. Returns an AssetBundle with file paths the user can open. Validates the SVG against the original svg_brief (viewBox, path count, palette, forbidden elements).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
svgYesThe full <svg>...</svg> text you just emitted in chat.
asset_typeYes
brand_bundleNo
expected_textNo
platformsNoFor asset_type=app_icon. Defaults to ['all'].
dark_modeNoFor asset_type=favicon: also emit icon-dark.svg (prefers-color-scheme: dark). Default true.
app_nameNoFor asset_type=favicon: name/short_name written into manifest.webmanifest.
theme_colorNoFor asset_type=favicon: theme_color hex for manifest + <meta>.
background_colorNoFor asset_type=favicon: PWA splash background_color hex.
output_dirNo
Behavior4/5

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

Discloses that it writes multiple files to disk, validates SVG against original brief, and returns an AssetBundle. Provides sufficient behavioral detail given limited annotations (only openWorldHint=false).

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 purpose and usage trigger. Each sentence adds value, though the paragraph is dense and could be better structured with bullet points for clarity.

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?

Covers main workflow, validation, and output files. Could elaborate on optional parameters like brand_bundle and expected_text, and since there's no output schema, more details on return structure would help.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Adds value beyond schema by mentioning validation details (viewBox, path count, etc.) and listing output files. Schema coverage is 60%, and description compensates with context on svg parameter and overall behavior.

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?

Clearly states it is a round-trip endpoint for inline_svg mode, explaining that it writes asset bundles from SVG text emitted in chat. Distinguishes itself from sibling tools (e.g., asset_generate_logo) by focusing on saving already generated SVGs.

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?

Explicitly tells when to use: immediately after emitting SVG in chat. Does not explicitly state when not to use or list alternatives, but purpose and sibling names imply alternatives for different tasks.

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/MohamedAbdallah-14/prompt-to-asset'

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