Skip to main content
Glama

List shape contents

list_shape_contents
Read-only

Lists a shape layer's content tree: groups, paths, shapes, fills, strokes, gradients and modifiers with key values. Target one group or expand nesting depth.

Instructions

Tree of a shape layer's Contents (or one group): groups with transform and groupPath, paths (vertex count), rect/ellipse/star parameters, fills/strokes (hex color, width, opacity), gradients and modifiers with key values. detail=true adds path vertices.

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>"
    },
    "name": "list_shape_contents"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
depthNoGroup nesting levels to expand (default 20).
layerYesLayer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer.
detailNoInclude path vertices/tangents.
groupPathNoOnly list this group (default: whole Contents).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the description needs only to add context beyond that. It does disclose the returned shape of the tree, but it does not mention depth's default of 20 nesting levels or any limits or pagination. Modest value beyond the annotations, not rich 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?

It is one dense sentence that front-loads what the tool returns, and every clause names real output content, so little is wasted. It reads as a long run-on list, but for an inventory-style description that 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?

There is no output schema, so the description must carry the return shape, and it covers groups, paths with vertex counts, rect/ellipse/star parameters, fills/strokes with color and width, gradients, and modifiers. It is missing the depth parameter and any statement of nested tree depth or size limits, but it is largely complete for a read-only listing tool.

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 five parameters. The description restates detail=true as adding path vertices and groupPath as scoping to one group, which matches the schema rather than adding format or syntax detail; that is adequate but not above baseline.

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 verb and resource: it produces a tree of a shape layer's Contents, or one group if groupPath is given. That is clearly different from siblings such as list_masks or list_properties, though it doesn't name those siblings explicitly.

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?

Usage is only implied: the description says to pass groupPath for a single group and detail=true for vertices, and the schema documents comp/layer. It gives no explicit when-to-use or when-not-to-use guidance against related tools like list_properties or list_masks.

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