# send_feedback_to_codepanel

URL: https://codepanel.ai/docs/mcp-server/send_feedback_to_codepanel

The CodePanel MCP tool that tells the CodePanel team what got in your agent's way. It needs no particular scope and is limited to 10 an hour.

`send_feedback_to_codepanel` tells the CodePanel team what got in your agent's way while using CodePanel's own tools, API or docs: an error that didn't say how to fix the call, a parameter it had to guess, a description that misled it. It needs only `message`, and no particular scope: any valid token can send a report, including a `read`-only one. Send at most one per task, after finishing or giving up.

## When to call it

- **After the task, not during it.** The description says once per task. Finish or give up first, then report what slowed you down.
- **When CodePanel's tools were the problem.** An error that named no fix, a parameter you had to guess, a tool you couldn't find, several tries for one thing.
- **Not when everything went fine.** Nothing is lost by skipping it.
- **Not for a pull request's findings.** Rate those with [`rate_finding`](/docs/mcp-server/rate_finding).

## Inputs

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `message` | string, at most 4000 characters | yes | What you were trying to do, what you called, what you expected and what happened instead |
| `proposedFix` | string, at most 4000 characters | no | The change to CodePanel that would have helped, e.g. 'list_findings could take a severity filter' |
| `tool` | string, at most 80 characters | no | The tool most involved, e.g. trigger_review |
| `outcome` | `gave_up` or `worked_around` or `succeeded` | no | How the task ended: gave_up, worked_around (got there another way) or succeeded (after the trouble) |

It writes: the server marks it `readOnlyHint: false`, so a client that asks before writes asks here.

Say what you were trying to do, what you called, what you expected and what happened instead, in a few sentences. Then put in `proposedFix` the change to CodePanel that would have helped, concrete enough to build: a parameter or filter a tool lacks, an error that should name its fix, a description that should say more. The team builds the fixes it agrees with. Never put secrets, tokens, source code or personal data in either; a key pasted by mistake is masked before the report is stored.

`tool` names the tool most involved, such as `trigger_review`; for an HTTP route, its path. It is trimmed, and over 80 characters is refused. `outcome` is how the task ended: `gave_up`, `worked_around` or `succeeded`. A `proposedFix` over 4,000 characters is refused too. A `message` over 4,000 characters is refused (`message is too long (over 4000 characters); say what you tried and what got in the way`).

## Which scope it needs

None. The route accepts any valid token without checking a scope, because a read is often where an agent gets stuck, and a `read`-only token would otherwise be unable to say so. A token still has to be valid: with no sign-in, the call fails like any other.

## The limit

Reports are limited to 10 an hour per account. Minting another token buys no more, since the limit follows the account. Past it, the call fails with `rate limit exceeded; retry in <n>s`. Wait that long, or skip it: the limit is there so a loop can't flood the team.

## What it returns

`id` of the stored report, `received: true`, and a `note` that repeats what the description says: the team reads every report, and nothing replies. There is nothing to wait for. The client's own name, taken from the MCP handshake, is stored with the report, rather than a name your agent passes.

## Examples

These responses come from a test account on a local backend.

```json title="Call"
{
  "message": "dismiss_finding refused reason fixed; the error listed the allowed reasons, but the description did not say fixed belongs to rate_finding.",
  "proposedFix": "dismiss_finding's description could say that a fixed finding is rated with rate_finding, not dismissed.",
  "tool": "dismiss_finding",
  "outcome": "worked_around"
}
```

```json title="Result"
{
  "id": "wd7dekbakyneft73cpc8qmd4en8j7821",
  "received": true,
  "note": "Thanks. The CodePanel team reads every report. Carry on with your task; there is no reply to wait for."
}
```

## The same step without MCP

| Surface | Form |
| --- | --- |
| HTTP API | `POST /api/v1/agent-feedback` with `message`, and optionally `proposedFix`, `tool`, `outcome` and `agent` |

The route is not on the [API reference](/docs/api) page yet, and no CLI command or pull request comment sends one.

## What the server tells your agent

The description your agent reads when it lists the tools:

> Tell the people who build CodePanel what got in your way using CodePanel's own tools, API or docs: an error that did not say how to fix the call, a parameter you had to guess, a tool you could not find, a description that misled you, several tries to do one thing. At most once per task, after you finish or give up; skip it when everything went fine. Not for a pull request's findings: rate those with rate_finding. Say what you were trying to do, what you called, what you expected and what happened instead; then, in proposedFix, the change to CodePanel that would have helped (a parameter, a filter, an error that names the fix, a clearer description), concrete enough to build. Never include secrets, tokens, source code or personal data. The team reads every report and may build the fix you propose; nothing replies, so carry on with your task afterwards.

## Related

- [`rate_finding`](/docs/mcp-server/rate_finding): the place for feedback on a finding.
- [Troubleshooting](/docs/troubleshooting): known problems and their fixes, before you report one.
- [MCP server](/docs/mcp-server): install, sign-in and every other tool.
