Skip to main content
Glama

query_lmk_rate

Read-only

Retrieve the low-memory-kill rate to quantify stability failures where the system kills apps during active use, alongside distinct users. Compare it with crash and ANR rates for a complete stability view.

Instructions

Query the low-memory-kill rate: userPerceivedLmkRate (share of distinct users whose app was killed by the system for memory pressure while they were actively using it) plus distinctUsers. Read it next to query_crash_rate and query_anr_rate — an LMK is a stability failure users see as the app disappearing, but it is not reported as a crash. Ask for userPerceivedLmkRate7dUserWeighted or userPerceivedLmkRate28dUserWeighted in metrics for rolling averages. Daily aggregation only.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "start_date": "<start_date>",
      "end_date": "<end_date>"
    },
    "name": "query_lmk_rate"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax rows to return (default: 50)
filterNoAIP-160 filter over dimensions, e.g. "versionCode = 415"
metricsNoMetrics to fetch (default: userPerceivedLmkRate, 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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.4.0
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Addedv0.3.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds genuine behavioral context beyond that: the metric's precise semantic (share of distinct users killed while actively using the app), the DAILY-only aggregation constraint, and the availability of 7d/28d user-weighted rolling variants. It does not discuss row limits, pagination, or data freshness.

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?

Three sentences, front-loaded with the primary resource and return values, then sibling positioning, then metric-name specifics. The long parenthetical definition earns its place because it is the entire semantic distinction from crash rate. Slightly dense but no filler sentences.

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?

With 8 parameters, no output schema, and a domain-specific metric, the description supplies what an agent needs: what is measured, what is returned, the aggregation constraint, and the rolling-average metric names. Missing only minor operational details such as default behavior details, result size expectations, and freshness, which the sibling get_vitals_freshness may cover.

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 baseline would be 3. The description goes beyond the schema by naming the specific metric strings userPerceivedLmkRate7dUserWeighted and userPerceivedLmkRate28dUserWeighted for rolling averages, and by restating the DAILY aggregation restriction. That is real semantic value for the metrics and aggregation_period parameters.

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?

Names a specific verb+resource (query the low-memory-kill rate) and immediately defines the exact metric returned (userPerceivedLmkRate plus distinctUsers). It explicitly positions the tool against siblings by noting an LMK is a stability failure the user sees as the app disappearing but is not reported as a crash, which separates it from query_crash_rate and query_anr_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?

Explicitly tells the agent to read results alongside query_crash_rate and query_anr_rate and explains why (LMKs are not crashes), which is real when-to-use guidance. It also states the hard constraint "Daily aggregation only." It stops short of explicit when-not or precedence rules, so it is strong but not a full routing spec.

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