Skip to content

MCP reference

KeepSnappy MCP server (stdio) for coding agents: alarms, compare, window history, commits and layers, with the same answers as the keepsnappy CLI. It only reads, except submit_hypotheses (stores hypotheses about an alarm) and propose_false_alarm (stores an AI false-alarm answer shown at once next to the unchanged verdict; a person’s mark wins).

Connect the server

Your coding agent starts the server on your machine and talks to it over stdio. For Claude Code, add .mcp.json at the root of your app repo:

{
"mcpServers": {
"keepsnappy": {
"command": "npx",
"args": ["-y", "@keepsnappy/mcp"],
"env": {
"KEEPSNAPPY_KEY": "${KEEPSNAPPY_KEY}"
}
}
}
}

Claude Code fills in ${KEEPSNAPPY_KEY} from your shell. Another coding agent takes the same command, arguments and KEEPSNAPPY_KEY in its own MCP settings. The server reads:

  • KEEPSNAPPY_KEY (or KEEPSNAPPY_READ_KEY): a read key, made with Connect a coding agent on Setup in the dashboard.
  • KEEPSNAPPY_API (or KEEPSNAPPY_API_URL): the API address. Leave it unset for the hosted KeepSnappy API.

Without a key the server still starts, and every tool answers with the key to set. In your coding agent has every step, with the key in your shell.

Words the tools use

  • Lane: one journey on one phone model. list_lanes lists them (Lane).
  • Run set: one stored session. Tools take its ID as run_set (Run set).
  • Window: another name for a place, as in window_history (Window).
  • Alarm: what KeepSnappy raises for a place that got Worse or Slightly worse on a branch or on main, with an ID such as f_… (Alarm). Tool and field names call it finding (list_findings, get_finding, fixable_findings, finding_id); those names are fixed. The same tools also list places that got better, with the same kind of ID.
  • Heat run (kind heat): a run in which the phone heated up. Each one is listed on its own, whatever the comparison says.
  • Verdict: another name for a result (Verdict).
  • Tier: the result of a main session against the main sessions before it.
  • Felt cost (felt_cost_ms): the time the dashboard shows as Slower by. For each worse place, how far its render or jank time goes past its Slightly worse limit, added up, in ms.
  • Layer: one question KeepSnappy answers on the way to a result, from “Was it measured with the same instrument?” to “Who gets which answer, from where?”. explain_layers lists them.
  • Derivation: the version of KeepSnappy’s processing that turned runs into stored values. A recompute processes runs on an older derivation again.

Tools

ToolAccessWhat it answers
list_findingsreadsList what got worse or better
list_lanesreadsThe journeys and phones measured
get_findingreadsOne alarm or changed place, with evidence and a prompt
fixable_findingsreadsThe alarms of a PR that a fix can be proposed for
fix_resultsreadsWhat a proposed fix did to the alarms it was for
get_investigationreadsThe investigation package of one alarm
submit_hypotheseswritesSubmit hypotheses about an alarm
compare_runsreadsCompare two runs
window_historyreadsOne window on main over time
commits_betweenreadsMeasured commits between two points
session_placesreadsEvery place of one session
explain_layersreadsWhich layer answers which question
main_sessionsreadsMain sessions and their tiers
main_changesreadsMain changes with their commits and PRs
main_vs_previousreadsMain session vs previous: stored medians
place_trendreadsOne place over main sessions
main_hotspotsreadsWhere to optimise on main
pr_statusreadsIs my PR ok?
list_problemsreadsList single problems (Over budget)
rules_statusreadsWhich rules the results were computed with
propose_false_alarmwritesPropose that an alarm is a false alarm

list_findings

List what got worse or better. Only reads.

What got worse (Worse / Slightly worse) or better in the app, worst first, as KeepSnappy measured it on real phones, simulators and emulators. The answer starts with whether and when the branch was measured and how its newest run set read: an empty list on a branch that was never measured, or whose newest run set was not judged, is not a clean result. Filter by a PR branch or main, journey, phone, and state (present by default; not-judged = the newest run set did not judge it, so it may still be there). Each place says what changed, where, how sure, and has an id for get_finding with its branch. Page with offset. form short leaves out the how-sure lines, the place lines of what is not Worse and the lanes that were judged, and ends with a line saying so.

InputTypeRequiredDescription
branchtextnoA PR branch, e.g. feat/keepsnappy-integration
maintrue or falsenoWhat got worse or better on main over time, instead of a branch
journeytextnoJourney key, e.g. live-ui
phonetextnoPart of the phone model, e.g. “iPhone 15”
stateone of present, resolved, not-judged, allnoWhich places: present (the default), resolved, not-judged (the newest run set did not judge it, so it may still be there), or all
limitwhole number, 1 to 200noHow many places to return, 1 to 200; the answer gives next_offset when there are more
offsetwhole number, at least 0noSkip this many places; the answer gives next_offset
formone of short, fullnofull (default): the whole answer. short: what decides, without the evidence detail; its last line says what it left out. The same JSON either way

list_lanes

The journeys and phones measured. Only reads.

Every journey × phone of the app with a stored result, once: the journey key and the phone model the other tools take, the newest measurement and the branches it was measured on. Read from the stored newest run set of each lane (the lanes list_findings counts); nothing is computed.

Takes no inputs.

get_finding

One alarm or changed place, with evidence and a prompt. Only reads.

If an ID is on several branches, a bare read lists the branches and their commands. Give one of the listed branches to see its values. One alarm (or a place that got better) by id: what changed, where (journey, phone, branch, commit, PR), how sure (runs, spread, measured differently / not blocking), why (components that rendered longer and their causes, counts that moved, stored memory values), what to do (a prompt for a coding agent), and since when it is seen. The evidence ranks likely causes; it does not prove them. why.status: ok = stored evidence is attached; memory = stored memory values (the judged measure and, at the whole journey, launch level, end growth and peak growth); none = no stored evidence for this place, or a heat alarm where React evidence does not explain the measure; no-profiles = the input runs explicitly recorded React export off; no-timings = profiles have no usable component timings; not-enough-runs = too few runs for component evidence. The last two values are not used yet. Null component values were not stored; a new component has a null baseline. Counts and the three explanatory journey memory values are evidence, never a result. The judged memory line has no evidence word; its result is the place’s word. Null memory values were not stored; they are never zero. why.cpu (a place on a PR, when stored) is the place’s CPU time (place) and the session’s app CPU in cores (session), main → PR, from stored results: shown, never judged; a null side was not stored, never zero. When a coding agent stored a likely cause for the place on this branch, one line says it: “Likely cause (AI, <confidence>): <claim> — <file:line>”. It is that agent’s prediction, never a fact or the result. form short leaves out the why line when it names no component, the seen and layer lines, the component lines, the memory evidence lines other than the judged measure and the prompt, and ends with a line saying so.

InputTypeRequiredDescription
idtext matching ^f_[0-9a-f]{16}$yesThe id (f_…) from list_findings or pr_status
branchtextnoThe branch it was listed for. Omit to read a finding on one branch or list its branches.
formone of short, fullnofull (default): the whole answer. short: what decides, without the evidence detail; its last line says what it left out. The same JSON either way

fixable_findings

The alarms of a PR that a fix can be proposed for. Only reads.

The Worse and Slightly worse alarms of one pull request that are open now, ordered by felt_cost_ms, biggest first, unknown last (then id, branch and run set), each with its word, place, impact (ms, null when unknown), the branch and run set it was read on, and how many open hypotheses are stored for it on that branch (one stored without a branch counts on every row of its alarm). The list keepsnappy fix --list prints and the KeepSnappy Mac app shows as checkboxes. Give a PR branch or a PR number: a PR number reads every branch of that PR, one row per alarm and branch. The API selects and pages the list: the answer gives total and next_offset, and its text says how many rows are shown of how many and the offset of the next page; follow next_offset until it is null. total 0 means nothing to fix; an empty page with total above 0 is past the end; a PR with no branch was never measured, which is not “nothing to fix”. An older server cannot scope the list: the answer then says it cannot confirm the scope or that the list is complete, and never says “nothing to fix”. Main has no fix path: its list is empty. This only reads: opening a fix PR is the keepsnappy fix command, never a tool here.

InputTypeRequiredDescription
branchtextnoThe PR branch, e.g. feat/keepsnappy-integration
prwhole number, at least 1noThe PR number, instead of the branch
limitwhole number, 1 to 200noHow many rows to return, 1 to 200 (default 50); the answer gives next_offset when there are more
offsetwhole number, 0 to 100000noSkip this many rows; the answer gives next_offset

fix_results

What a proposed fix did to the alarms it was for. Only reads.

The fix PRs keepsnappy fix opened, with the card of each: whole outcome (Fixed, Partly fixed, No change, Worse, or Waiting for the fix branch) and, per original alarm, Fixed, No change, Worse or Waiting, read from the fix branch’s stored result of the same journey and phone, with what is new on the fix branch. Waiting means that lane is not measured yet: it is never read as Fixed. Give the PR branch, the fix branch, or a PR number (the PR the alarms are on, or the draft fix PR), one of them. Newest first, 20 per page by default: the answer gives total and next_offset, and the next page is offset = next_offset until it is null. An older server sends neither: its page may not be the whole list, and an empty page is not “no fix was proposed”. This only reads: nothing here measures, judges or opens a PR.

InputTypeRequiredDescription
branchtextnoThe PR branch or the fix branch (keepsnappy/fix-<pr>)
prwhole number, at least 1noA PR number, instead of a branch
limitwhole number, 1 to 50noProposals per page (default 20)
offsetwhole number, 0 to 10000noSkip this many proposals, newest first: give the next_offset of the previous answer

get_investigation

The investigation package of one alarm. Only reads.

The package a coding agent investigates an alarm from, made of stored results only: the alarm, the stored verdict of its journey × phone lane (the one place a verdict word comes from), the worse places with main and branch values, the components to check, the problems over budget, the measured commits between main and the PR with their PRs, and, for an alarm on main, the confirmed change with the PRs merged in its range. The comparison roster gives the run and run-set IDs from the judgement that produced the alarm. It keeps the stored run ID when a header is unavailable. Lists say their total when cut. The digest includes the full comparison membership. Send it back as package_digest to submit_hypotheses. The package is not a diagnosis: read the code for causes, and say them as hypotheses with a measurable expected change. form short leaves out the lines of the worse places, the components to check, the problems, the commits and the comparison run IDs, and ends with a line saying so. The structured result is the whole package.

InputTypeRequiredDescription
idtext matching ^f_[0-9a-f]{16}$yesThe alarm id (f_…) from list_findings or pr_status
branchtextnoThe PR branch the alarm was listed for (pr_status, list_findings with branch): the same place can be worse on several PRs, and this reads that PR’s package. Without it, the PR it was seen on last
formone of short, fullnofull (default): the whole answer. short: what decides, without the evidence detail; its last line says what it left out. The same JSON either way

submit_hypotheses

Submit hypotheses about an alarm. Writes: it stores or starts something.

Stores up to 10 hypotheses about one alarm, made from the package get_investigation returned. A hypothesis is a prediction, never a verdict or a result: nothing here changes an alarm, a problem or a message, and only a later measured session confirms or rejects it. The submission is checked against the hypothesis schema before anything is sent, and the API checks it again. It holds schema_version 2 and: schema_version (The schema version: 1 (no kind) or 2); submission_id (Chosen by the client; sending the same one again stores nothing twice); runner (Where the model ran); agent (The model or agent name); prompt_version (The version of the prompt template); package_digest (The digest of the investigation package the hypotheses were made from); hypotheses; branch (The branch whose session the hypotheses are about; with run_set_id it must be that run set’s branch); run_set_id (The session (run set) the hypotheses are about; it must be the key’s app’s); ci_run_url (The CI run the hypotheses were made in: an https URL without credentials, shown as a link). Runner is one of mcp-skill, cli, ci, hosted; submission_id is 8–64 characters. Each hypothesis has: kind (cause (the default) or no-area-change: a likely false alarm, with checked); checked (What a false alarm was checked against: the area, the range, and that nothing in it changed); component (The component the hypothesis is about); files; mechanism (Which kind of mechanism explains the cost); claim (Why this is happening, in one or two sentences, based on the code); evidence (References to measured values of the package and to lines of code); expectedChange (What a later measured session would show if the hypothesis is right); riskNotes (What the change could break); movedCost (Where the cost would move to, or null); priorConflict (A prior or earlier attempt this conflicts with, and what changed; or null); confidence. Mechanism is one of render-scope, list-window, dedupe-work, batch-store, defer-noncritical, other; confidence one of low, medium, high. The expected change has: metric (A measure id of the facts catalog that has a direction, for example renders, self_ms, render_ms, dur_ms); scope (The place or component the metric is read at); direction (lower or higher; unchanged only for kind no-area-change (a re-run reads as main)); magnitude_hint (For example “40 → ≤ 12”; a prediction, not a promise); a refused metric is answered with the allowed list. No unknown property is accepted, and the prose of a hypothesis may not contain a word of KeepSnappy’s verdict (Worse, Slightly worse, Better, No change) in its prose (the claim, evidence, risk notes, moved cost, prior conflict, magnitude hint): the verdict is never yours to say. Can’t tell is allowed for what you do not know. Needs a read or run key.

InputTypeRequiredDescription
idtext matching ^f_[0-9a-f]{16}$yesThe alarm the package was made for
submissionobjectyesThe hypothesis submission, as described above

compare_runs

Compare two runs. Only reads.

Two runs side by side, window by window, with what differs in how they were measured. One run against one run: no statistics; use list_findings for verdicts. The default form short gives the setup differences and the 10 places whose time moved most (page on with offset; the answer gives the next offset); form full gives every place with its components in journey order, paged only with limit or offset. form short leaves out the component lines and the measures beyond each place’s 3 times that moved most, and ends with a line saying so.

InputTypeRequiredDescription
atextyesRun id or external id
btextyesRun id or external id
limitwhole number, 1 to 200noPlaces per page (short: default 10)
offsetwhole number, 0 to 100000noSkip this many places; the answer gives the next offset
component_offsetwhole number, 0 to 100000noSkip this many stored components per place.
component_limitwhole number, 1 to 200noComponent page size; the response gives stored totals and next offsets.
formone of short, fullnoshort (default here): the setup differences and the places whose time moved most, without component lines. full: every place and its components

window_history

One window on main over time. Only reads.

A page of the recent main runs of one place (a screen, tap or scroll) of a journey, oldest first, with commit titles, and the alarms at that place. Includes the per-run jank_ms stored with each run’s night facts, at the derivation its other values are read at; a run without them says no jank stored. Runs whose journey version has no such window are left out and counted in absent_runs; a run of a journey version that has the window but did not reach it stays as an empty point, counted in not_reached_runs. Unavailable snapshots are listed separately as not_computed. runs_page counts the valid main runs before window presence (total up to the first page’s newest run, newer on earlier pages, runs on this one); give its next_cursor as cursor for the older runs, also after a page with no point. Left-out, not-reached and not-computed counts are this page’s. form short leaves out the runs older than the newest 5 and the measures after the first 4, and ends with a line saying so.

InputTypeRequiredDescription
journeytextyesJourney key, e.g. live-ui
windowtextyesExact window id (press:live.chat.send); display names are not identifiers
phonetextnoPart of the phone model, e.g. “iPhone 15”
limitwhole number, 1 to 200noHow many valid main runs per page, whether or not they measured the window to return, 1 to 200
cursortextnoThe runs_page.next_cursor of the previous answer (or the cursor its text names): the older runs; keep the other parameters
formone of short, fullnofull (default): the whole answer. short: what decides, without the evidence detail; its last line says what it left out. The same JSON either way

commits_between

Measured commits between two points. Only reads.

The commits KeepSnappy measured between two points of a branch (run set ids or commit hashes), one entry per commit with its branch, measuring sessions, title, author and time. From a main commit to a PR commit: main from from up to the PR, then the PR up to to (the PR branch is found from to, or give branch). Only measured commits; git log gives the rest.

InputTypeRequiredDescription
fromtextyesThe first point: a run set id or a commit hash (at least 7 characters)
totextnoThe last point, as from. The PR branch is found from it unless you give branch
branchtextnoDefault: main

session_places

Every place of one session. Only reads.

The overall performance of one measuring session (a run set of one journey on one phone), place by place (a screen, tap or scroll), from the statistics stored for that session: per measure its median, spread (MAD), p10/p90 and range over the session’s valid runs, and the components with the most own render time. Use it to find places worth optimising. It is not a verdict and not a comparison: for what got worse use list_findings, for one place over time window_history. Pick the session with run_set, or with journey (+ phone, + branch; default: the app’s baseline branch (main)) for its newest closed run set that has a valid run. Places are ranked by measure (default render_ms) and sort (median, p90 or mad, highest first); window narrows by id or name; places without the measure are listed last. Page with offset (the answer gives next_offset). A session with no stored statistics says not_computed, one with statistics of another version says stale: both mean nothing is known about its places, not that they are fine. Only place_key, detail_mode or cursor answer with detail_page: JSON-path entries (path, value; string_offset for long strings), at most 65,536 UTF-8 bytes of structured JSON and 24,576 UTF-8 bytes of text per answer; detail, verbose and component paging keep the usual answer. Follow detail_page.next_cursor with the same query. The text names its own cursor at the first entry it left out, so the text alone reaches every entry. A changed session or query invalidates the cursor. Diagnostic pages use the same capped text in either form. form short leaves out the component lines, and ends with a line saying so.

InputTypeRequiredDescription
run_settextnoRun set id (the answer of other tools names it); otherwise journey picks the newest closed one
journeytextnoJourney key, e.g. live-ui
phonetextnoPart of the phone model, e.g. “iPhone 15”, or a device id
branchtextnoWith journey: the branch of the run set (default: the app’s baseline branch); not with run_set
measuretextnoThe measure places are ranked by (default render_ms), e.g. commit_max_ms, renders, dur_ms
sortone of median, p90, madnoThe statistic of the measure to rank by (default median)
windowtextnoOnly places whose id or name contains this, e.g. “chat send”
limitwhole number, 1 to 200noHow many places to return, 1 to 200; the answer gives next_offset when there are more
offsetwhole number, at least 0noSkip this many places; the answer gives next_offset
place_keytextnoExact place key; filters before recorded profiles are loaded, and answers with a detail page.
detail_modeone of full, slowest_commitnofull: recorded window and component details; slowest_commit: only recorded slowest commits and their stored commit_max_ms statistics, without component/library detail. Answers with a detail page.
cursortextnoThe cursor the previous answer named (detail_page.next_cursor, or the text’s own); keep all other query parameters unchanged.
detailtrue or falsenoInclude recorded per-run component and window detail: an opt-in diagnostic that reads the runs’ recorded profiles (slower); ranking places never needs it.
component_offsetwhole number, 0 to 100000noSkip this many stored components per place.
component_limitwhole number, 1 to 200noComponent page size; the response gives stored totals and next offsets.
top_componentswhole number, 0 to 20noComponents with the most own time listed per place (default 5)
formone of short, fullnofull (default): the whole answer. short: what decides, without the evidence detail; its last line says what it left out. The same JSON either way

explain_layers

Which layer answers which question. Only reads.

The steps KeepSnappy takes to decide a result, called layers (instrument, execution, single value, run health, PR vs main, main over time, access), the question each answers and where to read its answer.

Takes no inputs.

main_sessions

Main sessions and their tiers. Only reads.

Main session tiers are verdicts vs the earlier sessions (baseline_sessions in the API answer); vs-previous is information, not a verdict. List sessions with tier counts, memory and history restarts, or give run_set for that session’s places and reasons. sessions and cursor cannot be combined with run_set. sessions_page.read counts the main sessions a page read (any renderer); the page lists those on sessions_page.renderer, main’s at the first page, so it can list fewer or none. Give its next_cursor as cursor for the older sessions, also after a page that lists none. form short leaves out the sessions older than the newest 3, the main changes of all but the newest session and, for one run_set, the places in norm, and ends with a line saying so.

InputTypeRequiredDescription
journeytextyesJourney key or id
phonetextyesThe phone model, a device id, or part of one model, e.g. “Pixel 9 Pro” (list_lanes lists them)
sessionswhole number, 1 to 20noHow many main sessions a page reads, newest first, 1 to 20; not with run_set
cursortextnoThe sessions_page.next_cursor of the previous answer (or the cursor its text names): the older sessions; keep journey and phone; not with run_set
run_settextnoOne session: its places and reasons instead of the list
formone of short, fullnofull (default): the whole answer. short: what decides, without the evidence detail; its last line says what it left out. The same JSON either way

main_changes

Main changes with their commits and PRs. Only reads.

Main’s confirmed level shifts in one lane, newest first: place, measure, before → after, the commit range from the last main session before the change to its first session, and the PRs merged in it (stored at ingest; null when not known). The answer shows how many changes remain. Give changes_page.next_cursor as cursor to read the next page.

InputTypeRequiredDescription
journeytextyesJourney key or id
phonetextyesThe phone model, a device id, or part of one model, e.g. “Pixel 9 Pro” (list_lanes lists them)
limitwhole number, 1 to 200noHow many changes per page to return, 1 to 200
cursortextnoThe changes_page.next_cursor of the previous answer. Keep the same journey and phone.

main_vs_previous

Main session vs previous: stored medians. Only reads.

Main session tiers are verdicts vs the earlier sessions (baseline_sessions in the API answer); vs-previous is information, not a verdict. Before, after, delta, percent change and n from stored medians in one phone-model lane, with device ids per side; multiple devices on a side return devices_differ without pooling. new/gone are missing on one side, never zero. Flags history restarts. Latest session by default. Sorted by absolute percent change for measure. form short leaves out the movers after the first 5 (every new, gone or multi-device place stays), and ends with a line saying so.

InputTypeRequiredDescription
journeytextyesJourney key or id
phonetextyesThe phone model, a device id, or part of one model, e.g. “Pixel 9 Pro” (list_lanes lists them)
run_settextnoA main session (run set id): compared with the session before it
measuretextnoThe measure to compare, e.g. render_ms or commit_max_ms
limitwhole number, 1 to 200noHow many places to return, 1 to 200; the answer gives next_offset when there are more
offsetwhole number, at least 0noSkip this many places; the answer gives next_offset
formone of short, fullnofull (default): the whole answer. short: what decides, without the evidence detail; its last line says what it left out. The same JSON either way

place_trend

One place over main sessions. Only reads.

Stored per-session statistics of one place over a page of main’s sessions, oldest first, with history restart markers. No verdict: use list_findings for a verdict, or session_places for every place in one session. Defaults to every stored measure at the place; request component refs explicitly. sessions_page counts the closed main sessions of the lane within since/until before place presence (total up to the first page’s newest session, newer on earlier pages, sessions on this one, oldest_at and newest_at this page’s bounds); give its next_cursor as cursor for the older sessions, also after a page with no value. Not-computed, stale and sessions_without_value are this page’s; main_stored only on the page with the newest session. form short leaves out the sessions older than the newest 3 and the history restarts among them (unknown restarts always stay), and ends with a line saying so.

InputTypeRequiredDescription
journeytextyesJourney key or id
phonetextyesThe phone model (every device row of it, as main_sessions reads it: one phone on two OS builds has two), a device id for one row, or part of one model
windowlist of textyesPlace ids or names
reflist of textnoRefs, e.g. m:render_ms or b:component:<key>:self_ms
sessionswhole number, 1 to 30noMain sessions per page, newest first, default 10
sincetextnoSessions completed at or after it: a date (the start of that UTC day), or a date and time with a zone
untiltextnoSessions completed before it: a date (the start of that UTC day), or a date and time with a zone
cursortextnoThe sessions_page.next_cursor of the previous answer (or the cursor its text names): the older sessions; keep the other parameters
formone of short, fullnofull (default): the whole answer. short: what decides, without the evidence detail; its last line says what it left out. The same JSON either way

main_hotspots

Where to optimise on main. Only reads.

The places of one journey × phone worth optimising on main: ranked by the median of their stored per-session medians of one measure over the newest release’s main sessions (at most its 4; a session before the newest restart is another level and is not read), each with in how many sessions it has a value, the range of those medians, and its components with the most own time. Read from main_sessions and session_places (stored summaries and place statistics only); a stale or not computed session is left out and named. ‘+3s’ twins are folded (the higher stays); nested windows and windows that share one slowest commit are not, because main stores no window parent and no commit identity: the answer says “Not folded”, and a cost can repeat. No verdict. Page with offset; the text stops at 24,576 bytes and names the offset to go on from.

InputTypeRequiredDescription
journeytextyesJourney key or id
phonetextyesThe phone model, a device id, or part of one model, e.g. “Pixel 9 Pro” (list_lanes lists them)
sessionswhole number, 1 to 4noHow many of the newest main sessions to read, 1 to 4 (default 4); only those since the newest restart are used
measureone of jank_ms, render_ms, commit_max_msnoThe measure places are ranked by (default jank_ms)
limitwhole number, 1 to 50noHow many places to return, 1 to 50 (default 10); the answer gives next_offset when there are more
offsetwhole number, at least 0noSkip this many places; the answer gives next_offset
top_componentswhole number, 0 to 10noComponents with the most own time listed per place (default 3)

pr_status

Is my PR ok? Only reads.

Is this branch ok, in one call. The answer is blocked, nothing blocks with results to look at, or ok; per journey × phone it gives the deciding word and whether it blocks, the worst present alarms with ids for get_finding with this branch (under the first few, the stored “Likely cause (AI, <confidence>)” line when a coding agent stored one: a prediction, never a fact), and dashboard links. A branch that was never measured, whose newest run set was not judged, or that could not be compared yet is not ok: the answer says which, with its reason. Use list_findings for every alarm; the answer also counts the places over budget in the branch’s own runs (not a regression; list_problems lists them). form short leaves out the per-journey dashboard links and the heat note, and ends with a line saying so.

InputTypeRequiredDescription
branchtextyesThe PR branch, e.g. feat/keepsnappy-integration
formone of short, fullnofull (default): the whole answer. short: what decides, without the evidence detail; its last line says what it left out. The same JSON either way

list_problems

List single problems (Over budget). Only reads.

The places of a branch that are too slow in its own runs, whatever main does: “Over budget” (the value and the budget, in N of M runs, the heaviest components) and “Far over budget” from twice the budget. This is not a regression and never blocks: what got worse than main is list_findings, and pr_status counts both. A problem says “Not compared with main” while the result carries no tag from main. Give a PR branch or main; filter by journey and phone; page with offset. Continue from the offset printed in short text, or from next_offset when using the structured rows. The answer starts with whether and when the branch was measured: an empty list on a branch that was never measured is not a clean result. form short leaves out the work and component lines, the dashboard links and the problems after the first 5, and ends with a line saying so.

InputTypeRequiredDescription
branchtextnoA PR branch, e.g. feat/keepsnappy-integration
maintrue or falsenoThe problems of main over time instead of a branch
journeytextnoJourney key, e.g. live-ui
phonetextnoPart of the phone model, e.g. “iPhone 15”
limitwhole number, 1 to 200noHow many problems to return, 1 to 200
offsetwhole number, at least 0noSkip this many problems. Use the offset printed in short text or next_offset from the structured rows
formone of short, fullnofull (default): the whole answer. short: what decides, without the evidence detail; its last line says what it left out. The same JSON either way

rules_status

Which rules the results were computed with. Only reads.

Whether the app’s stored pull request results and main history were computed with older rules than the live ones (a config, engine or derivation change), how many, how many pull requests wait for a recompute because main is on an older derivation, and the recompute in progress (“Recomputing… n of m”). A rule change never replaces stored results by itself: they stay current and shown until a recompute swaps them.

Takes no inputs.

propose_false_alarm

Propose that an alarm is a false alarm. Writes: it stores or starts something.

Proposes that an alarm is a false alarm: the place of one alarm (a Worse or Slightly worse place of a run set) that you judged, from the code, to be noise or the same code on both sides. The AI answer is shown at once next to the unchanged result, with no accept step. It never hides the alarm: the alarm, the result, blocking and the pull request check stay exactly as measured. A person’s mark wins over the AI answer. It never sets a person’s mark, and an alarm a person already marked is refused. Give run_set, place, confidence (0 to 1), a reason (at most 200 characters) and your model name (at most 80); phone_model only when the place has an alarm on more than one phone. Before anything is sent, the place must be a Worse or Slightly worse place of the run set and the proposal must fit the API’s format, these limits included. One proposal per place and tool version is kept: proposing again is answered “already proposed”. Needs a read or run key.

InputTypeRequiredDescription
run_settextyesThe run set (session) whose alarm it is: its id, as other tools name it
placetextyesThe place of the alarm, as the alarm names it (e.g. press:Like#1); it must be a Worse or Slightly worse place of that run set’s current judgement
confidencenumber, 0 to 1yesHow sure you are that it is a false alarm, a number from 0 to 1
reasontextyesWhy, in plain text, at most 200 characters (about 25 words); what you read in the code, not a verdict
modeltextyesThe model you are, as you report it (e.g. claude-opus-5-5 via Claude Code), at most 80 characters
phone_modeltextnoOnly when the place has an alarm on more than one phone: which phone model
scenario_idtextnoOnly when the phone has several journeys with that place: the journey’s scenario id, as the refusal names it