Skip to main content
Glama

List layers

layer_list
Read-onlyIdempotent

Lists layers in an open project with IDs, names, visibility, lock state, and contained figures so you can use returned IDs for edits and figure transforms.

Instructions

List the layers of the open project, with their ids, names, visibility, lock state and the figures each one holds. Use the layer ids this returns with layer_edit and figure_transform.

Input Schema

NameRequiredDescriptionDefault
projectNoThe id of an open project, from project_open. Defaults to the project used most recently.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint, so the safety profile is covered. The description adds genuinely useful behavior: it operates on the open project, and it discloses the fields returned, notably the layer ids needed downstream. It doesn't cover failure modes (no open project) or ordering, which keeps it from a 5.

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 sentences, zero waste, with the return payload front-loaded and the downstream chaining instruction second. Every clause earns its place.

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

Completeness5/5

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

No output schema exists, so the description must convey return values — and it does, listing ids, names, visibility, lock state and contained figures. Combined with the schema-documented project parameter and annotations, an agent has everything needed to call it correctly.

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% and the single project parameter is fully documented in the schema, including its default. The description adds nothing about the parameter — baseline 3 applies when the schema does the work.

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?

Specific verb+resource (list the layers of the open project) plus an enumeration of what each entry carries (ids, names, visibility, lock state, figures). It is clearly distinguishable from figure_list and layer_edit without opening either schema.

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?

Explicitly routes the agent forward: 'Use the layer ids this returns with layer_edit and figure_transform.' That establishes the prerequisite relationship with the mutating siblings. It stops short of stating when not to use it or an alternative for filtered listing, but the context is unambiguous.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.