Skip to main content
Glama

Query crash / app-freeze metrics

agc_crash_metric
Read-only

Fetch AGC APM crash or app-freeze metrics by day or app version, returning counts, affected users, and rates for trend analysis.

Instructions

Query AGC APM crash or app-freeze metrics (POST /api/apm/api/v1/hap/query/{kind}/metric) and return normalised rows {day, version, count, users, rate}. If the gateway rejects the body shape, the raw response is returned with a note; use agc_request to adjust fields. This endpoint is community-verified; schema drift is possible.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNoMetric kind (default crash)
siteNoAGC site: cn / de / sg / ru (default from AGC_SITE, otherwise cn)
appIdYesAGC appId
endDateNoYYYY-MM-DD or YYYYMMDD (UTC)
versionNoFilter to one app version
dimensionNoGroup the metric by day or by app version
startDateNoYYYY-MM-DD or YYYYMMDD (UTC)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/openWorldHint/destructiveHint=false, so the safety profile is covered. The description adds genuinely useful context beyond that: the normalised row shape, the degraded fallback response behavior when the gateway rejects the body, and the community-verified/schema-drift warning.

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, front-loaded with purpose then fallback behavior then reliability caveat. Dense but every sentence carries information; no filler.

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 no output schema, the description compensates by naming the return fields {day, version, count, users, rate}, and it flags the unreliable-response path. An agent has enough to call it correctly, though the sibling-selection gap and absence of pagination/date-range default semantics leave a small hole.

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 the schema already documents all 7 parameters including enums and date formats. The description adds little parameter-level meaning beyond noting the dimension-driven row shape, so baseline 3 applies.

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 (Query) and resource (AGC APM crash/app-freeze metrics) and names the exact endpoint, plus the shape of returned rows. An agent can distinguish this metric-query tool from siblings like agc_crash_summary without opening either schema.

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?

Provides one real routing hint: if the gateway rejects the body shape, fall back to agc_request to adjust fields. However, it never states when to choose this tool versus agc_crash_summary or agc_report_trend, which is the primary selection ambiguity for an agent.

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