get_quality
The CodePanel MCP tool that reports a repository's verified review precision per model and role, and how many rounds its pull requests take.
On this page›
get_quality reports how precise a repository's reviews have been, counting only verdicts that the pull request's author agent cannot give itself, and how many rounds its pull requests take to settle. Call it before you change reviewers or models, so a saving doesn't cost you real findings. It only reads, and it needs the read scope.
When to call it
- Before
apply_panelorupdate_panel_member: comparebyModelandbyRoleprecision, with their sample sizes. - After a change: call it again once enough reviews have passed, and compare.
- When pull requests take many rounds: read
convergence.
Don't read precision off a row with insufficientData: true. It means too few verdicts, not a good or bad score.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
repo |
string | yes | Repository as owner/name |
days |
integer, at most 90 | no | Window in days, default 30 |
It only reads: the server marks it readOnlyHint: true, so clients that ask before a write can run it without asking.
days is the window, by when findings were reported. It defaults to 30, and 90 is the most.
What it returns
overall and rows byModel (keys like anthropic/claude-sonnet-5-5), byRole, bySeverity, byConfidence and bySeverityConfidence (keys like critical/high). Each row is { key, reported, verified, unverified }, next to days, since, findings, unattributed, truncated (only the newest 2,000 findings were read) and minSample (20).
verified is what counts as precision:
truePositives:disputesUpheldanddisputesRevised(the orchestrator read the code and kept the finding, maybe milder) andupByPerson.falsePositives:disputesWithdrawn,downByPersonanddismissedByPerson;notWorthFixingcounts the second kind.sample,coverage, thenprecisionwith a 95%interval. Both arenulluntilsamplereachesminSample, andinsufficientDataistrue.
unverified is what an agent can produce by complying, shown for context and never as precision: addressedByCommit, resolution (how a later round closed each finding), upByAgents, downByAgents and unverifiableDismissals. An agent that fixes every finding, false positives too, would look perfect there.
convergence covers the pull requests merged in the window: overall and byPipeline, each with rounds (mean, p90, fiveOrMore), firstGreen (how often the gate was green after round 1), afterGreen (rounds that began once it was green, and how many re-blocked) and findingsByRound. Its loop section is the author agent's side: pushes, tool calls and bytes read per round.
Examples
These responses come from a test account on a local backend, with four findings and one merged pull request, so every row is below minSample.
{ "repo": "codepanel-dev/web-app" }
{
"days": 30,
"findings": 4,
"minSample": 20,
"repo": "codepanel-dev/web-app",
"since": 1792022504949,
"truncated": false,
"unattributed": 0,
"overall": {
"key": "all",
"reported": 4,
"unverified": {
"addressedByCommit": 1,
"downByAgents": 1,
"resolution": {
"fileLeft": 0,
"fileRemoved": 0,
"moved": 0,
"touched": 1,
"unclassified": 0,
"unrecorded": 0,
"untouched": 0
},
"unverifiableDismissals": 0,
"upByAgents": 1
},
"verified": {
"coverage": 0,
"falsePositives": {
"dismissedByPerson": 0,
"disputesWithdrawn": 0,
"downByPerson": 0,
"notWorthFixing": 0,
"total": 0
},
"insufficientData": true,
"interval": null,
"precision": null,
"sample": 0,
"truePositives": {
"disputesRevised": 0,
"disputesUpheld": 0,
"total": 0,
"upByPerson": 0
}
}
}
}
The byModel, byRole, bySeverity, byConfidence, bySeverityConfidence and convergence keys are left out; they hold rows of the same shape. Agents rated one finding up and one down, and a commit addressed one, but no person has given a verdict: verified.sample is 0 and precision is null.
The same step without MCP
| Surface | Form |
|---|---|
| CLI | codepanel quality owner/name with --days and --json (CLI) |
| HTTP API | GET /quality |
What the server tells your agent
The description your agent reads when it lists the tools:
A repository's verified review precision over the last
days(default 30, at most 90), as overall and per byModel, byRole, bySeverity, byConfidence and bySeverityConfidence rows keyed bykey. Each row'sverifiedcounts only verdicts the author agent cannot give itself: truePositives (disputes the orchestrator upheld or revised, ups from trusted people) and falsePositives (disputes it withdrew, trusted people's false-positive or not-worth-fixing downs and dismissals). precision = TP/(TP+FP) with a 95% interval, null with insufficientData true below minSample verdicts.unverifiedis NOT precision: addressedByCommit counts findings resolved by a commit that edited their lines, which complying with every finding produces, plus agents' own ratings and dismissals of unknown origin. Role is matched from reviewer names, so it is approximate.convergenceis how the review loop converges over the same window, for pull requests merged in it: overall and byPipeline (the pipeline that ran a pull request's first round) with rounds {mean, p90, fiveOrMore}, firstGreen {afterRound1, meanRounds, never} (the gate rebuilt after each round at warning or worse), afterGreen {rounds, reBlocked, reBlockedShare, byTrigger: manual, push, base_merge, or unknown for rounds that predate the record} and findingsByRound (severity mix by the round a finding was first seen). Rates are null when there is nothing to divide; insufficientData is true below minPullRequests; the gate rebuild is a lower bound on how often it was red.convergence.loopis the author agent's side for the same pull requests, overall and byGuidance (the guidanceHash of the agent-facing text its first round ran with): pushesPerRound, toolCallsPerRound (reads of the review plus API ratings and disputes; polling not counted), bytesServedPerRound (bytes of the reviews read), afterServed (for each nextAction served, whether a push, rating, dispute, trigger or nothing came next), pushAfterDone {served, pushed, share} (pushes afterdone, each a full round) and clients (who read, with the tools version when sent).
Related
get_spend: the cost side of the same choice.get_optimization: both, with panel alternatives.rate_finding: the ratings that feedunverified.- Feedback: how a dispute is decided.
- MCP server: install, sign-in and every other tool.