Skip to main content
Glama

Purge caches

purge_caches
Destructive

Frees memory by purging After Effects image, snapshot, undo, or all caches; choose undo/all only when you accept permanent loss of undo history.

Instructions

Free memory with app.purge (Edit > Purge). target: 'image' (RAM preview/image cache, default, safe), 'snapshot' (comp snapshots), 'undo' (DESTRUCTIVE: erases the undo history, nothing can be undone afterwards), 'all' (all caches INCLUDING undo history).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "purge_caches"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetNoWhich cache to purge (default 'image').

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, but the description adds real value on top by pinpointing which enum values are destructive and spelling out the consequence: 'erases the undo history, nothing can be undone afterwards', and that 'all' includes undo history. It stops short of describing what memory is freed or whether the purge is immediate, leaving a small gap.

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?

A single tight description front-loads the action and then enumerates targets in default-first order, with the danger warning inline where it matters. There is no filler; each clause carries either semantics or a safety signal.

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 one-parameter, no-output-schema tool with annotations already covering the safety profile, this is close to sufficient: action, default, and destructive consequences are all present. Only minor gaps remain, such as whether 'snapshot' covers all snapshots or the active comp's, and whether the purge takes effect immediately.

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 100% and the schema already defines the enum and default, so the baseline is 3. The description earns above that by explaining what each cache actually holds and warning about the irreversible 'undo' and 'all' modes, which the schema's one-line enum description does not convey.

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 states a concrete verb and resource ('Free memory with app.purge') and even anchors it to the UI path (Edit > Purge), so the agent knows exactly what operation this is. Each enum target is named with its content ('RAM preview/image cache', 'comp snapshots', 'undo history'), which distinguishes the modes internally, though it never explicitly contrasts this tool with the 'undo' sibling.

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?

It gives per-target selection guidance: 'image' is marked as the default and 'safe', while 'undo' and 'all' are flagged as destructive paths. What's missing is any when-not-to-use framing (e.g. prefer the 'undo' tool for stepping back history), but the practical choice among targets is well covered.

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