Skip to main content
Glama
MyArchitectAI MCP server

MyArchitectAI MCP server

Official

Save Image

save_image

Save an image from a public HTTPS URL, data URI, or local path to disk and return the saved file path, keeping generated outputs after their URLs expire.

Instructions

Save an image to local disk (defaults to the configured download directory) and return the saved file path. Accepts a public HTTPS URL, an inline data:image/;base64, URI, or a local file path. Generation output URLs are public but may expire, so saving keeps a permanent copy. Consumes no API balance.

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

Input Schema

NameRequiredDescriptionDefault
dirNoOptional target directory. Defaults to MYARCHITECTAI_DOWNLOAD_DIR (or ./renders).
urlYesImage to save: a public HTTPS URL, an inline data:image/<mime>;base64,<payload> URI, or a local file path (absolute, ~, or file://).
filenameNoOptional filename (extension inferred from the content type if omitted).

Output Schema

NameRequiredDescriptionDefault
pathYesAbsolute path the image was saved to.
bytesYesSize of the saved file in bytes.
mimeTypeYesContent type of the saved image.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false, openWorldHint=true, destructiveHint=false; the description adds real value by stating the default target directory, the three accepted input forms, the URL-expiry motivation, and zero balance cost. It stops short of covering overwrite behavior when the target filename already exists, which matters for a write tool flagged non-destructive.

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?

Four short sentences, front-loaded with purpose and return value before the input forms and rationale. The input-form sentence partially duplicates the schema but is defensible as quick-scan context.

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?

With an output schema present, the description need not explain return shape, though it helpfully mentions the saved path. For a simple three-parameter write tool it is nearly complete; only the handling of existing files at the destination is left 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 each of dir, url, and filename is already fully documented in the schema. The description restates the input forms and defaults but adds no format or edge-case detail beyond what the schema provides, so the baseline 3 applies.

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 first sentence names a specific verb and resource (save an image to local disk) and immediately states the return value (the saved file path). This clearly separates it from siblings like preview_image, validate_image_url, and text_to_image, which do not produce a persisted file.

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?

The description supplies the deciding context: generation URLs are public but expire, so saving preserves a permanent copy, and no API balance is consumed. It does not explicitly name a sibling alternative (e.g., preview_image for a transient look), but the when-to-use trigger is clear.

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