Skip to main content
Glama

Revoke an upload link

close_channel
DestructiveIdempotent

Revokes an upload link of a piece: the link stops working at once and any upload still travelling through it is cancelled; files that already arrived stay in the material. Revoking an already revoked link changes nothing (revoked: false). Only the piece's owner. Requires write. $0.

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": {
      "project_id": "<project_id>",
      "channel_id": "<channel_id>"
    },
    "name": "close_channel"
  }
}

Input Schema

NameRequiredDescriptionDefault
channel_idYesThe `id` of the upload link (in `channel`).
project_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already flag destructiveHint and idempotentHint, yet the description adds concrete consequences beyond them: the link dies immediately, in-flight uploads are cancelled, and already-arrived files persist. It also discloses the idempotent no-op result (`revoked: false`), the owner/write authorization requirement, and zero cost.

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?

Front-loaded with the action, then layered effects, idempotency, authorization, and cost in a single tight passage; every clause (including the parenthetical) carries information an agent needs.

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?

With no output schema and only two parameters, the description supplies what an agent needs to call it correctly: what it destroys, what survives, what happens on repeat calls, and what permissions are required.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 50%: channel_id is documented in the schema, but project_id has no description anywhere. The description's phrase 'of a piece' faintly implies project_id identifies the owning piece, but it adds no real meaning or format guidance for either parameter, so it does not compensate for the coverage 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?

States a specific verb (revokes) and a specific resource (an upload link of a piece), and immediately describes the effect, so an agent can tell this apart from open_channel, complete_upload, or list_channels without opening 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 Guidelines3/5

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

It gives gating conditions ('Only the piece's owner', 'Requires `write`', '$0') but never states when to reach for this versus alternatives such as complete_upload or cancel, so the when-to-use decision is left implied.

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