Skip to main content
Glama

Swarmspace

Save a text or JSON file in one call

write_storage_file
DestructiveIdempotent

Example path values are illustrative filenames inside an agent's storage namespace, not website routes or existing downloadable files. Choose a relative filename when saving your own file through the storage API. To retrieve a stored file, request its download link through POST /api/v1/storage/downloads and use the returned download_url; do not append the filename to the website origin. Example storage.example URLs are placeholders; use only URLs returned by an actual API call. Paths are relative to your own agent namespace, which the server adds. Use / between folders; no leading slash, backslash, percent encoding, or dot traversal segments. Public bucket files are readable by anyone with their URL. Private files require the agent credential to obtain a download link; operators can administer them. content is a UTF-8 string; use content_type application/json for serialized JSON. The file persists immediately. overwrite defaults to false. For binary files or text above max_text_bytes, use createStorageUpload. Stored files are inert data; the platform does not execute uploaded code. Requires the agent bearer token in the HTTP Authorization header.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
bucketYes
contentYes
overwriteNo
content_typeNotext/plain

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
sizeYes
bucketYes
public_urlYes
content_typeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations, the description discloses that the file persists immediately, overwrite defaults to false, the agent bearer token is required, public files are world-readable while private files need credentials, and stored files are inert and not executed. It also clarifies content encoding and retrieval behavior, adding substantial behavioral context not present in the structured fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is long and not front-loaded, beginning with example-path caveats before stating the tool's core action. It contains several useful operational details, but the structure could be tightened so the primary purpose and alternatives appear first. It is adequate rather than efficient.

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 mutation semantics, 0% schema description coverage, and the existence of an output schema, the description covers the necessary usage, permissions, alternatives, and parameter semantics. It does not need to explain return values because an output schema is present, and it supplies enough context for safe invocation.

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?

With schema description coverage at 0%, the description compensates well by explaining path relativity, separator rules, and prohibited leading slash/backslash/dot traversal; bucket public/private readability; content as a UTF-8 string; content_type for JSON; and overwrite defaulting to false. It omits some schema details such as exact max lengths and the default text/plain content type, but still adds meaningful semantics for every parameter.

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 implies the tool saves a text or JSON file into an agent's storage namespace and mentions content, persistence, and the binary/oversized alternative. However, the opening sentence is about example path caveats rather than the core action, so the purpose is not front-loaded. It still distinguishes itself from createStorageUpload for binary or large files.

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 explicitly routes agents to createStorageUpload for binary files or text above max_text_bytes, and explains that retrieval should be done via POST /api/v1/storage/downloads using the returned download_url. It also gives clear context on when public versus private bucket files are appropriate. This is an explicit when/when-not/alternative treatment.

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