Skip to main content
Glama

file_share

Create a public link to share a file or folder with recipients who lack filex access, optionally protected by a PIN, expiry date, or download limit.

Instructions

Create a public share link for a file or folder (folders download as a ZIP). Returns the URL, a one-time PIN if pin=true, and download_command: the ready curl and PowerShell lines that fetch it (PIN, folder ZIP and redirects already handled - pass them on as they are). Use this to hand a file to someone without filex access - do NOT stream large files back through file_read. An end-to-end encrypted folder and anything inside it is never shared (E2E_ENCRYPTED). A single encrypted file (.fxe) is: the result says encrypted: true, and its recipient needs the file's password to open it.

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": {
      "path": "<path>"
    },
    "name": "file_share"
  }
}

Input Schema

NameRequiredDescriptionDefault
pinNogenerate a random PIN to protect the link
pathYesadapter://file-or-folder to share (folders download as a zip)
max_downloadsNomax downloads (0 = unlimited)
expires_in_daysNolink expiry in days (0 = never)

Output Schema

NameRequiredDescriptionDefault
pinNo
urlYes
pathYes
tokenYes
has_pinYes
encryptedNo
expires_atNo
max_downloadsNo
download_commandNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses the return payload (URL, one-time PIN, pre-built curl/PowerShell download_command lines with PIN/ZIP/redirect handling baked in), the E2E_ENCRYPTED refusal for encrypted folders, and the .fxe single-file case with encrypted: true and password requirement. It also warns the caller to pass download_command through unmodified, which is a real behavioral constraint an agent would otherwise violate.

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?

It is front-loaded with the core action and return contract, then layers caveats in decreasing priority. The download_command parenthetical and the trailing .fxe sentence are dense but each carries non-obvious operational information, though the prose is packed tightly enough to risk skimming.

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?

For a four-parameter creation tool, the description covers outcome, error path (E2E_ENCRYPTED), encryption edge cases, and caller obligations on the returned command. An output schema exists, yet the added explanation of download_command is behavioral guidance rather than redundant return-value description, so nothing material 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 100%, so the baseline is 3, but the description adds meaning beyond the schema: pin=true yields a one-time PIN in the result, and the path parameter produces a ZIP when it points at a folder. max_downloads and expires_in_days are left entirely to their schema descriptions.

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 clause names a specific verb and resource ('Create a public share link for a file or folder') and adds the ZIP behavior for folders. It is immediately distinguishable from sibling file_read (streaming) and file_unshare (revocation) without opening a 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 gives an explicit use case ('hand a file to someone without filex access') and an explicit anti-pattern ('do NOT stream large files back through file_read'), naming the alternative. It stops short of routing to siblings for listing or revoking shares (share_list/file_unshare), so it is clear but not exhaustive.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.