Skip to main content
Glama

ae_library

Store, search, and apply reusable After Effects Expression or ES3 ExtendScript snippets with {{param}} substitution, and promote successful ae_eval_jsx runs into templates.

Instructions

Personal reusable Expression & ES3 ExtendScript snippet library (bundled MIT starters + user snippets). Supports parameter substitution ({{param}}) and promoting recent successful ae_eval_jsx executions into reusable templates. Actions: list, search, get, save, promote_recent, apply, remove.

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": {
      "action": "<action>"
    },
    "name": "ae_library"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoSnippet ID (kebab-case).
tagNo
codeNoExpression or ES3 ExtendScript snippet code (supports {{param}} placeholders).
compNo
kindNo
nameNo
tagsNo
layerNoTarget layer (required when applying an 'expression' snippet).
queryNo
actionYes
paramsNoParameter schema on save OR runtime parameter values on apply.
sourceNo
listOnlyNoReturn recent ae_eval_jsx history without saving (for promote_recent).
propertyNoTarget property (required when applying an 'expression' snippet).
descriptionNo
recentIndexNo0 = most recent ae_eval_jsx call (for promote_recent).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden, yet it does not disclose that save/promote_recent/remove write or delete persisted snippets, or that apply injects an expression onto a live layer property in the open project. Storage location, permissions, reversibility/undo behavior, and whether removal affects bundled starters are all unstated. Only the {{param}} substitution and the bundled-vs-user distinction add real behavioral context.

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 sentences: the first establishes what the library is, the second adds the parameter and promotion mechanics, and the action enumeration is a compact index. It is front-loaded and free of padding, though the bare action list would be more useful if each action carried a hint of its effect.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 16-parameter tool with no annotations, no output schema, nested params objects, and several mutating actions, the description is thin. It never describes what list/search/get return or how apply reports success, and it leaves the destructive actions' consequences undefined. An agent could not safely call apply or remove based on this definition alone.

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?

Schema coverage is 44% across 16 parameters, so the description must compensate. It does clarify the two most intricate mechanics — {{param}} placeholder substitution (params) and the promote-recent flow (recentIndex/listOnly) — which the schema only partially documents. It says nothing about the many undocumented fields such as tag, comp, kind, name, tags, query, source, and description, leaving a substantial gap.

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 resource (a personal library of Expression and ES3 ExtendScript snippets, bundled plus user-authored) and enumerates the seven supported actions. It implicitly distinguishes itself from the sibling ae_eval_jsx by framing promote_recent as turning prior eval executions into reusable templates. It stops short of explicitly contrasting itself with ae_expression or ae_eval_jsx, so it is clear but not fully disambiguated.

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?

The action list gives an implied usage map, and the phrase 'promoting recent successful ae_eval_jsx executions' hints at the promote_recent workflow. However, there is no guidance on when to reach for this library versus ae_expression or ae_eval_jsx, no prerequisites (e.g. that 'apply' targets a live comp/layer/property), and no indication of which actions mutate state versus read.

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