Skip to main content
Glama

query_bitmap_memory_usage

Query bitmap memory usage percentiles (P50/P90/P99) and distinct users to investigate memory pressure. Supports filtering by device, process, and app state dimensions with daily aggregation.

Instructions

Query bitmap memory usage percentiles: bitmapMemoryUsageP50/P90/P99 (bytes) plus distinctUsers. Also supports P75 and P95 via metrics, and the processName and appState dimensions (e.g. FOREGROUND) on top of the usual device dimensions. Pair with query_lmk_rate when investigating memory pressure. Daily aggregation only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax rows to return (default: 50)
filterNoAIP-160 filter over dimensions, e.g. "versionCode = 415"
metricsNoMetrics to fetch (default: bitmapMemoryUsageP50, bitmapMemoryUsageP90, bitmapMemoryUsageP99, distinctUsers)
end_dateYesEnd date (inclusive) as YYYY-MM-DD, e.g. '2026-08-13'
dimensionsNoBreak the metrics down by these dimensions, e.g. ['versionCode','deviceModel']
start_dateYesStart date (inclusive) as YYYY-MM-DD, e.g. '2026-08-01'
package_nameNoApp package name, e.g. 'com.acme.app' (defaults to GOOGLE_PLAY_PACKAGE_NAME)
aggregation_periodNoAggregation granularity — this metric set only supports DAILY
Install Server

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden of behavioral disclosure. It clearly notes the daily aggregation restriction, which is a significant behavioral trait. It also hints at metrics/dimensions support beyond the schema. It does not mention permissions or side effects, but for a query tool, read-only behavior is implicit; the daily-only disclosure is the key trait.

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?

The description is two sentences, front-loaded with the core metrics, and every sentence adds value: it lists metrics, additional options, a use-case hint, and the aggregation constraint. No fluff or redundancy.

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?

Given the tool is a focused query operation with 8 parameters but no output schema, the description provides necessary context: what it returns (percentiles), common use case (memory pressure) with a sibling tool, and a key limitation (daily only). It could mention default row limits or return structure, but the core information for selection and invocation is present.

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?

Schema coverage is 100%, so parameters like dates are well-documented. The description adds value by naming available metrics (P75/P95) beyond the schema's generic 'Metrics to fetch' and highlighting special dimensions (processName, appState) that are also in the enum. This adds meaning beyond simple property names.

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 immediately states it queries bitmap memory usage percentiles and lists exact metrics (bitmapMemoryUsageP50/P90/P99 plus distinctUsers). It also clarifies additional supported metrics (P75/P95) and dimensions (processName, appState), distinguishing this query from sibling tools like query_lmk_rate.

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

Usage Guidelines4/5

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

It explicitly says 'Pair with query_lmk_rate when investigating memory pressure', giving a clear when-to-use and a complementary tool. It also states 'Daily aggregation only', setting expectations about data granularity. It does not explicitly list when NOT to use it, but the provided guidance is strong.

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

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/OrellBuehler/play-console-mcp'

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