Skip to main content
Glama

Set file sharing

set_file_sharing
DestructiveIdempotent

Change who can open a Files document, folder, or artifact. Only its owner or a workspace admin can. Each access entry sets one audience: "team" (everyone in the project), "link" (anyone with the URL, signed in or not, which publishes the file), or a project member's email. A role of null removes that access given on this file; access inherited from a parent folder, such as a shared folder, stays and is listed under inherited. Audiences you do not list keep their access. All entries apply together or not at all. Returns who can open the file afterwards, including artifactUrl for an artifact. For multi-step Replo work, call skills with name "replo".

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": {
      "fileId": "<fileId>",
      "access": "<access>"
    },
    "name": "set_file_sharing"
  }
}

Input Schema

NameRequiredDescriptionDefault
accessYesAccess to set. Audiences not listed keep their current access. Each audience or email appears once.
fileIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / properties / fileId / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
  2. Added

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the supplied annotations it discloses that role null removes only directly-granted access while inherited access from a parent folder persists, that unlisted audiences keep their access, and that entries are atomic ("apply together or not at all"). It also describes the post-state return value including artifactUrl, which is meaningful extra context for a destructiveHint=true mutation.

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 capability and permission constraint are front-loaded, then audience semantics, then atomicity and return value, so it reads in the order an agent needs. It is dense but each sentence carries information; the closing Replo routing sentence is tangentially useful rather than core, keeping it just short of maximal conciseness.

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 a destructive, open-world mutation with no output schema, the definition covers permissions, removal vs. inheritance behavior, atomicity, and the shape of the returned access list including artifactUrl. The only gap is that it never explains fileId's valid targets beyond a generic mention of documents, folders, and artifacts.

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 50% and the nested access array already documents the three audience consts and null-removal semantics, so the description largely restates structure rather than adding per-parameter meaning. It does clarify that fileId targets a document, folder, or artifact and reinforces one-entry-per-audience grouping, which is a modest gain over the schema.

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 opens with a specific verb and resource ("Change who can open a Files document, folder, or artifact") and names the three audience kinds it can set. An agent can immediately distinguish this write operation from the sibling read tool get_file_sharing without inspecting either schema.

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?

It states the authorization precondition ("Only its owner or a workspace admin can") and adds a routing hint for multi-step Replo work (call skills with name "replo"). It stops short of explicitly naming get_file_sharing as the read alternative or stating when not to call this, so it is clear context without full exclusions.

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