Skip to main content
Glama

Search layers

search_layers
Read-only

Find layers across one composition or the entire project by name, type, effect, expression, label color, or 3D status, and return references for use in other tools.

Instructions

Find layers across all comps (or one comp) by any combination of: name (substring, or regex), layer type, effect (matchName or name substring), has an expression, label color index, 3D. Returns comp {id,name} + layer {index,id,name,type} refs you can pass to other tools. Read-only.

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

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to scan every composition in the project.
nameNoName substring (case-insensitive by default), a regex when regex=true, or '/re/flags'.
typeNoLayer type(s): text, shape, solid, null, adjustment, precomp, footage, still, audio, camera, light.
labelNoLabel color index (0 = none, 1-16).
limitNoMax matches (default 200).
regexNoTreat 'name' as a regular expression.
effectNoOnly layers with this effect: exact matchName (e.g. 'ADBE Gaussian Blur 2') or name substring.
threeDNotrue = only 3D layers; false = only 2D layers.
maxSecondsNoTime budget in seconds (default 30).
caseSensitiveNoCase-sensitive name match (default false).
hasExpressionNotrue = only layers with at least one expression; false = only layers without.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish that the operation is read-only and non-destructive; the description adds useful return-shape behavior by stating it returns comp and layer references that can be passed to other tools. It does not describe truncation or time-budget behavior, but it adds meaningful context beyond the annotations.

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?

The description is compact and front-loaded with the main purpose and filter criteria. The final 'Read-only' sentence is somewhat redundant with annotations, but the overall structure is efficient.

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 an 11-parameter search tool with no output schema, the description covers the core purpose, filter dimensions, comp scope, and return references. It could better explain result truncation or default limits, but it is largely complete for correct invocation.

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 the schema already documents all 11 parameters well. The description lists several filter criteria and mentions comp scoping, but it does not add much beyond the schema and omits details about limit, maxSeconds, and caseSensitive.

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 specific verb and resource: it finds layers across all comps or one comp using multiple filter criteria. It is clearer than a generic search, though it does not explicitly differentiate itself from sibling tools such as list_layers.

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?

It implies usage through phrases like 'any combination of' criteria and explains that omitting comp scans every composition. However, it gives no explicit when-to-use guidance or alternative-routing guidance versus list_layers or get_comp_layers_at_time.

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