Skip to main content
Glama

render_stats

Measure an app's real view tree and frame health: total views, render-node kB, per-window breakdown, jank percentage, frame-time percentiles, and skipped-frame tally. Reset counters to isolate one interaction.

Instructions

Count an app's REAL view tree and recent frame health: total views, render-node kB, per-window breakdown, jank percentage and frame-time percentiles, plus Choreographer's "Skipped N frames" tally. Use this — not describe_ui — to MEASURE a screen: describe_ui is viewport-scoped (Android drops off-screen ScrollView children from the accessibility tree), so it undercounts a long list even at filter="all". The three numbers together are what argues an unvirtualised list: a large view count, render-node kB that grows as you scroll, and skipped frames on the main thread. Pass reset=true to zero the frame counters after reading so the next call measures one specific interaction.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
resetNoZero gfxinfo's frame counters after reading, so the NEXT call measures only what happens in between. Use it to attribute jank to one interaction instead of to the whole session.
serialNoTarget device serial (adb -s). Optional when exactly one device is attached.
packageYesApplication package name.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Addedv0.23.0

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations, the description carries the transparency burden and meets it: it explains that the tool reads the real view tree, enumerates the exact metrics, and warns that reset=true zeros frame counters as a side effect. The behavioral contrast with describe_ui's viewport scoping is genuinely informative.

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?

Three compact sentences, each with a distinct job: enumerate outputs, differentiate from sibling, explain reset. No filler, and the most decision-relevant guidance is front-loaded.

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

Completeness5/5

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

Since there is no output schema, the description must state what the tool returns — it does, with a concrete metric list and an interpretive hint about what the three numbers together argue. It also covers the reset behavior, so an agent can invoke it correctly.

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

Parameters4/5

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

The schema already documents all three parameters at 100% coverage, so the baseline is 3. The description adds value by restating reset=true's purpose ('so the next call measures one specific interaction') and tying it to jank attribution, which helps an agent decide when to set it. It doesn't add much for package/serial, but none is needed.

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?

The description names a specific measurement operation with the metrics it returns (total views, render-node kB, jank percentage, frame-time percentiles, skipped frames), so an agent knows exactly what the tool provides. It also explicitly distinguishes itself from describe_ui, preventing sibling confusion.

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

Usage Guidelines5/5

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

It states directly 'Use this — not describe_ui — to MEASURE a screen' and explains why describe_ui undercounts lists, giving a concrete decision rule. It also instructs when to pass reset=true, covering the main usage branch.

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

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/iksnerd/adb-mcp'

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