# Agent feedback

Agent feedback adds one built-in tool to an MCP server. Agents using the server call it to report what blocked or confused them: an incorrect result, a confusing error, a documentation gap, or a missing tool. Reports are collected per server on the server's **Agent Feedback** tab, reached from [**MCP Gateway > MCP**](https://ai.speakeasy.com/@self/projects/default/mcp) in the project sidebar.

This is separate from [skill feedback](/docs/ai-control-plane/mcp-gateway/skills/improving-skills-with-agent-feedback), where agents rate the skills they load and the platform proposes edits to them. Agent feedback for MCP servers is about the server and its tools, and nothing changes the server automatically.

> Agent feedback is available on MCP servers built with Speakeasy from an
> [OpenAPI
> document](/docs/ai-control-plane/mcp-gateway/building-servers/openapi) or from
> [functions](/docs/ai-control-plane/mcp-gateway/building-servers/functions).
> Remote, tunneled, and catalog servers do not support it yet.

## Turn on feedback

On the server's **Agent Feedback** tab, click "Turn on feedback". The server lists the feedback tool right away, under the name `submit_feedback`, with default instructions that tell agents when and how to report. Nothing else needs configuring.

Click "Customize" to change the **Tool name** or the **Instructions for agents**. A tool name may use letters, numbers, underscores, and hyphens, up to 64 characters. Instructions can be up to 2,000 characters. Click "Use the default" next to either field to restore its default.

Click "Turn off" to remove the tool from the server. Existing reports are kept. The tab shows who last changed the settings, and only people who can edit the server can change them.

## What agents send

An agent calls the feedback tool with one report per call. Only `content` is required.

| Field        | Description                                               |
| ------------ | --------------------------------------------------------- |
| `content`    | The report itself, up to 2,000 characters.                |
| `severity`   | `blocked`, `degraded`, or `cosmetic`. See the list below. |
| `tool`       | The exact name of the tool the report is about.           |
| `intention`  | What the agent was trying to do.                          |
| `workaround` | What the agent did instead.                               |
| `model`      | The model and host product, if the agent knows them.      |

Severity describes the impact on the agent's task:

- **Blocked**: the agent could not finish the task.
- **Degraded**: the agent finished by a slower or awkward path.
- **Cosmetic**: the task worked, but something was confusing.

The agent gets back a receipt with a reference ID, which matches the **Report ID** shown in the dashboard. No reply reaches the agent's session after that.

### Safety and limits

Before a report is stored, every field is scanned for secrets and personal data, and any that are detected are masked. Detection is best effort and can miss some values, so the tool's default instructions also tell agents never to include credentials, secrets, or data returned by tools. Reports are screened by request [guardrails](/docs/ai-control-plane/secure/guardrails) like any other tool call, and [killswitches](/docs/ai-control-plane/identity/identities/killswitches) that apply to the server apply to the feedback tool too.

Each caller can send up to 5 reports per minute on one server, and each server accepts up to 60 reports per minute in total. Past that, the agent is told to wait a minute before sending more.

## Review reports

The **Agent Feedback** tab shows:

- Counts of blocked, degraded, and cosmetic reports over the last 30 days.
- **Tools agents reported most**, with how many reports said each tool blocked the agent. Click a tool to filter the reports to it.
- **Reports**, every report on the server, newest first, filterable by severity and tool.

Each report shows who sent it, the MCP client it came from, and the full report. The sender is a member's email when they were signed in, **Signed-in user** when the caller is known only by their identity-provider account, **Former member** for someone who has since left, or **Not signed in**.

## Feedback through gateways

When a supported server is a member of a [gateway endpoint](/docs/ai-control-plane/mcp-gateway/gateway-endpoints), the gateway offers that member's feedback tool under the member's qualified name, for example `orders--submit_feedback`. Reports sent through the gateway are filed against the member server and appear on its **Agent Feedback** tab.

## Send reports elsewhere

### OpenTelemetry export

A [data export](/docs/ai-control-plane/observe/opentelemetry#configure-a-data-export) with the **MCP feedback** data source delivers each report to an OTLP destination as a log record. The report text is the log body, and the other fields travel as `speakeasy.mcp_feedback.*` attributes, such as `speakeasy.mcp_feedback.severity` and `speakeasy.mcp_feedback.tool_name`. Each record carries the report ID, so a destination can deduplicate redeliveries.

If the export excludes sensitive data, the report text, intention, workaround, and sender identity arrive as `[REDACTED]`. The server, tool, severity, and timing still come through.

### Webhooks

[Webhook](/docs/ai-control-plane/org-admin/webhooks) subscribers can receive each report as the `mcp_feedback.submitted_v1` event. The payload carries the report fields, the server and project IDs, the MCP client, and the sender's user ID when they were a signed-in member. Treat the report text as untrusted input, since an agent wrote it.

---

Index of every Speakeasy page for agents: [llms.txt](https://www.speakeasy.com/llms.txt). AI control plane and MCP gateway content in one file: [llms-full.txt](https://www.speakeasy.com/llms-full.txt). Any page is available as markdown by appending `.md` to its URL or by requesting it with `Accept: text/markdown`.
