Skip to main content
Glama

Share a document

tp_share_document
DestructiveIdempotent

Sets who can open a document and returns the sharing mode, URL and reader list. Use it when the user asks to share, publish or unshare a document, to make it private, or to add or remove a reader. Modes: "link" (anyone with the URL), "people" (the listed addresses, who sign in to read it) and "private" (revokes the link and resets its open count; a URL already sent stops working). "link" and "people" require confirm: true; without it nothing changes and the response describes what would be disclosed. "private" needs no confirmation. For "people", emails replaces the reader list, and add and remove change individual addresses. Addresses new to the list are emailed a link.

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": {
      "id": "<id>",
      "mode": "<mode>"
    },
    "name": "tp_share_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesDocument id from tp_list_documents.
addNoAddresses to add to the current reader list for mode "people". They are emailed a link.
modeYesWho can open it: private, link or people. Required.
emailsNoThe complete reader list for mode "people"; it replaces the current list.
removeNoAddresses to remove from the current reader list for mode "people".
confirmNoRequired when `mode` is "link" or "people". Set true after the user has agreed to that audience.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well past the annotations by disclosing consequences: 'private' revokes the link and resets its open count, and a URL already sent stops working. It also explains the dry-run behavior without confirm ('nothing changes and the response describes what would be disclosed') and the side effect of emailing new addresses, which the destructiveHint alone would not convey.

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-loaded with purpose and return values, then mode semantics, then parameter behavior. Every sentence carries information, though the single dense paragraph would scan faster as a short list of modes.

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 six-parameter mutation tool with no output schema, the description still tells the agent what comes back and what each mode does to the reader list and link. No call-critical information 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 baseline is 3; the description still adds meaning by framing `emails` as a replacement of the full list versus `add`/`remove` as incremental edits, and by tying `confirm` to a specific outcome. It stops short of covering the `id` source or edge cases when both `emails` and `add` are supplied.

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?

Names a specific verb and resource ('Sets who can open a document') and states the return payload (sharing mode, URL, reader list). The three-mode taxonomy makes it immediately distinguishable from sibling operations like tp_share_folder or tp_update_document.

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?

Enumerates the triggering intents: share, publish, unshare, make private, add or remove a reader. Mode-by-mode guidance follows, including the precondition that 'link' and 'people' require `confirm: true` while 'private' does not, so an agent knows exactly which branch to take.

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.