Skip to main content
Glama

Outbox: revoke a share link

outbox_revoke_share
DestructiveIdempotent

Permanently revokes a share link by its token, disabling it immediately with no reactivation. Confirm with the user first, since this action is destructive and irreversible.

Instructions

Revokes a share link by its token (DELETE /api/share/:token); the link stops working immediately and cannot be reactivated. Take the token from outbox_create_share or outbox_list_shares. DESTRUCTIVE and irreversible: confirm with the user before using it. Requires scope admin:self (a human key): an agent key gets 403, so if you only have an agent key tell the user to revoke the link at out-box.dev. Idempotent (revoking twice → 404 token_not_found).

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": "outbox_revoke_share"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYesShare token to revoke (32 hex characters)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.9/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the required scope (`admin:self`), the 403 behavior for agent keys, immediate effect, irreversibility, and the idempotent 404 `token_not_found` response. The annotations already flag destructive and idempotent, but the description supplies the operational details an agent needs to handle failures and confirm safety.

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?

Tightly front-loaded: purpose and endpoint first, then token source, then the destructive warning, then auth/error behavior. Every sentence carries actionable information with no filler.

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 single-parameter destructive tool with no output schema, the description covers everything an agent needs: token source, confirmation requirement, required key type, fallback when unauthorized, and post-condition behavior. Nothing material is omitted.

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 description coverage is 100%, so the schema already defines `token` as a 32-hex-character string. The description adds useful provenance—where to obtain the token—which is not in the schema and reduces the risk of passing an arbitrary value.

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 and resource ('Revokes a share link by its token') and even gives the underlying HTTP endpoint. This lets an agent immediately distinguish it from siblings like outbox_create_share and outbox_list_shares.

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?

Explicitly says to take the token from outbox_create_share or outbox_list_shares, and requires user confirmation before the irreversible action. It also tells the agent what to do when it lacks the required key: direct the user to revoke at out-box.dev instead.

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