Skip to main content
Glama

Sample property over time

sample_property
Read-only

Sample a layer property's values across specified times or a sampled time range to verify animation keyframes and expression output.

Instructions

Read a property's value at several times (after expressions unless preExpression=true) to check an animation. Give explicit 'times', or startTime/endTime/samples (evenly spaced, default whole comp, 10 samples). Max 500.

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": {
      "layer": "<layer>",
      "property": "<property>"
    },
    "name": "sample_property"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
layerYesLayer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer.
timesNoExact times to sample.
endTimeNoRange end (default comp duration).
samplesNoNumber of evenly spaced samples (default 10).
propertyYesProperty path, '/'-separated, by display name, matchName or 1-based index. Shortcuts: 'Position', 'Scale', 'Rotation', 'Opacity', 'Anchor Point', 'Source Text', 'Time Remap', 'Audio Levels'. Examples: 'Transform/Position', 'Effects/Gaussian Blur/Blurriness', 'Contents/Rectangle 1/Fill 1/Color', 'Masks/Mask 1/Mask Feather'.
startTimeNoRange start (default 0).
preExpressionNoRead values before the expression is applied.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful behavior: values are read after expressions unless preExpression=true, the default range is the whole comp, and sampling is capped at 500. It does not describe the shape or ordering of returned samples, which matters for a sampling tool with no output schema.

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, front-loaded with the core action and intent, followed by the sampling-mode rule. The trailing 'Max 500.' fragment repeats the schema's maximum and reads as clipped, a minor blemish on otherwise efficient phrasing.

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?

With 8 parameters at full schema coverage and no output schema, the description covers intent, mode selection, defaults, expression handling and the sample cap. The main remaining gap is the return value's shape (a list of samples?), which the absence of an output schema leaves undocumented.

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 description coverage is 100%, so time formats, property paths and layer addressing are already documented. The description adds the mutual exclusivity of 'times' versus the range parameters and restates the defaults (whole comp, 10 samples) and the 500 cap, which is modest added value rather than new semantics.

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?

States a specific verb and resource: read a property's value at several times, and gives the intent (check an animation). It implicitly contrasts with single-value reads via 'at several times', but never names a sibling such as get_property, so differentiation is left to inference.

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?

Gives clear usage context ('to check an animation') and explains the two sampling modes an agent must choose between: explicit 'times' or startTime/endTime/samples. It does not state when to prefer a different tool instead, so no explicit exclusions.

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