← Blog

12 AI prompts for analyzing your SaaS metrics

“How are we doing?” leaves an AI assistant guessing. A useful metrics prompt names the metric, the time range, and what to compare. These 12 examples work with an assistant connected to the Umlogger MCP server. Replace names like signups with your own metric slugs. The first 10 work with a read-only token.

Growth and revenue

1. Compare signups for the last 30 days with the 30 days before. Give me both totals and the percentage change.
2. Show trial-started and subscription-started for the last 30 days. Calculate the ratio of their totals, and explain why it may not be a true conversion rate.
3. Show the first and last daily averages for mrr over the last 30 days, and the change between them. Don't add the values together.
4. Chart daily churned-customers for the last 60 days as a text table. Which days stand out?

The second prompt asks for a caveat because people who start a trial this month may not subscribe until next month. Dividing the two totals doesn't follow the same group of people. The third uses daily averages because MRR is a value metric, and adding up repeated readings would give you a meaningless number.

Reliability

5. Show api-latency for the last 24 hours in 1-hour buckets. Which hour had the highest average?
6. Compare api-errors with api-requests for the last 7 days. Calculate an error rate for each day, and skip days with no requests.
7. Show nightly-backup in 1-day UTC buckets for the last 14 days. Which days have no samples? Ignore partial days at either end.

For the last prompt, the job should send a sample each time it succeeds. Missing data could mean that the job failed, or just that its request didn't reach Umlogger. Use a missing-data alert to find out without having to ask.

Finding out what changed

8. List annotations on signups for the last 30 days. Compare the 3 full days before each one with the 3 full days after. Skip any without 3 full days of data, and don't assume the event caused the change.
9. When did api-errors last rise sharply? List annotations from the 24 hours before, and suggest what I should check next.
10. List my metrics and their latest sample times. Group them by: last 24 hours, last 7 days, older, and never.

Making changes

These last two need a read & write token. Review each change before you approve it:

11. Add the annotation "Launched annual billing" to signups, dated 2026-11-30T09:00:00Z.
12. Create a count metric called "Onboarding completed". Then find the right place in this codebase to call its ingest URL, and show me the change before applying it.

The last prompt also needs an assistant that can edit your code, such as Claude Code, Cursor, or OpenCode. Treat the ingest URL as a credential: anyone who has it can send samples to that metric. For server-side code, keep its key in an environment variable.

Get more reliable answers

  • Be exact about time. 7d means a rolling 7 days, not a calendar week. Buckets use UTC, and the first and last may be partial.
  • Know the metric type. Count metrics are added up, while value metrics are averaged. A value summary gives each non-empty bucket equal weight.
  • Ask for the evidence. Have the assistant include the date range and numbers it used.
  • Separate timing from cause. An annotation near a spike is a clue, not proof.

Not connected yet? Follow the Claude Code, Cursor, and OpenCode setup guide. If you're still deciding what to measure, start with 7 metrics every indie SaaS should track.