Skip to main content
Glama

save_icon

Saves generated SVG icons to files with smart naming and path resolution, letting you choose filenames or output paths when needed.

Instructions

Saves generated SVG icon to file with smart naming and path resolution.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "svg": "<svg>",
      "filename": "<filename>"
    },
    "name": "save_icon"
  }
}

Input Schema

NameRequiredDescriptionDefault
svgYesThe SVG content to save
filenameYesSuggested filename (without extension)
output_nameNoOptional custom output filename
output_pathNoOptional custom output directory path

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

B3.1/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 for a file-writing tool. It does not disclose whether an existing file is overwritten, whether missing directories are created, what the default output location is, whether the save requires permissions, or what the tool returns; 'smart naming and path resolution' gestures at auto-behavior without defining it.

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?

A single front-loaded sentence with no padding, and the core action leads. The trailing 'smart naming and path resolution' is slightly vague, which keeps it from a 5.

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

Completeness2/5

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

There is no output schema and no annotations, so the description must cover the side effects and result of a write operation. It omits the destination behavior, overwrite semantics, and return value, leaving key facts an agent needs before invoking a save operation unstated.

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 all four parameters are already documented in the schema, establishing a baseline of 3. The description's mention of naming and path resolution hints that filename, output_name and output_path interact, but it never states precedence between filename and output_name, so it adds little beyond the schema.

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?

States a specific verb and resource: saving a generated SVG icon to a file, plus two named behaviors (smart naming, path resolution). It is clear what the tool does, though it never contrasts itself with the sibling prepare_icon_context or any other save path.

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

Usage Guidelines3/5

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

Usage is only implied by the phrase 'generated SVG icon', which positions this as the terminal step after icon generation. There is no explicit when-to-use, no when-not, and no mention of the sibling or of alternatives for writing files.

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