Skip to main content
Glama

file_unshare

Revoke a public share link or file request using its token to disable access.

Instructions

Revoke a public link or a file request by its token (file_share and file_request_create answer it; share_list lists yours).

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": {
      "token": "<token>"
    },
    "name": "file_unshare"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYesthe share token to revoke

Output Schema

NameRequiredDescriptionDefault
okYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses the scope of what is revoked (a public link or a file request), but says nothing about required permissions, whether revocation is reversible, whether existing recipients lose access immediately, or how an invalid/expired token is treated.

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?

One compact sentence with the action and resource front-loaded; nothing is padding. The trailing parenthetical is information-dense to the point of being cryptic, which slightly undercuts readability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be explained, and the tool takes only one required parameter. Still, for a state-changing revocation with no annotations, the definition omits permission requirements and post-revocation effects that an agent would want before calling.

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 token parameter is already documented as 'the share token to revoke.' The description's 'by its token' adds only a mild framing hint, so the schema does the real work — baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'Revoke a public link or a file request by its token.' That distinguishes it from creation-oriented siblings like file_share and file_request_create, though the parenthetical 'file_share and file_request_create answer it' is terse and its meaning (inverse operations) must be inferred.

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

Usage Guidelines3/5

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

It implies the use case (undo a share, given a token) and points to share_list for discovering tokens, which is genuinely useful routing. However, there is no explicit when-not guidance, no prerequisite about who may revoke, and no statement about what condition the token must be in.

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