Skip to main content
Glama

get_hierarchy

Read-only

Retrieve the GameObject hierarchy of the open Unity scene, optionally filtered by parent, to inspect child relationships and structure with configurable depth and limit.

Instructions

Tree of GameObjects in the open scene. Set parent to see only its children.

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

Input Schema

NameRequiredDescriptionDefault
depthNo
limitNo
parentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds that it reflects the currently open scene, but says nothing about truncation from depth/limit or whether the tree is a snapshot.

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?

Two short sentences, front-loaded with the resource and followed by the one filtering behavior. No waste, though the second sentence is terse enough to be slightly ambiguous about what 'set parent' means in practice.

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

Completeness2/5

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

No output schema exists and two of three parameters are undocumented anywhere, so an agent cannot tell how depth and limit shape or truncate the returned tree. For a simple read tool the gap is small but real.

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 carries the full burden, yet it only explains 'parent'. The depth (default 3) and limit (default 100) parameters — the ones that determine whether the result is truncated — get no meaning at all.

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?

Names a concrete resource and scope: a tree of GameObjects in the open scene. That is distinguishable from get_object (single object) and find_objects (search), though the description never explicitly contrasts with them.

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?

The sentence 'Set parent to see only its children' implies one usage pattern (scoped subtree inspection), but there is no guidance on when to prefer this over get_object or find_objects, and no mention of prerequisites such as having a scene open.

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