Skip to main content
Glama

purge_document

DestructiveIdempotent

Delete a document's stored renders, of every version, and clear the CDN's cached copies of the video, thumbnails, storyboards and GIFs of every link to it, within a minute. The next view renders them again, billed as new renders, except video and audio segments whose content is unchanged and still stored, which are reused. Finished exports of the document stop downloading (404): export again for a new download.

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_id": "<document_id>"
    },
    "name": "purge_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
document_idYesThe document, `doc_…`.

Output Schema

NameRequiredDescriptionDefault
idYesWhat it purges: `lnk_…` or `doc_…`.
statusYes`purging`: the stored renders and the cached copies are gone within a minute.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, yet the description adds substantial non-obvious behavior: the ~1 minute CDN propagation window, the billing consequence of re-rendering, the reuse exception for unchanged video/audio segments, and the 404 side effect on finished exports. These are exactly the consequences an agent needs before invoking a destructive tool, and nothing contradicts the annotations.

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?

Two long sentences, but they are front-loaded with verb and scope, and each clause (propagation timing, billing, segment reuse, export 404) carries distinct operational information. The density is high and slightly hard to scan, which keeps it short of a 5.

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 destructive one-parameter tool with annotations and an output schema, the description covers what is destroyed, how quickly, what it costs, what gets reused, and the downstream effect on exports. Nothing an agent needs in order to call it safely 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?

There is a single parameter with 100% schema description coverage ('The document, `doc_…`'), so the schema already carries the semantics. The description adds no further meaning about the identifier (e.g. whether it accepts a link id or external key), so the 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?

The description names a specific verb ('Delete') and precise resource scope: stored renders of every version plus CDN-cached video, thumbnails, storyboards and GIFs for every link. The phrase 'of every link to it' implicitly separates this document-wide purge from a link-level purge, but no sibling is named explicitly, so routing still requires the agent to infer from scope alone.

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?

Usage is implied rather than stated: the note that the next view re-renders and is billed as new renders tells the agent this is a force-fresh-renders operation, and the export 404 note signals an intentionally disruptive maintenance action. There is no explicit 'use this instead of delete_document/purge_link when…' guidance or precondition statement.

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