Skip to main content
Glama

profiler-frame-hierarchy

Retrieve the full Unity profiler call hierarchy tree for a specific frame to analyze per-function performance. Includes total time, self time, call counts, and GC allocations. Filter by thread, depth, and minimum time for targeted analysis.

Instructions

Retrieves the full profiler call hierarchy tree for a specific frame. Returns function names, total time, self time, call counts, and GC allocations in a tree structure — equivalent to the Unity Profiler Hierarchy view. Use this to analyze detailed per-function performance.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
frameIndexNoFrame index to analyze. Use -1 for the latest available frame. Default: -1-1
threadIndexNoThread index. 0 = Main Thread, 1 = Render Thread, etc. Default: 00
maxDepthNoMaximum depth of the call tree to return. Use smaller values for overview, larger values for detailed analysis. Default: 55
minTotalMsNoMinimum total time (ms) to include a node. Filters out insignificant calls. Default: 0.10.100000001
Behavior2/5

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

No annotations are provided, and the description does not disclose behavioral traits such as read-only nature, performance impact, or caching. The description carries the full burden but remains silent on side effects.

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?

Two sentences, no wasted words, front-loaded with the main action and output. The second sentence adds a practical use case.

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?

The description lists the return fields (function names, times, call counts, GC allocations) and mentions the tree structure and equivalence to Unity Profiler view. Missing details like default parameter behaviors or performance hints, but still quite complete for a retrieval tool.

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 coverage is 100% with adequate descriptions. The description adds no additional parameter-specific information beyond what the schema provides, so baseline score of 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?

The description clearly states the tool retrieves the full profiler call hierarchy tree for a frame, listing returned data and equating to Unity Profiler Hierarchy view. It implies but does not explicitly contrast with sibling profiler tools, thus not 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?

It suggests analyzing detailed per-function performance, providing a usage context, but does not specify when not to use or mention alternatives like profiler-gc-alloc for GC-specific analysis.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/butterlatte-zhang/unity-ai-bridge'

If you have feedback or need assistance with the MCP directory API, please join our Discord server