Skip to main content
Glama

teams_revoke_file_link

Destructive

Remove sharing links and permissions from a OneDrive file to stop chat members from opening it, or revoke only a specific permission ID from files sent in Teams.

Instructions

Stop sharing a file in your OneDrive (e.g. one sent with teams_send_file) by removing all its sharing links and grants, or only permission_id from teams_list_sent_files; people in the chat can no longer open it. Personal and work accounts.

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": {
      "item_id": "<item_id>"
    },
    "name": "teams_revoke_file_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountNoAccount alias (see teams_accounts). Defaults to the default account.
item_idYesdriveItemId / itemId of the file
permission_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the safety profile is known; the description adds the concrete consequence ('people in the chat can no longer open it') and clarifies that omission of permission_id revokes everything. It does not state irreversibility or required permissions, which would be the remaining useful detail for a destructive call.

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 sentence, front-loaded with the action and effect, with no filler. It is dense — the parenthetical, the alternative mode, and the account note are packed into a single clause chain — but every element carries information.

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?

For a three-parameter destructive tool with no output schema, the description covers the action, its user-visible effect, the all-vs-one mode choice, and account eligibility. Missing only failure/permission preconditions, which is a modest gap rather than a blocking one.

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 67% and the undocumented parameter is permission_id; the description compensates by explaining it is a permission obtained from teams_list_sent_files and that supplying it narrows the operation to that single grant. item_id and account are already covered by the schema, so this closes the meaningful gap.

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?

Uses a specific verb phrase ('Stop sharing a file') plus the exact scope (removing all sharing links and grants, or a single permission), and names the relevant siblings teams_send_file and teams_list_sent_files as the source of the file/permission. An agent can immediately tell this is a revocation tool rather than a sharing or listing one.

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?

The description gives clear context for use: it is for undoing a share previously created or listed, and it explains the two modes (remove everything vs. remove only permission_id). It stops short of explicit when-not guidance or naming a sibling to prefer in edge cases, so it is clear but not fully routed.

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

Deploy Server

Other Tools