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.

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

A3.8/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 genuinely new behavioral context: a hard authorization gate ('only owner or workspace admin can read it') and the fact that inherited parent-folder access is folded into the result. It does not describe what happens on an unauthorized call (error vs empty), which prevents a 5.

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

Conciseness5/5

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

Two sentences, no filler. The result content is front-loaded and the access restriction follows as a qualifier where it belongs.

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?

With no output schema, the description usefully enumerates what the response contains, and the auth gate plus annotations fully cover behavioral risk for a read-only tool. The only meaningful gap is the parameter's expected identifier format/scope, which is left entirely to a 0%-described schema.

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?

The single fileId parameter has 0% schema description coverage, so the description must compensate. It partially does by establishing that the ID may refer to a document, folder, or artifact, but it never states the expected format (uuid) or whether a folder ID returns recursive children.

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 gives a specific read verb ('See who can open') plus the exact resource and enumerates the four access dimensions returned: owner, team access, link, individual people, and inherited parent access. An agent can tell this is the read counterpart of set_file_sharing, though the sibling is never named, which keeps it short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than prescribed: it says who is allowed to read sharing, but never says when to call this versus set_file_sharing (to modify) or get_file (for content). The precondition is useful, but the agent must infer the routing itself.

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