Skip to main content
Glama
Chandelier

Chandelier

by acidka

get_tree

Retrieve the active document's layer, sublayer, group, and item hierarchy as structured tree data to inspect structure, counts, and optional bounds for planning edits.

Instructions

Outline of the active document: layers → sublayers → groups → items, as {tree:[{layer, count, sublayers?, children:[{type, uuid, name, text?, count?, children?}]}], note?}. root: "layer:Name" or a group ref (default all layers). depth default 2; limit = children shown per container (default 50, then {more:N}); max_nodes = items in the whole answer (default 300). boxes:true adds [x,y,w,h]. Within a layer, sublayers are listed apart from items.

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

Input Schema

NameRequiredDescriptionDefault
rootNo
boxesNo
depthNo
limitNo
max_nodesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

A3.6/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden, and while it discloses truncation semantics ({more:N} markers, limit per container, max_nodes across the answer) and the default depth, it never states that the operation is read-only, whether large documents are slow or can time out, or what the optional "note?" field signifies. The truncation disclosure is genuinely valuable, but the safety/performance profile of an unannotated tool is left unaddressed.

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 single paragraph is front-loaded with the purpose and return shape before the parameter details, and nearly every clause adds information. It is dense to the point of being fragmentary (inline JSON-ish notation, semicolon-separated defaults), which costs some readability but not correctness.

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 no output schema and no annotations, the description supplies the return structure, the truncation markers, and every parameter default, which is close to what an agent needs. Minor gaps remain: what a "group ref" actually is (the schema allows string or number) and what the optional note conveys.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, yet the description documents all five parameters with defaults and formats: root as "layer:Name" or a group ref (default all layers), depth default 2, limit default 50 with {more:N} overflow, max_nodes default 300, and boxes adding [x,y,w,h]. This fully compensates for the bare schema.

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?

"Outline of the active document" plus the explicit hierarchy (layers → sublayers → groups → items) and a literal return shape make the resource and result unmistakable. It stops short of distinguishing itself from siblings like layers, get_items, or document_info, so an agent must infer that this is the structural-overview tool.

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 by the described output: an agent can reason that this is the tool for a whole-document structural map rather than a flat item query. There is no explicit when-to-use, when-not-to-use, or named alternative among the many siblings, so selection still requires inference.

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