Giving coding agents the same metric definitions as your dashboard

Coding agents are getting good at the parts of mobile operations that are tedious for humans: scanning crash buckets, summarizing what changed in a release, drafting the first pass of an incident note. The risk is not that they are bad at it. The risk is that they are confidently wrong — answering from a slightly different definition of “active user” than the one on your dashboard, and nobody notices until a decision rests on it.

AppPortal’s answer is to give agents the same read surface your team uses, backed by the same definitions. The MCP and agent APIs are not a parallel data path. They read the platform’s semantic metrics — the exact same metric definitions that power the dashboards, exports, and saved views a human reads.

One definition of every number

The quiet failure of bolting an AI on top of an analytics stack is metric drift. The dashboard computes active users one way, the export computes them another, and the agent — querying a raw API — invents a third. Three answers, all defensible, none the same. AppPortal reduces definition drift by using canonical metrics across these surfaces. A shared definition alone does not guarantee identical results: compare the same authorized app and environment, platform filters, time window, and data freshness. Different query coverage or scope can legitimately produce different answers.

In AppPortal, App Intelligence is built on shared semantic metrics, and the MCP usage surface reads those same definitions. So when an agent reports active users, sessions, installed devices, duration, or version adoption, it uses the platform’s canonical metric rather than recomputing it from raw records.

The MCP catalog is intentionally narrower than the complete Dashboard today. Release tools expose lifecycle and build readiness, not crash-free rates, and there is no general RUM percentile tool. Ask for crash-free release health or RUM percentiles in the Dashboard or Product API until those metrics have an explicit MCP projection.

Read-first, with explicit bounded actions

The MCP surface is deliberately read-first. Agents query usage, sessions, crashes, privacy-safe logs, release lifecycle, build readiness, and authorized Location/geofence catalogs, and they get typed, well-scoped answers. Read access is the least-privilege login default. Sensitive actions remain governed by separately consented OAuth scopes, current roles, app access, and audit; agents operate inside the same account scope as any other client, not above it.

The optional write surface is deliberately narrow: crash notes, Investigating or Resolved workflow state, eligible assignment, and confirmation-bound geofence or tag-policy changes. Crash mutations and single-geofence creates require idempotent operation IDs. Other geofence applies use confirmations and current resource or configuration revisions instead. A team can keep an agent entirely read-only by not granting those action scopes. There are no MCP registration or release mutation tools.

Typed APIs and MCP, same data

Not every consumer is an MCP client, so the same data is reachable through typed APIs as well. A script that pulls adoption for a release note and an MCP-connected agent answering the same usage question in chat use the same metric definitions where those metrics are supported. Check the returned scope, filters, time window, timestamps, and data freshness before comparing the results. The narrower MCP catalog can also omit a metric available in the Dashboard or Product API; that omission is not a zero value.

What it unlocks

With supported queries and their scope and freshness in view, an agent can help with workflows such as:

  • “Compare adoption of 4.1.0 and 4.2.0” returns canonical active-user, session, device, and version dimensions without collapsing them into one number.
  • “Are the 4.2.0 artifacts and symbols ready?” reads the recorded release lifecycle and build readiness without pretending those fields are crash-free health.
  • “Draft an issue for the top new crash on this release” pulls the actual bucket and its affected releases.

None of that requires the agent to hold a definition of its own, because the platform already has one and the agent is reading it.

The same principle, one more time

This is the consolidation thesis applied to AI: the value is not the model, it is the shared model underneath the model. An agent is only as trustworthy as the data it reads. AppPortal exposes canonical metric definitions over MCP and typed APIs, scoped and read-first. Review the returned evidence and its limitations alongside the question before using an answer to make a decision.

For the short answers on what the MCP surface exposes and how it stays scoped, see the FAQ. For the full platform that backs it, start with the platform overview, or look at the SDK integrations that capture the supported app activity for your host.