Skip to main content
Glama

Center anchor point

center_anchor_point

Move each layer's anchor point to the center of its content and adjust position to keep visuals unchanged; works for text, shape, solid, and footage layers.

Instructions

Move each layer's anchor point to the center of its content (sourceRectAtTime) and compensate position so nothing moves visually. Works for text/shape/solid/footage layers. Keyframed anchor points are skipped.

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": "center_anchor_point"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
timeNoComp time at which content bounds and transforms are measured (default: current time).
layersNoLayers: array of layer refs, or 'selected' (default) or 'all'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false with destructiveHint=false, and the description explains why that combination is safe: position is compensated so nothing moves visually. It also discloses a behavioral edge case (keyframed anchor points are skipped) that annotations cannot express. It does not state whether the result lists adjusted vs. skipped layers, or how to undo.

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?

Two tight sentences, front-loaded with the primary action and immediately followed by the non-obvious compensation behavior, then scope and edge case. No filler or restatement of the title.

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 3-parameter, no-output-schema mutation, the description covers the operation, mechanism, layer-type scope, and the keyframed-layer caveat – enough for an agent to call it correctly. Minor gap: with no output schema, it doesn't indicate what callers learn about skipped or modified layers.

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 comp, time, and layers are already fully documented in the schema. The description adds only indirect meaning ('sourceRectAtTime' hints that time controls measurement), and says nothing about the default 'selected' scope or the 'all' option beyond what the schema provides. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource (move the anchor point to the center of content) with the exact mechanism (sourceRectAtTime) and the compensation side effect. The phrase 'anchor point ... center of its content' clearly separates it from layer-positioning siblings like center_layers or align_layers.

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 concrete applicability ('works for text/shape/solid/footage layers') and an exclusion ('keyframed anchor points are skipped'), which lets an agent predict failures. It does not name an alternative tool or say when a different centering approach should be used instead, so it stops short of full routing 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