Skip to main content
Glama

query_crash_rate

Read-only

Retrieve an app's daily crash rate and user-perceived crash rate from Android vitals, with optional breakdowns by version, device, or country to diagnose stability issues.

Instructions

Query the crash rate of an app over time from Android vitals: crashRate (share of distinct users who experienced a crash) and userPerceivedCrashRate (crashes while the user was interacting). Optionally break down by version code, device model, country and more. Data is aggregated daily in America/Los_Angeles, lags about one day, and slices with too few users are omitted by Google.

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

Input Schema

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

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

Beyond readOnlyHint/openWorldHint, the description discloses real behavioral traits: daily aggregation in America/Los_Angeles, roughly one-day data lag, and Google-side suppression of slices with too few users — an important non-obvious caveat that explains missing rows. It does not cover rate limits, pagination behavior, or how limit truncation interacts with dimension cardinality, so it stops short of full transparency.

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?

Well front-loaded: the resource and metric definitions come first, then dimension options, then data-freshness caveats. It is dense but mostly earns its length; the vague 'and more' for dimensions is the one weak phrase that forces a schema lookup.

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?

For an 8-parameter read-only query tool with a fully documented schema and no output schema, the description supplies the essential context: what the metrics mean, how data is aggregated, and why some slices are absent. Gaps are minor — query cost/cardinality implications and explicit result-shape expectations are not addressed, but annotations and schema cover the safety profile.

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%, so all eight parameters are already documented, establishing the baseline of 3. The description adds the meaning of the two default metrics and notes that breakdowns are optional and extensible ('by version code, device model, country and more'), but says nothing extra about filter syntax, limit semantics, or aggregation_period tradeoffs.

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?

States a specific verb and resource ('Query the crash rate of an app over time from Android vitals') and defines the two metrics it returns (crashRate = share of distinct users who crashed, userPerceivedCrashRate = crashes during interaction). This distinguishes it clearly from siblings such as query_anr_rate or query_error_counts without requiring the schema to be opened.

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 context is implied by the metric definitions and the daily/one-day-lag framing, so an agent can infer this is the crash-specific vitals query. However, there is no explicit when-to-use versus when-not guidance and no named alternatives (e.g., which tool to use for ANR or error-count questions), leaving routing to inference.

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