Skip to main content
Glama

Share folder

share_folder
DestructiveIdempotent

Create or update the shareable link for a folder, optionally changing its expiry, download restriction, password, watermark, or whether the page accepts uploads. A hosted app on the folder follows the link's watermark, and lets visitors download originals while the link allows downloads, asking for the link's password if it has one. Returns a URL that anyone can open. Exposure: anyone with the link can view the folder and its assets without signing in. enable_uploads is the route for FILES THAT CANNOT BE OBTAINED ANY OTHER WAY: a person who opens the returned URL can drop files on it, and they then show up in list_assets on that folder. This is the LAST of three upload routes and the only one that needs a live human. A file at a URL Playbook can fetch goes through upload_from_url(s). Bytes the caller HOLDS — generated locally, returned as base64, or on disk — go through create_upload_url when the caller can make HTTP requests. This route is for when both are impossible: no reachable URL and no way to make a request.

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": {
      "token": "<token>"
    },
    "name": "share_folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYesFolder token
passwordNoPassword-protect the link; empty string clears it
organizationNoWorkspace slug, as returned by list_organizations. Omit it when the account has a single workspace — it is then resolved from your token. Pass it only when the account has several, or when you mean a workspace other than the obvious one.
enable_uploadsNoLet anyone holding the link add files to the folder without signing in. It has two consequences. There is NO upload-only mode — such a link still shows the folder's contents to whoever opens it. And this endpoint returns the folder's EXISTING link when it already has one, so turning uploads on grants upload rights to everyone who was already given that URL for viewing; share a fresh folder instead if that matters. Requires a plan with shared-link customization, otherwise the call fails with 403. Pair it with `password` and `expiration_date` when the link leaves a trusted group.
watermark_sizeNo
watermark_textNoText stamped over every image the shared page shows, and every image a hosted app on this folder shows; empty string removes it. Requires a plan with shared-link customization (403 otherwise).
expiration_dateNoISO 8601 expiry; empty string clears an existing expiry
disable_downloadsNoPrevent downloads from the shared page
watermark_opacityNo
watermark_positionNo`fill` repeats the text across the image
watermark_text_colorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only supply the coarse profile (destructive, idempotent, open-world); the description goes well beyond them by disclosing the public exposure model (anyone with the link views without signing in), the 403 plan gate on link customization, and the crucial idempotency side effect that an existing link is returned so new upload rights propagate to prior viewers. It also states the return value (a URL anyone can open) and where uploaded files surface (list_assets).

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 first sentence is well front-loaded and the enable_uploads guidance is genuinely useful, but it is delivered in a long, capitalized, essay-like block with several sentences that could be compressed. The hosted-app/watermark paragraph is tangentially relevant and adds bulk without changing how an agent calls the tool.

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?

For an 11-parameter mutation tool with no output schema, the definition covers the highest-risk behavior (public exposure, upload-rights side effect, plan gating) and states the return value, which is what an agent most needs. Gaps remain around how download restriction interacts with hosted apps and around the watermark styling params, but nothing essential to a correct call is missing.

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 73%, and the description meaningfully adds to it: `enable_uploads` is explained in depth (no upload-only mode, retroactive grant to existing link holders, plan requirement), empty-string clearing semantics are echoed for password and expiry, and pairing with password/expiration_date is recommended for untrusted audiences. The watermark trio (opacity, position, text color) and `disable_downloads` receive no meaning beyond the schema, keeping it below 5.

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 opening sentence names a specific verb (create/update) and resource (a folder's shareable link) and enumerates the mutable facets: expiry, download restriction, password, watermark, uploads. An agent can immediately tell this configures folder-level link sharing, not asset-level sharing or publishing.

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?

Very strong conditional routing for `enable_uploads`: it is explicitly placed as the third and last of three upload routes, with the exclusion conditions stated (no reachable URL, no way to make an HTTP request) and named alternatives (upload_from_url, create_upload_url, plus list_assets to observe results). The rest of the parameters get no equivalent when-to-use guidance, and there is no signal on when to prefer this over sibling sharing tools, so it falls short of a full 5.

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