Skip to main content
Glama

Set storage visibility

set_storage_visibility
Idempotent

Make a spawnpoint project's bucket (add_storage) public or private. Public: anyone can read any file at S3_PUBLIC_URL/, with no request to the app and no gate; right for a public gallery, wrong for user documents. Private: only the app's own key reads the bucket, and browsers get presigned URLs the app signs. Either way the bucket's file list stays private: a public bucket serves files by exact key only. Sets or unsets S3_PUBLIC_URL and restarts the app. A restricted project with a public bucket gets a warning to relay, since its files bypass the gate.

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_id": "<project_id>",
      "public": "<public>"
    },
    "name": "set_storage_visibility"
  }
}

Input Schema

NameRequiredDescriptionDefault
publicYestrue: anyone can read any object at S3_PUBLIC_URL/<key>, with no request to the app and no gate. false: only the app's own key reads the bucket
project_idYesthe id of the project

Output Schema

NameRequiredDescriptionDefault
envNo
noteYes
bucketNo
publicNo
statusYes
warningNo
read_onlyNo
project_idYes
public_urlNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: it sets or unsets S3_PUBLIC_URL and restarts the app, a real side effect an agent must anticipate. It also discloses that the file list stays private and that private mode produces presigned URLs, and surfaces the warning emitted for restricted projects.

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?

Front-loaded with the verb and effect, and each following sentence adds either a mode consequence or the restart/warning behavior. Slight redundancy between the description's public explanation and the schema's identically-scoped parameter description.

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?

With annotations covering safety and idempotency and an output schema present, the description only needs to explain the mode semantics and side effects, which it does thoroughly, including the app restart and the relayed warning.

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 description's public/private explanation largely restates the schema's own wording for the public boolean. It adds no format or constraint detail beyond the schema, so the baseline 3 applies.

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?

States a specific verb and resource: making a project's bucket (the one created by add_storage) public or private. The parenthetical tie to add_storage and the public/private binary separate it from set_visibility, set_public_paths and set_share_slug, though those siblings are never named.

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?

Gives concrete selection guidance for the mode choice: public is 'right for a public gallery, wrong for user documents'. It also flags the restricted-project case where the caller must relay a warning. What's missing is any routing away from adjacent tools such as set_public_paths or set_visibility.

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.