Skip to main content
Glama

ae_expression_get

Reads an After Effects property's expression code, enabled state, and current error using its layer index and property path, so agents can inspect and debug expressions.

Instructions

Baca kode expression, status aktif, dan error saat ini

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": {
      "layerIndex": "<layerIndex>",
      "propertyPath": "<propertyPath>"
    },
    "name": "ae_expression_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
compIdNoID numerik CompItem (opsional jika comp aktif)
compNameNoNama CompItem (opsional)
layerIndexYes
propertyPathYesPath segmen properti (matchName, nama, atau indeks 1-based)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden, and it does disclose the three pieces of information returned, which is genuinely useful behavioral context. However, it says nothing about what happens when the property has no expression (null, empty string, or error), nor about error behavior if layerIndex or propertyPath is invalid.

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?

A single short sentence that is front-loaded and free of filler. It is efficient, though its brevity borders on under-specification given the four parameters.

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

Completeness3/5

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

For a read tool with four parameters, no output schema, and no annotations, the definition covers the return payload but leaves the comp-resolution fallback (compId vs compName vs active comp) and propertyPath syntax unexplained. It is minimally adequate but has clear gaps an agent would hit when constructing a call.

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 75%, but the two undocumented parameters are the required ones: layerIndex and propertyPath. Since propertyPath is a segment array whose accepted forms (matchName, name, 1-based index) are only partially captured by the schema's description of the array, the description should have clarified its format and offered examples. It adds no parameter meaning at all.

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 gives a specific verb ('Baca' / read) and enumerates the resources retrieved: expression code, active status, and current error. This clearly distinguishes it from the write-side sibling ae_expression_set, though it does not name any sibling explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no guidance on when to use this versus ae_expression_scan_errors, ae_property_get_value, or ae_expression_auto_fix, and no prerequisites are stated. The usage is only inferable from the returned data list, which is minimal guidance.

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