MJO · Essay 8
Measuring MJO: the event schema and the MJO score
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 web page sees intent: which client they picked, whether they copied the address, whether they came back after connecting.
- The authorization server sees the OAuth flow: a client registering, a person signing in or creating an account, a grant being issued or revoked.
- The MCP server sees the session: the initialize handshake, the tool list being read, every tool call, its result and how long it took.
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.
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:
client_picked: what the person chose on your setup page. This is intent, and it is the only one you see before they connect.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.client_reported: the name the client sends in the MCP initialize handshake. The MCP lifecycle spec says the first request a client sends isinitialize, and itsparams.clientInfocarries the client'sname, an optional displaytitleand aversion.
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.
| Event | Stage | Fires when | Source | Extra properties |
|---|---|---|---|---|
setup_page_viewed | Discover | The page that starts the journey loads | web | referrer_kind, campaign |
client_picked | Install | The person chooses Claude, ChatGPT or another client | web | client_picked, attempt_id |
address_copied | Install | Copy address is pressed | web | attempt_id |
client_opened | Install | The Open button hands off to the client | web | attempt_id |
client_registered | Authorize | A client registers with the authorization server | auth | client_registered, oauth_client_id |
authorize_started | Authorize | The authorize endpoint is hit | auth | oauth_client_id, signed_in |
account_created | Authorize | A new account is created inside the flow | auth | method |
consent_granted | Authorize | A grant is issued | auth | scopes, attempt_id |
grant_detected | Authorize | The setup page sees the new grant | web | wait_ms |
session_initialized | Install | An initialize request arrives | mcp | client_reported, client_version, protocol_version |
tool_called | First tool call | Every tools/call returns | mcp | tool, ok, error_kind, latency_ms, is_first |
value_delivered | First value | The product's own output is ready | mcp | kind, latency_ms, is_first |
price_quoted | Pay | A tool returns a price before spending | mcp | credits, tool |
spend_approved | Pay | A spend runs on the person's yes | mcp | credits, cap |
payment_completed | Pay | Money is received | web | amount, currency, product |
session_returned | Return | First tool call on a later calendar day | mcp | days_since_first |
grant_revoked | Return | A grant is revoked or expires unrefreshed | auth | reason |
Three rules keep the schema honest.
okfollows the protocol. The MCP tools spec separates protocol errors (a JSON-RPC error, such as an unknown tool) from tool execution errors (a result withisError: true). Recordok: falsefor both, and put which one inerror_kindalong with your own reason, such asneeds_creditsorbad_input.- Never log what the person said. Log the tool name and the names of the arguments, not their values. Prompts, file names and customer data stay out of the event log.
- A refusal is not a failure, but it is counted. A tool that declines to spend without a quote returns
ok: false, error_kind: "needs_approval". You want to see how often that happens and what follows it.
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.
| Metric | Definition | What it tells you |
|---|---|---|
| Connection rate | Attempts with consent_granted ÷ attempts with client_picked | Whether your install and authorize steps work for this client |
| Time to first success | Median time from consent_granted to the first tool_called with ok: true | How long a new connection sits idle or stuck |
| First-call success rate | Connections whose first tool_called has ok: true ÷ connections with any tool call | Whether your tool names, descriptions and errors work for this client's model |
| First-payment rate | Connections with a payment_completed within 30 days ÷ connections with a value_delivered | Whether value turns into money inside this client |
| 7-day return | Connections with a session_returned where days_since_first is 1 to 7 ÷ connections with first value | Whether 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.
- 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. - Data comes in through a link, not chat. When there is no data yet, the server returns a
connect_sourcelink that opens a SpendSignal page; credentials are never asked for in chat. That page writes its own web events (source_connect_opened,source_connected, carryingconnection_id), so the gap between "status: no data" and "data connected" is a measured step, not a mystery. - 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_deliveredcarrieskind: "recommendation"and anengineproperty. Splitting first value by engine tells you which half of the product people meet first. - 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.
| Stage | Criteria (points) | Total |
|---|---|---|
| Discover | Your 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 |
| Install | One 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 |
| Authorize | A 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 call | A 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 value | A 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 |
| Pay | A 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 |
| Return | The 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 |
| Total | 100 | |
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
- Add
connection_idto every MCP server log line. Nothing else works without it. - Log
clientInfofrom the initialize request, exactly as received. - Log every tool call with
tool,ok,error_kind,latency_msandis_first. - Add
client_pickedandgrant_detectedto your setup page. - 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.