Skip to main content
Glama

Get the descendants tree of a Roblox instance

get-descendants-tree

Explore the structure under a Roblox instance. Defaults to a compact summary (child/class counts); set summaryOnly=false for the full tree. Use search-instances for selector-based filtering.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rootYesThe instance path to get the tree from (e.g., 'game.Workspace', 'game.Workspace.CurrentRooms')
maxDepthNoMaximum depth to traverse (default: 2, max: 5). Higher values return more detail but larger output.
classFilterNoOptional class name filter — only show instances that IsA this class (e.g., 'BasePart', 'Model'). Leave empty to show all.
maxChildrenNoMaximum number of children to show per node (default: 20, max: 30). Prevents overwhelming output for large containers.
summaryOnlyNoWhen true (default), return compact child counts and class counts instead of the full tree. Set false only when you need the actual hierarchy.
maxOutputCharsNoMaximum characters to return to the model (default: 6000, max: 32000). Raise only when a single result genuinely needs more; large outputs degrade model performance.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the burden. It discloses the default summary mode and the toggle for the full tree, which is meaningful, but it does not mention read-only behavior, potential performance cost, or how output size is constrained beyond what the schema already states.

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?

The description is only two sentences, with the main purpose front-loaded and the key usage toggle and sibling pointer following immediately. Every sentence earns its place with no filler.

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 a read-only exploration tool with all six parameters documented and no output schema, the description plus schema gives an agent enough to select and invoke the tool correctly. A minor gap is that the exact structure of the returned summary is not elaborated, but the description provides sufficient expectations.

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 every parameter has a clear description with defaults, ranges, and examples. The description adds little beyond restating the summaryOnly behavior, so the schema carries the load and the baseline 3 is appropriate.

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?

States a specific operation ('Explore the structure under a Roblox instance') and explicitly distinguishes it from search-instances by mentioning selector-based filtering. An agent knows exactly what this tool does and how it differs from its closest sibling.

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?

Provides clear context for when to use the tool: defaults to a compact summary, and tells the agent to set summaryOnly=false when the full tree is needed. It also points to search-instances as the alternative for selector-based filtering, giving actionable routing guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources