Skip to main content
Glama

unity_hierarchy

Dump the active Unity scene object tree with paths, active flags, and component type names to inspect scene structure and component usage.

Instructions

Dump the active scene object tree with paths, active flags and component type names. (Unity editor offline right now: schemas are cached; calls will fail until it reconnects)

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

Input Schema

NameRequiredDescriptionDefault
rootNooptional root path to start from
depthNomax recursion depth, default 6
componentsNoinclude component type names, default true

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/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. It does useful work by disclosing the current failure mode (offline editor, cached schemas, calls will fail) and what the output contains, but it never states that the operation is read-only/non-mutating, nor whether large hierarchies are truncated or slow to traverse.

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 sentences, front-loaded with the primary action and output fields, followed by a short operational caveat. Nothing is redundant, though the parenthetical is time-sensitive environment information rather than durable tool documentation.

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?

No output schema exists, so the description must convey return shape; it does so at a high level (paths, active flags, component type names). Missing are tree ordering, behavior on very large scenes, and how the result is bounded, but for a simple inspection tool it is largely sufficient.

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 all three parameters are already documented with their defaults. The description echoes the 'components' concept via 'component type names' but adds no syntax or format detail for 'root' paths or how 'depth' interacts with the reported tree. Baseline 3 applies.

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?

Specific verb 'Dump' plus a clearly scoped resource ('active scene object tree') and an enumeration of what is included (paths, active flags, component type names). It does not explicitly distinguish itself from overlapping siblings such as unity_scene or unity_find, so it falls short of a 5.

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: the agent must infer that this is the read/inspect route for scene structure. The parenthetical does give decision-relevant context ('calls will fail until it reconnects'), which is closer to a when-not signal, but no alternatives are named and no trigger conditions (e.g. 'use before editing transforms') are stated.

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