Skip to main content
Glama

get_game_tree

Inspect Roblox Studio's Explorer hierarchy by returning the game tree from a specified root path down to a set depth, with optional class filtering.

Instructions

Return Explorer hierarchy starting at root_path (e.g. 'game', 'game.Workspace') up to max_depth.

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_game_tree"
  }
}

Input Schema

NameRequiredDescriptionDefault
max_depthNo
root_pathNogame
class_filterNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it only partially meets it. It usefully discloses that the traversal is depth-bounded by max_depth and rooted at root_path, implying a read-only snapshot of the live Explorer, but it says nothing about behavior on very large trees, depth limits, error cases for an invalid root_path, or what class_filter does.

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?

A single sentence with no filler, front-loaded with the verb and resource before the scoping parameters. Slightly terse for the information it needs to carry, but nothing is wasted.

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

Completeness3/5

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

An output schema exists, so return shape need not be spelled out, and the depth/root semantics are reasonably covered. However, for a three-parameter traversal tool with zero schema documentation, omitting class_filter entirely and giving no guidance on large-tree results leaves a real gap.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate, and it only covers two of three parameters: root_path (with examples) and max_depth (as a bound). class_filter is completely unmentioned in both the schema and the description, leaving the agent to guess its syntax and effect.

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?

Uses a specific verb ("Return") plus a named resource ("Explorer hierarchy") and anchors it with concrete root_path examples ('game', 'game.Workspace'). An agent can tell this is a tree-read tool rather than a search or property-read tool, though it never names the siblings it competes with (search_instances, inspect_instance).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to use this versus search_instances, inspect_instance, or grep_scripts. The root_path examples hint at traversal use, but no conditions, prerequisites, or exclusions are given, so the agent must infer selection from the name alone.

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