Skip to main content
Glama
roblox-studio
by nardjay

Read Explorer tree

get_tree
Read-onlyIdempotent

Reads a Roblox Studio instance hierarchy breadth-first with class names, paths, and child counts, helping you discover what exists before editing.

Instructions

Read the instance hierarchy under a path, breadth-first, with class names and paths. Use this to discover what exists before editing. Returns child counts plus a truncated flag when the tree is larger than maxNodes.

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
pathNoInstance path. Accepts "Workspace.Model.Part", "game.Workspace.Model.Part" or "game.Workspace[\"My Part\"].Model". Use "game" or omit for the DataModel root. Default "game".
depthNoLevels to descend. Default 2.
maxNodesNoNode budget. Default 250.
servicesOnlyNoOnly list the direct children of the DataModel (services). Default false.
includePropertiesNoInclude a small property snapshot per node (slower). Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

The annotations already declare this read-only, idempotent and non-destructive, so safety is covered. The description adds genuinely new behavior: breadth-first traversal order, child counts, a truncation flag, and the fact that includeProperties is slower — all useful beyond structured fields. It omits cost/latency guidance for large depths or ordering guarantees within a level, so it is not exhaustive.

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?

Three sentences with zero filler: purpose first, then the when-to-use cue, then the return shape. Each sentence carries distinct information and nothing is repeated from the schema.

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, the description carries the burden of describing returns, and it does disclose child counts and the truncated flag. Given 100% schema coverage of the five parameters, what remains missing is minor — for example truncation handling advice (re-call with higher depth vs. narrower path).

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 every parameter is already documented in the schema, establishing a baseline of 3. The description reinforces the maxNodes budget and truncation semantics, but adds no format or interaction detail (e.g. how depth and maxNodes interact) beyond what the schema says.

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 — 'Read the instance hierarchy under a path, breadth-first, with class names and paths' — which is clearly distinguishable from a flat search (search_instances) or a single-node read (get_instance). It stops short of naming any sibling outright, so the differentiation is inferential rather than explicit.

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?

'Use this to discover what exists before editing' gives a clear situational trigger for the tool. It does not state when NOT to use it or point to an alternative such as search_instances for name-based lookup, which keeps it below a 5.

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