Skip to main content
Glama

Pinpal Jobs

Stop sharing a document

unshare_document
Destructive

Turn the document's share link off: the page, the PDF and the approve button stop working at once for anyone who has the link. Only when the person asks. share_document later makes a new link; the old one never comes back.

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": {
      "document": "<document>"
    },
    "name": "unshare_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
documentYesThe document's id (from list_documents), or its number once sent, like INV-0007.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations declare destructiveHint=true, but the description adds what is actually destroyed (link, page, PDF, approve button) and the key irreversibility fact that a later share_document creates a new link and the old one never returns. That is real behavior beyond the annotation.

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?

Three short clauses, front-loaded with the action and its effect, with no filler. The usage constraint and the irreversibility caveat each earn their place.

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?

A one-parameter mutation with destructive annotations and no output schema needs exactly this: what it turns off, when to do it, and that it cannot be undone. Nothing an agent requires before calling it is missing.

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% and the single 'document' parameter already documents both accepted forms (id from list_documents or a sent number like INV-0007). The description adds no parameter meaning beyond the schema, so the baseline of 3 applies.

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 (turn the share link off) and resource (the document), plus the concrete scope of effect: page, PDF and approve button all stop working. It is clearly distinguishable from share_document, which is named as the inverse operation.

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 an explicit gating condition ('Only when the person asks') and names the alternative direction (share_document) along with the fact that revoking is not undoable, which is exactly the information needed to choose this over leaving sharing in place.

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