Skip to main content
Glama

Create or update public link

drive_share_set_url
Destructive

Create or update a public Proton Drive share link so anyone with the URL can access the path as viewer or editor without a Proton account, with optional password and expiration.

Instructions

Create or update a public share link: anyone with the link gets the given role, no Proton account needed. Calling again on the same path REPLACES the link's settings (same URL): omitting password/expiration removes them. So when the path already has a link with a password and/or expiration that this call omits, the call is refused before any change, naming what would be lost, unless resetSettings=true (also refused when the existing settings cannot be read). Expiration is at most ~90 days out. Returns {url?, role?, expirationTime?, warning?}; fields may be absent. The password is passed as a CLI argument and is visible in the process list and shell history of the machine running this server. For private sharing use drive_share_invite. The server asks the user to approve this itself.

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

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute remote Drive path to create a public link for (must start with '/').
roleNoAccess level for anyone with the link. Omitted: an existing link keeps its role, a new one is 'viewer'.
passwordNoOptional custom password required to access the link. Omit for no password.
confirmedNoOptional and ignored: the server asks the user to approve this itself. You do not need to send it.
expirationNoOptional expiration date in ISO format, e.g. '2026-06-06'. Omit for no expiration.
resetSettingsNoSet true to deliberately drop an existing link's password and/or expiration that this call does not pass again. Without it such a call is refused.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.13.0
    • changedInput schema / properties / role / description
      Previous value: -"Access level for anyone with the link. Defaults to 'viewer' if omitted."New value: +"Access level for anyone with the link. Omitted: an existing link keeps its role, a new one is 'viewer'."
  2. Changed1 schema field changedv1.12.0
    • changedInput schema / properties / confirmed / description
      Previous value: -"Must be true; only after the user approved this exact action."New value: +"Optional and ignored: the server asks the user to approve this itself. You do not need to send it."
  3. Changed1 schema field changedv1.8.0
    • addedInput schema / properties / resetSettings
      Added value: +{
      +  "description": "Set true to deliberately drop an existing link's password and/or expiration that this call does not pass again. Without it such a call is refused.",
      +  "type": "boolean"
      +}
  4. Changed1 schema field changedv1.2.0
    • changedInput schema / properties / confirmed / description
      Previous value: -"Must be true. Only set after the user explicitly approved this exact action."New value: +"Must be true; only after the user approved this exact action."
  5. Changed1 schema field changedv1.0.38
    • addedInput schema / properties / confirmed
      Added value: +{
      +  "description": "Must be true. Only set after the user explicitly approved this exact action.",
      +  "type": "boolean"
      +}
  6. Addedv1.0.28

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, but the description goes well beyond them: re-calling REPLACES settings at the same URL, omitting fields removes them, the call is refused before any change with a message naming what would be lost, and the same refusal applies when existing settings can't be read. It also discloses the security caveat that the password is visible in the process list and shell history, plus the approval flow. The only minor omission is what the 'warning?' field implies, though that is mostly return-value territory.

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?

Front-loads the core action and access model, then layers replacement semantics, refusal conditions, return shape, and security caveat in a logical order. It is dense but nearly every clause carries operational weight; the return-shape sentence is the weakest, since there is no output schema, but it still earns its place by warning that fields may be absent.

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 destructive, non-idempotent mutation with six parameters and no output schema, the description covers replacement behavior, refusal preconditions, expiration limits, return shape, credential-exposure risk, and the approval flow. Nothing an agent needs to call it safely and correctly 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 genuine cross-parameter meaning the schema doesn't: omitting password/expiration is destructive when such settings already exist, resetSettings=true is required to drop them, and the ~90-day expiration cap constrains the expiration value. It also reassures that the confirmed parameter is ignored because the server handles approval.

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?

Opens with a specific verb and resource ('Create or update a public share link') and immediately states the access model ('anyone with the link gets the given role, no Proton account needed'). It also names the sibling it is not for ('For private sharing use drive_share_invite'), so an agent can separate it from invite-based sharing without reading the schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use (public, account-free link) versus the named alternative for private sharing. It also spells out the preconditions under which the call is refused (omitted password/expiration with existing settings, unless resetSettings=true) and the expiration ceiling, so the agent knows both when to call it and when it will bounce.

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