Skip to main content
Glama

Save attached files

fs_import

Save files from this chat into the project: the user's attachments (their photos for the site), or an image your app's image generation made in this chat. For an image you made, always pass generated: true (anything you created, not a file the user attached); leave it out only for the user's own files. Give files: the attachments or images, as your app passes them (ChatGPT fills in each one's download_url and file_id); never for web addresses. They go into data/import (path: another folder under data/), which isn't served, never over a file already there (a second cake.jpg becomes cake-2.jpg), and are recorded as the user's own (with generated: true, as made from a prompt). Images (HEIC too), PDFs, documents, video and other files of up to 50 MB each, 20 files and 200 MB a call; programs, scripts, HTML pages and SVGs with scripts are refused. Returns each saved file's path, size and, for an image, its real width and height; then images view (paths: ["data/import"]) to see which is which, and images place to put each into its slot. Called without files (your app doesn't pass attachments), it returns the portal's upload link to give the user.

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": {
      "project": "<project>"
    },
    "name": "fs_import"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoThe folder under data/ to save into (default "data/import", not served).
filesNoThe files the user attached, up to 20. Left out when your app doesn't pass attachments: the answer is then the upload link.
projectYesProject slug or id.
generatedNotrue for an image your app's image generation made (anything you created, not a file the user attached): recorded as made from a prompt, never as the user's own work, place or people. Leave it out only for the user's own files. Saved one without it? Call fs_import again with the same file and generated: true: the record is corrected, nothing is saved twice.
idempotency_keyNoAny unique string; repeating a call with the same key does not repeat its effect.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations, it discloses destination behavior (data/import, not served), collision handling (cake-2.jpg rather than overwrite), recording semantics, size/count limits, rejected file types, and the fallback upload-link behavior. This is unusually rich behavioral context for a write-like import operation.

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?

The purpose and key routing rule are front-loaded, and most sentences carry necessary constraints. The prose is dense and occasionally run-on, but it is appropriately sized for a tool with several behavioral rules and limits.

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?

The description covers the import behavior, constraints, fallback when files are absent, and even the return information despite there being no output schema. It gives the agent enough context to invoke the tool correctly and understand expected follow-up actions.

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?

Schema coverage is already 100%, so the schema supplies baseline parameter documentation. The description still adds useful meaning, especially for generated: true versus user files, the files array source, and path behavior under data/.

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 states a specific verb and resource: save files from this chat into the project. It clearly distinguishes user attachments from images generated by the app, so an agent can tell exactly what this tool handles.

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

Usage Guidelines5/5

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

It gives explicit conditions for using the tool: pass generated: true for app-created images, omit it for the user's own files, never use it for web addresses, and call without files when attachments are unavailable. These are concrete when-to-use and when-not-to-use rules.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources