Skip to main content
Glama

Save a picture or video

save_image
Destructive

Write a generated picture or video to an absolute file path at full size, keeping any existing file unless overwrite is enabled.

Instructions

Writes a picture or video, at full size, to a file. The path must be absolute; an existing file is kept unless overwrite is true.

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": {
      "asset_id": "<asset_id>",
      "path": "<path>"
    },
    "name": "save_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute path of the file to write.
asset_idYesThe id (ast_…) of the picture or video to save.
overwriteNoReplace a file that is already there (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.4.2
    • addedInput schema / properties / asset_id / description
      Added value: +"The id (ast_…) of the picture or video to save."
    • addedInput schema / properties / overwrite / description
      Added value: +"Replace a file that is already there (default false)."
  2. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, so the safety profile is known; the description adds real value by explaining the destructiveness is conditional, gated on overwrite=true, and that output is written at full size with no resizing. It still doesn't reveal what the call returns or any permission expectations, keeping it below a 5.

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?

Two tightly written sentences with zero filler. The core action and the file-writing constraint are front-loaded, and the overwrite caveat follows immediately where it's needed.

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 three-parameter write tool with annotations and no output schema, the description covers the essentials: what is written, path requirements, and overwrite behavior. The only omission is any return-value or error behavior, which is minor given no output schema exists.

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%, and the schema already documents path (absolute), asset_id (ast_ pattern), and overwrite (default false). The description reinforces the absolute-path and overwrite semantics but contributes little new meaning beyond the schema, fitting the baseline 3.

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 pairs a precise verb ("Writes") with a specific resource ("a picture or video") and its destination ("to a file"), which distinguishes it cleanly from read-side siblings like get_image or generate. It stops short of naming an alternative or explicitly contrasting with them, so it lands at 4 rather than 5.

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?

It supplies two prerequisites that guide correct invocation: the path must be absolute and an existing file is preserved unless overwrite is true. However, it never states when to pick this over get_image/generate/gallery flows, so the when-to-use guidance is only implied.

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