Skip to main content
Glama

save_image_to_file

Save a Docker image as a tar archive to a host file, with options to keep the image name and overwrite existing files.

Instructions

Save an image as a tar archive written to a file on the host running this MCP server.

Streams the archive straight to disk (no in-band byte cap), so it handles large images. The file is written by the server's user; ~ is expanded and an existing file is refused unless overwrite=True.

args: name - Image name or id dest_path - Destination path on the server host for the tarball named - Whether to keep the image name when saving overwrite - Replace dest_path if it already exists (default False) returns: dict - {"path": , "bytes_written": int}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
namedNo
dest_pathYes
overwriteNo
Behavior5/5

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

The description discloses important behaviors beyond annotations: streaming to disk with no byte cap, handling large images, server user file ownership, tilde expansion, and overwrite behavior. Annotations are minimal and do not contradict; description fully compensates.

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 well-structured with a concise overview paragraph followed by a clear args list and return statement. Every sentence adds value without redundancy or wordiness.

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?

Given the tool's complexity (4 parameters, no output schema), the description covers all necessary context: purpose, behavior, parameters, return format, and edge cases like large images and overwrite. It is fully complete for an agent to invoke correctly.

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

Parameters5/5

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

With 0% schema description coverage, the description provides detailed explanations for all four parameters, including defaults and clarifications (e.g., 'named - Whether to keep the image name'). This fully compensates for the lack of schema descriptions.

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 saves an image as a tar archive to a file on the host, using specific verbs and resource. It distinguishes from siblings like 'save_image' by explicitly mentioning file output and streaming. The purpose is unambiguous.

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?

The description implies usage for saving images to files, especially large ones due to streaming. However, it does not explicitly state when not to use it or list alternatives such as 'save_image' for other purposes, leaving usage guidance implicit.

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/GavinLucas/docker-mcp'

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