dismiss_finding
The CodePanel MCP tool that says a finding is wrong or deferred. From an agent it disputes the finding; deferred closes it. Not for fixed findings.
On this page›
dismiss_finding tells CodePanel a finding is wrong or won't be fixed in this pull request. Because MCP calls always come from an agent, a dismissal here is a dispute: the finding stays open until the orchestrator checks your note against the code. The one exception is deferred (real, handled elsewhere), which closes the finding at once. It needs the reviews:write scope. For a finding you fixed, don't dismiss it: rate it with rate_finding.
When to call it
dismiss_findingorrate_finding? For a wrong finding, both do the same thing:rate_findingwithdownand a reason, ordismiss_findingwith the same reason, opens a dispute. Preferrate_finding: it takes up to 50 findings per call and also records the up ratings that tell CodePanel what it got right. Usedismiss_findingfor one finding when you have itsid, or fordeferred: throughdismiss_findingit closes the finding, whilerate_findingwithdeferredonly answers it.- When it's real but belongs elsewhere:
reason: "deferred"with a note naming where it is tracked. It closes the finding. - Never for a finding you fixed. The next review closes it itself, and
rate_findingwithfixedafter your push is the answer.
A closed finding stays closed. If a later round reports it again, it goes under suppressed in get_review rather than back to open. reopen_finding undoes it.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
repo |
string | no | Repository as owner/name |
pr |
integer | no | Pull request number |
ref |
string | no | The finding as the review names it, e.g. "F3" |
findingId |
string | no | Finding id, from get_review or list_findings, instead of repo, pr and ref |
reason |
string | no | Why: one of false_positive, wrong_location, not_worth_fixing, duplicate, deferred, other. false_positive: the problem isn't real; deferred: real, handled outside this pull request. Hyphens and spaces are fine |
note |
string, at most 1000 characters | no | Why, in a sentence: what you checked |
agent |
string | no | Your harness, e.g. claude-code (a Claude model id is read as claude-code and kept as the model). Defaults to this MCP client's name |
It writes: the server marks it readOnlyHint: false and destructiveHint: true (it can change what is already there), so a client that asks before writes asks here.
Name the finding by repo, pr and ref (F4), or by findingId from get_review or list_findings. ref: "review" is refused: dismiss_finding takes a finding, not the whole review. The reason is one of false_positive, wrong_location, not_worth_fixing, duplicate, deferred or other, and hyphens and spaces are fine. Left out, an agent's reason defaults to false_positive. agent defaults to your MCP client's name, and note is at most 1,000 characters: say what you checked, with a file:line, test or document.
A reason from the rating vocabulary that is not a dismissal reason, such as fixed, is refused:
CodePanel: reason must be one of false_positive, wrong_location, not_worth_fixing, duplicate, deferred, other
If this message doesn't tell you how to fix the call, tell the CodePanel team with send_feedback_to_codepanel once you're done.
What it returns
ok: true. With a reason that disputes, the result adds dispute: { "status": "pending" }. With deferred it is { "ok": true } alone. Read the finding's dispute in get_review or list_findings, and call wait_for_review with disputes: true to wait for the orchestrator. Don't dismiss again to hurry it.
Examples
These responses come from a test account on a local backend, on a pull request with findings F1 and F4.
Close a real finding that belongs elsewhere
{
"repo": "codepanel-dev/web-app",
"pr": 142,
"ref": "F4",
"reason": "deferred",
"note": "Real; moving the limiter to a Lua script in a follow-up PR.",
"agent": "claude-code"
}
{ "ok": true }
A reason that is not a dismissal reason
{ "repo": "codepanel-dev/web-app", "pr": 142, "ref": "F4", "reason": "fixed" }
CodePanel: reason must be one of false_positive, wrong_location, not_worth_fixing, duplicate, deferred, other
If this message doesn't tell you how to fix the call, tell the CodePanel team with send_feedback_to_codepanel once you're done.
rate_finding shows a dispute and how it then appears in get_review.
The same step without MCP
| Surface | Form |
|---|---|
| Pull request comment | /feedback F4 down false-positive <reason> --agent claude-code, or /feedback F4 up deferred <note>; there is no /dismiss (syntax) |
| CLI | codepanel findings dismiss <findingId> --reason false_positive --note "..." --agent claude-code (CLI) |
| HTTP API | POST /findings/dismiss |
Without agent, the API and CLI make the repository owner's dismissal, which closes the finding at once. MCP always names an agent, so it never does that. For who can close what, see Feedback.
What the server tells your agent
The description your agent reads when it lists the tools:
Say a finding is wrong or not worth fixing. Name it by repo, pr and ref (F3), or by findingId. From an agent this disputes the finding, as a down rating does: it stays open until the orchestrator checks your note against the code and withdraws it (see dispute in get_review). Give the reason and a note. deferred (real, handled outside this pull request) is not disputed: it closes the finding. Don't use this for findings you fixed; the next review closes those itself.
Related
rate_finding: rate, dispute or answer many findings at once.reopen_finding: bring a dismissed finding back.list_findings: find theidand seedismissReason.- Findings: reasons and what a dismissal changes.
- Feedback: how a dispute is decided.
- MCP server: install, sign-in and every other tool.