Sachin Uppal

MJO · Essay 8

Measuring MJO: the event schema and the MJO score

By Sachin Uppal · 26 November 2026 · 10 min read

MCP Journey Optimization (MJO), a term coined by Sachin Uppal, is the discipline of designing and measuring every step a person takes to find, connect, authorize, pay for and keep using a product inside an AI client such as Claude, ChatGPT, Gemini or an IDE over the Model Context Protocol.

You cannot optimise a journey you only see in pieces. Most teams with an MCP server know how many accounts they have and how many tool calls they served. Neither number tells them where people leave.

This essay is the measurement half of MCP Journey Optimization. It gives a concrete event schema that covers all seven stages, says which system captures each event, shows how to tell Claude from ChatGPT using only what your server actually receives, defines five core metrics, and sets out the MJO score as a rubric you can apply to your own journey. If you have not read the stages yet, start with the seven-stage funnel.

The problem: three systems, one journey

An MCP journey crosses three systems you own and one you don't. The person starts on your web page, goes through your authorization server, then talks to your MCP server through an AI client you do not control. Each of your three systems sees a different slice:

The AI client sees everything in between, including what the person typed and what the model decided. You will never see that, and you should not try to. MJO measurement is built only from what reaches your own systems.

WHERE IT HAPPENSONE LOGWHAT YOU READ Your web pageAuthorization serverMCP serverEvent logPer-client funnelMJO score client_pickedgrant_detectedpayment_completed client_registeredconsent_grantedgrant_revoked session_initializedtool_calledprice_quoted keyed byaccount_idconnection_idclient (three sources)one row per event by client, by stage100 points, evidence
Three systems you own write to one log. The AI client in the middle is never instrumented.

Two join keys and one awkward field

The schema works because every event carries the same two keys.

account_id is your own user or workspace id. The web page knows it once the person signs in; the authorization server knows it once they sign in or sign up there; the MCP server knows it because the access token on every request resolves to it.

connection_id is the id of the OAuth grant. One account connected to Claude and to ChatGPT has two connections, and they are two journeys. The authorization server creates it; the MCP server reads it from the token. Before the grant exists, the web page records an attempt_id and the authorization server links it to the new connection_id when consent completes, if your flow can carry it through the OAuth state.

The awkward field is client, which AI app the connection belongs to. There is no single authoritative source, so record the three you have and keep them apart:

  1. client_picked: what the person chose on your setup page. This is intent, and it is the only one you see before they connect.
  2. client_registered: the client name your authorization server received when the client registered itself through dynamic client registration. See the auth guidance from Claude and OpenAI for how each client connects.
  3. client_reported: the name the client sends in the MCP initialize handshake. The MCP lifecycle spec says the first request a client sends is initialize, and its params.clientInfo carries the client's name, an optional display title and a version.

Log the reported name exactly as received, and map it to a short label (claude, chatgpt, cursor) in a lookup table you can edit, not in code. It is what the client says about itself; the spec does not describe any way to verify it. Do not guess the client from IP ranges, user agents or the shape of requests. When the three disagree, that is a finding, not noise: a person who picked ChatGPT and connected from something else was confused by your setup page.

The event schema, stage by stage

Every event shares a base: event, ts, source (web, auth or mcp), account_id, connection_id and client, where known. The table lists the rest.

EventStageFires whenSourceExtra properties
setup_page_viewedDiscoverThe page that starts the journey loadswebreferrer_kind, campaign
client_pickedInstallThe person chooses Claude, ChatGPT or another clientwebclient_picked, attempt_id
address_copiedInstallCopy address is pressedwebattempt_id
client_openedInstallThe Open button hands off to the clientwebattempt_id
client_registeredAuthorizeA client registers with the authorization serverauthclient_registered, oauth_client_id
authorize_startedAuthorizeThe authorize endpoint is hitauthoauth_client_id, signed_in
account_createdAuthorizeA new account is created inside the flowauthmethod
consent_grantedAuthorizeA grant is issuedauthscopes, attempt_id
grant_detectedAuthorizeThe setup page sees the new grantwebwait_ms
session_initializedInstallAn initialize request arrivesmcpclient_reported, client_version, protocol_version
tool_calledFirst tool callEvery tools/call returnsmcptool, ok, error_kind, latency_ms, is_first
value_deliveredFirst valueThe product's own output is readymcpkind, latency_ms, is_first
price_quotedPayA tool returns a price before spendingmcpcredits, tool
spend_approvedPayA spend runs on the person's yesmcpcredits, cap
payment_completedPayMoney is receivedwebamount, currency, product
session_returnedReturnFirst tool call on a later calendar daymcpdays_since_first
grant_revokedReturnA grant is revoked or expires unrefreshedauthreason

Three rules keep the schema honest.

The same schema as JSON

{
  "base": {
    "event": "string",
    "ts": "ISO 8601",
    "source": "web | auth | mcp",
    "account_id": "string | null",
    "connection_id": "string | null",
    "attempt_id": "string | null",
    "client": "claude | chatgpt | cursor | ... | unknown"
  },
  "events": {
    "setup_page_viewed":   { "stage": "discover",   "props": ["referrer_kind", "campaign"] },
    "client_picked":       { "stage": "install",    "props": ["client_picked"] },
    "address_copied":      { "stage": "install",    "props": [] },
    "client_opened":       { "stage": "install",    "props": [] },
    "client_registered":   { "stage": "authorize",  "props": ["client_registered", "oauth_client_id"] },
    "authorize_started":   { "stage": "authorize",  "props": ["oauth_client_id", "signed_in"] },
    "account_created":     { "stage": "authorize",  "props": ["method"] },
    "consent_granted":     { "stage": "authorize",  "props": ["scopes"] },
    "grant_detected":      { "stage": "authorize",  "props": ["wait_ms"] },
    "session_initialized": { "stage": "install",    "props": ["client_reported", "client_version", "protocol_version"] },
    "tool_called":         { "stage": "first_call", "props": ["tool", "ok", "error_kind", "latency_ms", "is_first", "arg_names"] },
    "value_delivered":     { "stage": "first_value","props": ["kind", "latency_ms", "is_first"] },
    "price_quoted":        { "stage": "pay",        "props": ["tool", "credits"] },
    "spend_approved":      { "stage": "pay",        "props": ["credits", "cap"] },
    "payment_completed":   { "stage": "pay",        "props": ["amount", "currency", "product"] },
    "session_returned":    { "stage": "return",     "props": ["days_since_first"] },
    "grant_revoked":       { "stage": "return",     "props": ["reason"] }
  }
}

Five core metrics

Every metric is computed per client. An average across clients hides the one that is broken.

MetricDefinitionWhat it tells you
Connection rateAttempts with consent_granted ÷ attempts with client_pickedWhether your install and authorize steps work for this client
Time to first successMedian time from consent_granted to the first tool_called with ok: trueHow long a new connection sits idle or stuck
First-call success rateConnections whose first tool_called has ok: true ÷ connections with any tool callWhether your tool names, descriptions and errors work for this client's model
First-payment rateConnections with a payment_completed within 30 days ÷ connections with a value_deliveredWhether value turns into money inside this client
7-day returnConnections with a session_returned where days_since_first is 1 to 7 ÷ connections with first valueWhether the person found a reason to come back

Two counts sit beside them. Connected but silent: connections with a grant and no tool call at all after 24 hours. These are people who finished setup and then did not know what to type; a starter prompt is the usual fix (see the first tool call). Picked but unregistered: attempts with client_picked where no client_registered ever arrives. These people never got your address into their client at all.

I am not publishing target values here. I don't yet have enough measured journeys to say what good looks like, and I won't make numbers up. When our own funnels have run long enough, I will publish them, per client, with the dates they cover.

Per-client funnels

Lay the seven stages out as columns and the clients as rows. Each cell is the count of connections (or attempts, before a connection exists) that reached that stage. Read across a row to find that client's worst step. Read down a column to find a step that is broken for one client and fine for the rest.

The second reading is where MJO earns its keep. If first-call success is fine in one client and poor in another, the cause is almost never your product. It is usually how that client's model reads your tool descriptions, how it shows results, or how its connector screen differs. That is exactly what a single combined funnel hides. Designing for a screen you don't own covers what you can change once you have seen it.

A worked example: SpendSignal

SpendSignal runs marketing-mix and incrementality models on a company's own marketing and revenue data. It suits this essay because it is itself an analytics product, and its MCP journey has a few shapes worth instrumenting.

  1. A safe first call. SpendSignal's server tells the model to start with a workspace status check. That call reads, never spends, and works on an empty workspace. In the schema it is the first tool_called, and it should almost never fail. If it does, the fault is in authorization or the server, not in the person's data.
  2. Data comes in through a link, not chat. When there is no data yet, the server returns a connect_source link that opens a SpendSignal page; credentials are never asked for in chat. That page writes its own web events (source_connect_opened, source_connected, carrying connection_id), so the gap between "status: no data" and "data connected" is a measured step, not a mystery.
  3. First value is a recommendation with its uncertainty. SpendSignal quotes iROAS with its band and forecasts with P10 to P90, and it names which engine produced each number. So value_delivered carries kind: "recommendation" and an engine property. Splitting first value by engine tells you which half of the product people meet first.
  4. Recommendations only. SpendSignal never claims a budget was changed. There is no "action taken" event to count, and there should not be one. The return stage is measured by people coming back to ask again, which is the honest measure for an advisory product.

The general lesson: add product-specific events, but hang them on the same base and the same two keys. A custom event without connection_id cannot be placed in a funnel.

The MJO score

The metrics tell you how your journey performs. The MJO score tells you how it is built. It is a checklist with points, scored from evidence: a criterion counts only if you can show it, in a screenshot, a test or an event. It works before you have traffic, which is when you most need it.

StageCriteria (points)Total
DiscoverYour site says, on a page of its own, which AI clients the product works in (5) · listed in each client's directory where one exists (5) · you check whether AI answers name you for your category, and record the result (5)15
InstallOne remote address that works in every supported client (6) · steps written for each client separately (4) · no file editing or local install for a non-developer (4)14
AuthorizeA new person can create an account inside the authorization flow (6) · connecting needs only the address (4) · the person returns to the chat, and your page notices the grant by itself (4)14
First tool callA ready-to-copy starter prompt that calls a tool (5) · a small set of verb-object tools, one job each (5) · every error says what to do next, in plain words (5)15
First valueA useful result in the first session (6) · visible progress for anything slow (4) · results sized for the chat, with detail behind a link (4)14
PayA price is shown before anything is spent (6) · one approval with the agreed figure as a cap (4) · paying happens in place or returns to the chat (4)14
ReturnThe connection stays valid without a reconnect (5) · the next session picks up where the last one left off (5) · the events above are logged per client, so you know who came back (4)14
Total100

Score each client separately. A journey can score well in Claude and poorly in a client whose setup you never wrote down. Discover and First tool call carry one point more than the rest because they are the two stages people most often never get past.

Partial credit is allowed only where a criterion is plainly partial, such as per-client steps that cover two of your four clients. Write the evidence for every point next to it. A score without evidence is an opinion.

Where to start

  1. Add connection_id to every MCP server log line. Nothing else works without it.
  2. Log clientInfo from the initialize request, exactly as received.
  3. Log every tool call with tool, ok, error_kind, latency_ms and is_first.
  4. Add client_picked and grant_detected to your setup page.
  5. Score your journey against the rubric, per client, and fix the cheapest missing points first.

That is a day or two of work for most teams, and it turns MJO from a set of opinions about onboarding into a funnel you can read.

Questions

Can I trust the client name in clientInfo?

Treat it as the client's own description of itself. Use it for funnels, keep the raw value, and compare it with what the person picked and what registered with your authorization server. Do not use it for security decisions.

Do I need an analytics vendor for this?

No. The events are rows with a handful of fields. A table in the database you already run is enough to compute every metric here.

Keep reading: MCP Journey Optimization: the definition, framework and FAQ · next, MJO for B2B.

Cite as: Uppal, S. (2026). Measuring MJO: the event schema and the MJO score. sachinuppal.com.