Skip to main content
Glama

share_file

Make a link that downloads one file from a computer, for the user to open on their phone or pass on. Give the user the url. It works until it expires (60 minutes by default, up to 24 hours) and only while that computer is online. Anyone with the link can download the file, so make one only for a file the user asked to share. The file passes through BCD in pieces and is not kept. Requires read permission.

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": "share_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute or ~ path of the file, up to 2 GB
minutesNoHow long the link works; default 60
deviceIdNoComputer name or id

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / deviceId / description
      Previous value: -"Computer name or id; optional with one computer or a default"New value: +"Computer name or id"
  2. Changed1 schema field changed
    • changedInput schema / properties / deviceId / description
      Previous value: -"Computer name or id from list_devices. Optional with one computer online or a default set."New value: +"Computer name or id; optional with one computer or a default"
  3. Added

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing expiry behavior (60 minutes default, 24-hour cap), the dependency on the source computer staying online, the security exposure ('anyone with the link can download'), the data path ('passes through BCD in pieces and is not kept'), and the read-permission requirement. These are exactly the operational facts an agent needs before invoking a link-generating tool.

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?

Front-loads the action in the first clause, then layers expiry, availability, security, data handling, and permission in short declarative sentences. Every sentence contributes a distinct fact with no filler.

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 correctly states the return value ('Give the user the url') and covers lifetime, availability, and permission prerequisites. The only minor gap is not describing what happens on failure (e.g., offline computer or oversized file), though the 2 GB limit is in the 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?

Schema coverage is 100%, so path, minutes, and deviceId are already documented, including the 2 GB limit and the 5–1440 range. The description reinforces the minutes semantics ('60 minutes by default, up to 24 hours') and implies deviceId is the source computer, but adds little beyond the schema baseline.

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?

States a specific verb and resource ('Make a link that downloads one file from a computer') plus the intended consumer ('for the user to open on their phone or pass on'). This clearly separates it from siblings like read_file or copy_path, which move or read content rather than expose a temporary download URL.

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?

Gives an explicit when-to-use constraint: 'make one only for a file the user asked to share,' which is a real guardrail against speculative link creation. It does not name an alternative tool for cases where sharing is not wanted, but the usage condition itself is clear and actionable.

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