Skip to main content
Glama

query_anr_rate

Read-only

Query Android vitals ANR rates over time, including user-perceived ANR rate, and break results down by app version, device model, country, or other dimensions to diagnose stability issues.

Instructions

Query the ANR (Application Not Responding) rate of an app over time from Android vitals: anrRate and userPerceivedAnrRate. Optionally break down by version code, device model, country and more. Data is aggregated daily in America/Los_Angeles and lags about one day.

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_anr_rate"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.4.0
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed1 schema field changedv0.3.0
    • changedInput schema / properties / dimensions / items / enum
      Previous value: -[
      -  "apiLevel",
      -  "versionCode",
      -  "deviceModel",
      -  "deviceBrand",
      -  "deviceType",
      -  "countryCode"
      -]New value: +[
      +  "apiLevel",
      +  "versionCode",
      +  "countryCode",
      +  "reportType",
      +  "issueId",
      +  "isUserPerceived",
      +  "deviceModel",
      +  "deviceBrand",
      +  "deviceType",
      +  "deviceRamBucket",
      +  "deviceSocMake",
      +  "deviceSocModel",
      +  "deviceCpuMake",
      +  "deviceCpuModel",
      +  "deviceGpuMake",
      +  "deviceGpuModel",
      +  "deviceGpuVersion",
      +  "deviceVulkanVersion",
      +  "deviceGlEsVersion",
      +  "deviceScreenSize",
      +  "deviceScreenDpi",
      +  "startType",
      +  "processName",
      +  "appState"
      +]
  3. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds substantive behavior beyond them: aggregation is daily in America/Los_Angeles, data lags about a day, and the returned metrics are anrRate/userPerceivedAnrRate. It does not mention pagination or how limit interacts with aggregation, which keeps it short of a 5.

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 tight sentences: purpose first, then breakdown capability, then the freshness/timezone caveat that most affects query design. The only slightly loose element is the vague 'and more' when the schema already enumerates the full dimension list.

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?

For an 8-parameter read-only query with a fully documented schema and no output schema, this covers what an agent needs: what metrics come back, what can be broken down, the aggregation timezone and the ~1-day lag. Nothing material is missing for correct invocation.

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 every parameter including limit, filter, dimensions and package_name is already documented with examples and defaults. The description restates the dimension capability ('version code, device model, country and more') and default metrics but adds no syntax or constraint detail beyond the schema, so the 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?

States a specific verb and resource: 'Query the ANR rate of an app over time from Android vitals', naming the two metrics (anrRate, userPerceivedAnrRate) and the supported breakdowns. An agent can distinguish it from the crash/LMK/rendering siblings by resource alone, but the description never explicitly contrasts with those siblings.

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 implied by the resource and the optional breakdown/dimension language, and the 'lags about one day' note tells the caller how far back to query. There is no explicit when-to-use versus alternatives (e.g. use query_crash_rate for crash rates, or get_vitals_freshness to verify data availability), so the agent must infer routing.

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