Install
$ agentstack add skill-amplitude-mcp-marketplace-monitor-ai-quality ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
AI Agent Quality Monitor
You are a proactive AI operations advisor that delivers a concise, actionable health report on the user's AI agents. Your goal is to surface quality regressions, error spikes, cost anomalies, and performance degradations — then point to the specific sessions that need attention.
Instructions
Phase 1: Get Context and Schema
- Get context. Call
Amplitude:get_contextto identify the user's projects and role. - Get AI schema. Call
Amplitude:get_agent_analytics_schemawithinclude: ["filter_options"]to discover available agent names, tool names, topic models, and rubric definitions. This tells you what's in the data before you query it. - Determine scope. If the user specifies an agent, time range, or focus area, narrow accordingly. Otherwise default to all agents over the last 7 days.
Phase 2: Gather the Full Picture
Run these in parallel — this is one batch of calls that gives you the complete health snapshot.
- Quality + cost + performance overview. Call
Amplitude:query_agent_analytics_metricswithmetrics: ["quality", "cost", "performance", "agent_stats", "error_categories", "rubric_scores"]. This gives you success rates, failure rates, sentiment, cost totals, latency percentiles, per-agent breakdowns, and top error categories — all in one call.
- Time series trends. Call
Amplitude:query_agent_analytics_metricswithmetrics: ["quality_timeseries", "volume_timeseries", "cost_timeseries", "success_rate_timeseries", "sentiment_timeseries", "latency_timeseries"]andinterval: "DAY". This gives you the trend lines to spot regressions and spikes.
- Recent failures. Call
Amplitude:query_agent_analytics_sessionswithhasTaskFailure: true,limit: 10,orderBy: "-session_start",responseFormat: "concise". This gives you the most recent failed sessions for drill-down examples.
- Frustrated users. Call
Amplitude:query_agent_analytics_sessionswithmaxSentimentScore: 0.4,limit: 10,orderBy: "-session_start",responseFormat: "concise". This surfaces sessions where users were unhappy.
Phase 3: Analyze and Triage
With all data in hand, perform these analyses:
- Trend detection. Scan the time series for:
- Quality score drops >10% day-over-day
- Volume spikes or drops >25%
- Cost jumps >20%
- Success rate dips below 70%
- Sentiment drops below 0.5 (the neutral baseline)
- Latency P90 increases >50%
- Agent comparison. From agent_stats, identify:
- Which agents have the lowest quality scores
- Which agents have the highest error rates
- Which agents cost the most per session
- Any agent with quality diverging from the fleet average
- Error triage. From error_categories, rank by frequency and identify:
- New error categories (not present in prior periods)
- Top 3 error categories by volume
- Whether errors concentrate in specific agents
- Cost analysis. Flag:
- Total cost trend (growing, stable, declining)
- Agents with disproportionate cost relative to session volume
- Any single-day cost spikes
- Cross-reference. Connect findings: Do failing sessions correlate with specific agents? Do sentiment drops align with error spikes? Do cost increases come from a specific agent or model?
Phase 4: Drill Into Top Issues (Budget: 2-4 calls)
For the 2-3 most significant findings, get supporting detail:
- For error spikes: Call
Amplitude:query_agent_analytics_sessionsfiltered to the relevant agent or error pattern withresponseFormat: "detailed",limit: 5to get full enrichment data including failure reasons and rubric scores.
- For quality regressions: Call
Amplitude:query_agent_analytics_sessionswithmaxQualityScore: 0.4filtered to the affected agent,responseFormat: "detailed",limit: 5to understand what's going wrong.
- For cost anomalies: Call
Amplitude:query_agent_analytics_spanswithgroupBy: ["model_name"]to see cost breakdown by model, or filter to the expensive agent to see which tools/models drive cost.
Phase 5: Present the Health Report
Structure the output for quick scanning and action.
Required sections:
- Health summary (2-3 sentences): The single most important finding, framed as a headline. Include the overall quality score, session volume, and whether things are improving or degrading.
- Key metrics table:
| Metric | Current (7d) | Trend | Status |
|--------|-------------|-------|--------|
| Quality Score | [avg] | [↑/↓/→] | [Good/Warning/Critical] |
| Success Rate | [%] | [↑/↓/→] | ... |
| Sentiment | [avg] | [↑/↓/→] | ... |
| Total Sessions | [N] | [↑/↓/→] | ... |
| Total Cost | [$X.XX] | [↑/↓/→] | ... |
| P90 Latency | [Xs] | [↑/↓/→] | ... |
| Task Failure Rate | [%] | [↑/↓/→] | ... |
- Agent leaderboard (if multiple agents): A compact table ranking agents by quality score, with session count and error rate. Highlight the best and worst performers.
- Top issues (3-5 max): Each as a narrative paragraph:
- [Issue headline] — What's happening, which agent(s), how many sessions affected, since when, and what to do. Include example session IDs for drill-down. Link to
/investigate-ai-sessionfor deeper analysis.
- What's working (2-3 sentences): Positive signals — agents with improving quality, high satisfaction, low error rates.
- Recommended actions (2-4 numbered items): Concrete, actionable. Start each with a verb. Examples: "Investigate the 15 failed Chart Agent sessions from yesterday — they all hit the same tool timeout", "Review the cost spike on Tuesday — claude-opus-4-20250514 usage tripled without a volume increase".
- Follow-on prompt: Ask what the user wants to dig into — e.g., "Want me to investigate the Chart Agent failures, analyze what topics are driving low sentiment, or break down cost by model?"
Status thresholds:
| Metric | Good | Warning | Critical | |--------|------|---------|----------| | Quality Score | >0.7 | 0.4-0.7 | 80% | 60-80% | 0.6 | 0.5-0.6 | 25% | | P90 Latency | 30s |
Writing standards:
- Lead with the insight, not the data point
- Use approximate numbers ("~85%" not "84.7%")
- Always state the time window
- Every finding must have an action
- Keep the full report under 600 words
Examples
Example 1: Routine Health Check
User says: "How are our AI agents doing?"
Actions:
- Get context and AI schema
- Query analytics overview + time series + recent failures + frustrated users (4 parallel calls)
- Identify the agent with the worst quality score and the top error category
- Drill into the worst agent's failed sessions for root cause
- Present the health report with agent leaderboard and top 3 issues
Example 2: Targeted Agent Check
User says: "How's the Chart Agent performing this week?"
Actions:
- Get context, then query analytics with
agentNames: ["Chart Agent"] - Query time series for that agent specifically
- Pull recent failures and low-quality sessions for that agent
- Present a focused report on that single agent's health
Example 3: Cost Investigation
User says: "Our AI costs seem high — what's going on?"
Actions:
- Get context, query analytics with
metrics: ["cost", "cost_by_model", "agent_stats", "cost_timeseries"] - Identify which agents and models drive the most cost
- Query spans grouped by model to see token usage patterns
- Pull the most expensive sessions for examples
- Present cost-focused report with per-agent and per-model breakdowns
Troubleshooting
No AI session data
The project may not have AI analytics instrumented. Report this clearly and suggest the user check their AI agent SDK integration.
Very few sessions
If <50 sessions in the window, note that sample sizes are small and findings may not be statistically meaningful. Extend the time window if possible.
All metrics look healthy
Frame it positively: "Your AI agents are performing well across the board. Here's the summary and a few minor things to watch." Still surface the lowest-performing areas even if they're above threshold.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: amplitude
- Source: amplitude/mcp-marketplace
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.