Skip to main content
Glama

Get file sharing

get_file_sharing
Read-onlyIdempotent

See who can open a Files document, folder, or artifact: its owner, access given to the team, the link, and individual people, and access inherited from parent folders. Only someone who can change the file's sharing (its owner or a workspace admin) can read it. 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>"
    },
    "name": "get_file_sharing"
  }
}

Input Schema

NameRequiredDescriptionDefault
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/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, so the safety profile is covered. The description adds real value beyond that: an authorization gate and the shape of the returned sharing information (including inherited parent-folder access), which matters because there is no output schema. It does not discuss failure behavior when permission is missing.

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 two sentences are dense but well-ordered, front-loading what is returned and then the access gate. The trailing sentence about calling skills for multi-step Replo work is unrelated boilerplate that dilutes the definition and does not help an agent decide anything about this 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 a single-parameter read with no output schema, the description is largely sufficient: it explains what is returned and who may call it. The only lingering gaps are how to source the fileId and what happens on a permission-denied response.

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?

With one parameter at 0% schema description coverage, the description carries the burden. It partially compensates by clarifying that the target can be a 'document, folder, or artifact', which gives meaning to fileId beyond the bare uuid format. It still says nothing about how to obtain the id or whether folders and artifacts behave differently.

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 — 'See who can open a Files document, folder, or artifact' — and then enumerates exactly what the answer contains (owner, team access, link, individual people, inherited access). It is unambiguous and clearly the read-side counterpart to set_file_sharing without needing to name it.

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 supplies a concrete precondition that determines eligibility to call: 'Only someone who can change the file's sharing (its owner or a workspace admin) can read it.' That tells the agent when the call will succeed. It does not explicitly route to alternatives (e.g., get_file for content vs this for permissions), 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